From dd0362636658a20fb4144f6b221cf2808ffa6439 Mon Sep 17 00:00:00 2001 From: Thomas Keil Date: Thu, 26 Apr 2007 16:17:36 +0000 Subject: Added OSD config --- setup.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'setup.h') diff --git a/setup.h b/setup.h index b3e39f0..a41baa1 100644 --- a/setup.h +++ b/setup.h @@ -5,12 +5,14 @@ #include #include #include "live.h" +#include 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 -- cgit v1.2.3