summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorThomas Keil <tkeil (at) datacrystal (dot) de>2007-04-26 16:17:36 +0000
committerThomas Keil <tkeil (at) datacrystal (dot) de>2007-04-26 16:17:36 +0000
commitdd0362636658a20fb4144f6b221cf2808ffa6439 (patch)
tree3727488a86f229291e098d82f24cfb0f53883783 /setup.h
parent437d74141563e8c4db671e95b6c8fc6f0225e1ea (diff)
downloadvdr-plugin-live-dd0362636658a20fb4144f6b221cf2808ffa6439.tar.gz
vdr-plugin-live-dd0362636658a20fb4144f6b221cf2808ffa6439.tar.bz2
Added OSD config
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index b3e39f0..a41baa1 100644
--- a/setup.h
+++ b/setup.h
@@ -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