diff options
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 59 |
1 files changed, 37 insertions, 22 deletions
@@ -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 |