diff options
author | Thomas Günther <tom@toms-cafe.de> | 2007-09-22 01:01:10 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2007-09-22 01:01:10 +0200 |
commit | 135a8c9447ca19c4d609373b228bd096a2ae2ab8 (patch) | |
tree | 1f24e7f3d0d4531d1a5bd705b89c40e7c3c29d33 /setup.h | |
parent | b39a6bf3e7add336dbb127394e8c611ec1d29cd6 (diff) | |
download | vdr-plugin-spider-135a8c9447ca19c4d609373b228bd096a2ae2ab8.tar.gz vdr-plugin-spider-135a8c9447ca19c4d609373b228bd096a2ae2ab8.tar.bz2 |
Added namespaces
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 |