summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 20:27:47 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 20:27:47 +0000
commit86f4f5b117303cb35c0783b11b4d3f2fd70a203b (patch)
treed125deaa248114e1c20f0fe2625a783b47999dbf
parentfde265c4fa7d38aec0b0fdcee006bb9adee4f8af (diff)
downloadvdr-plugin-live-86f4f5b117303cb35c0783b11b4d3f2fd70a203b.tar.gz
vdr-plugin-live-86f4f5b117303cb35c0783b11b4d3f2fd70a203b.tar.bz2
- added setup option ScreenshotInterval
-rw-r--r--setup.cpp4
-rw-r--r--setup.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/setup.cpp b/setup.cpp
index 0481f51..12b30b3 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -19,7 +19,8 @@ using namespace std;
Setup::Setup():
m_libraryPath( "/usr/local/lib" ),
m_serverPort( 8001 ),
- m_lastChannel( 0 )
+ m_lastChannel( 0 ),
+ m_screenshotInterval( 1000 )
{
}
@@ -66,6 +67,7 @@ char const* Setup::CommandLineHelp() const
bool Setup::ParseSetupEntry( char const* name, char const* value )
{
if ( strcmp( name, "LastChannel" ) == 0 ) m_lastChannel = atoi( value );
+ else if ( strcmp( name, "ScreenshotInterval" ) == 0 ) m_screenshotInterval = atoi( value );
else return false;
return true;
}
diff --git a/setup.h b/setup.h
index dba4008..e3666b4 100644
--- a/setup.h
+++ b/setup.h
@@ -23,6 +23,7 @@ public:
IpList const& GetServerIps() const { return m_serverIps; }
// vdr-setup
int GetLastChannel() const { return m_lastChannel == 0 ? std::numeric_limits< int >::max() : m_lastChannel; }
+ int GetScreenshotInterval() const { return m_screenshotInterval; }
bool ParseCommandLine( int argc, char* argv[] );
char const* CommandLineHelp() const;
@@ -40,6 +41,7 @@ private:
IpList m_serverIps;
// vdr-setup
int m_lastChannel;
+ int m_screenshotInterval;
bool CheckLibraryPath();
bool CheckServerPort();