summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2007-09-22 01:01:10 +0200
committerThomas Günther <tom@toms-cafe.de>2007-09-22 01:01:10 +0200
commit135a8c9447ca19c4d609373b228bd096a2ae2ab8 (patch)
tree1f24e7f3d0d4531d1a5bd705b89c40e7c3c29d33 /setup.h
parentb39a6bf3e7add336dbb127394e8c611ec1d29cd6 (diff)
downloadvdr-plugin-spider-135a8c9447ca19c4d609373b228bd096a2ae2ab8.tar.gz
vdr-plugin-spider-135a8c9447ca19c4d609373b228bd096a2ae2ab8.tar.bz2
Added namespaces
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h59
1 files changed, 37 insertions, 22 deletions
diff --git a/setup.h b/setup.h
index b032508..0f3bf2b 100644
--- a/setup.h
+++ b/setup.h
@@ -17,7 +17,7 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
- * $Id: setup.h 87 2007-06-22 22:37:36Z tom $
+ * $Id: setup.h 95 2007-09-21 23:01:10Z tom $
*/
#ifndef VDR_SPIDER_SETUP_H
@@ -27,31 +27,46 @@
#include <vdr/menuitems.h>
-/** --- class SpiderSetup -------------------------------------------------- **/
-
-class SpiderSetup
+namespace SpiderPlugin
{
-public:
- typedef enum { Mini, Normal } Variations;
- int variation;
- SpiderSetup();
- bool parse(const char* name, const char* value);
-};
+ //--- class SpiderPlugin::SetupData ------------------------------------------
+ /** Setup parameters of the plugin */
+ class SetupData
+ {
+ public:
+ typedef enum { Mini, Normal } Variations;
+ int variation;
-/** --- class SpiderSetupMenu ---------------------------------------------- **/
+ /** Constructor */
+ SetupData();
-class SpiderSetupMenu : public cMenuSetupPage
-{
-private:
- const char* variationTexts[2];
- SpiderSetup& setup;
- SpiderSetup data;
-protected:
- virtual void Store();
-public:
- SpiderSetupMenu(SpiderSetup& setup);
-};
+ /** Parse the setup parameters of the plugin. */
+ bool parse(const char* name, const char* value);
+ };
+
+
+ //--- class SpiderPlugin::SetupPage ------------------------------------------
+
+ /** Setup menu page to adjust the setup parameters of the plugin */
+ class SetupPage : public cMenuSetupPage
+ {
+ const char* variationTexts[2];
+ SetupData& setup;
+ SetupData data;
+
+ public:
+
+ /** Constructor */
+ SetupPage(SetupData& setup);
+
+ protected:
+
+ /** Store the setup parameters of the plugin. */
+ virtual void Store();
+ };
+
+} // namespace SpiderPlugin
#endif // VDR_SPIDER_SETUP_H