diff options
Diffstat (limited to 'setup.h')
-rw-r--r-- | setup.h | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -5,12 +5,14 @@ #include <numeric> #include <string> #include "live.h" +#include <vdr/menuitems.h> namespace vdrlive { class Setup { friend Setup& LiveSetup(); + friend class cMenuSetupLive; public: typedef std::list< std::string > IpList; @@ -21,6 +23,15 @@ public: // vdr-setup int GetLastChannel() const { return m_lastChannel == 0 ? std::numeric_limits< int >::max() : m_lastChannel; } int GetScreenshotInterval() const { return m_screenshotInterval; } + std::string GetAdminLogin() const { return m_adminLogin; } + std::string GetAdminPassword() const { return m_adminPassword; } + bool UseAuth() const { return m_useAuth; } + + void SetLastChannel(int lastChannel) { m_lastChannel = lastChannel; } + void SetAdminLogin(std::string login) { m_adminLogin = login; } + void SetAdminPassword(std::string password) { m_adminPassword = password; } + void SetUseAuth(int auth) { m_useAuth = auth; } + void SetScrenshotInterval(int interval) { m_screenshotInterval = interval; } bool ParseCommandLine( int argc, char* argv[] ); char const* CommandLineHelp() const; @@ -38,6 +49,10 @@ private: // setup options int m_lastChannel; int m_screenshotInterval; + + int m_useAuth; + std::string m_adminLogin; + std::string m_adminPassword; bool CheckServerPort(); bool CheckServerIps(); @@ -47,4 +62,23 @@ Setup& LiveSetup(); } // namespace vdrlive +class cMenuSetupLive : public cMenuSetupPage { + +protected: + virtual void Store(void); +// virtual eOSState ProcessKey(eKeys Key); + +public: + cMenuSetupLive(); + +private: + int m_lastChannel; + int m_screenshotInterval; + + int m_useAuth; + char m_adminLogin[20]; + char m_adminPassword[20]; +}; + + #endif // VDR_LIVE_SETUP_H |