#ifndef CONFIG_H #define CONFIG_H #include #include #include #include #include #include //VDR #include #include #define STRING_SIZE 256 class Config { public: static Config& GetInstance() { static Config instance; return instance; } std::string s_username; std::string s_password; std::string s_serverHost; int ServerPort; bool HideMainMenuEntry; bool UseCustomTranscodeProfile; bool UsePlexAccount; bool UseConfiguredServer; int GridColumns; int GridRows; std::string GetUUID(); void SetUUID(const char* uuid); std::string GetHostname(); std::string GetLanguage(); std::string GetUsername(); std::string GetPassword(); int ThumbHeight() { return 1080 / GridRows; }; int ThumbWidth() { return 1920 / GridColumns; }; int ArtHeight() { return 1080; }; int ArtWidth() { return 1920; }; int BannerHeight() { return 1080 / 2; }; int BannerWidth() { return 1920 / 2; }; private: Config(); std::string s_uuid; std::string s_hostname; }; ////////////////////////////////////////////////////////////////////////////// // cMenuSetupPage ////////////////////////////////////////////////////////////////////////////// /** ** Play plugin menu setup page class. */ class cMyMenuSetupPage:public cMenuSetupPage { protected: char Username[STRING_SIZE]; char Password[STRING_SIZE]; char Uuid[STRING_SIZE]; char ServerHost[STRING_SIZE]; int ServerPort; int UseConfiguredServer; int HideMainMenuEntry; int UseCustomTranscodeProfile; int UsePlexAccount; int GridColumns; int GridRows; virtual void Store(void); public: cMyMenuSetupPage(void); virtual eOSState ProcessKey(eKeys); // handle input }; #endif // CONFIG_H