summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-02 21:09:12 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-02 21:09:12 +0000
commit68815423f7e6ebd3c1a84356f6c8a830a59f366c (patch)
treea50da6d4d4778f073d0732f141e08db7c89a969f /setup.h
parentca0bfd1b2dce21dbf824d094fd65e1fa9ade3721 (diff)
downloadvdr-plugin-live-68815423f7e6ebd3c1a84356f6c8a830a59f366c.tar.gz
vdr-plugin-live-68815423f7e6ebd3c1a84356f6c8a830a59f366c.tar.bz2
- added options -i and -p to specify port and (possibly multiple) ip(s)
- moved commandline-helpstring to setup class to ease maintaining - added default library directory /usr/local/lib
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index d3a6027..6d08ccf 100644
--- a/setup.h
+++ b/setup.h
@@ -2,23 +2,36 @@
#define VDR_LIVE_SETUP_H
#include <string>
+#include <list>
namespace vdrlive {
class Setup
{
public:
+ typedef std::list< std::string > IpList;
+
static Setup& Get();
std::string const& GetLibraryPath() const { return m_libraryPath; }
+ int GetServerPort() const { return m_serverPort; }
+ IpList const& GetServerIps() const { return m_serverIps; }
bool Parse( int argc, char* argv[] );
+ char const* Help() const;
private:
Setup();
Setup( Setup const& );
+ mutable std::string m_helpString;
std::string m_libraryPath;
+ int m_serverPort;
+ std::list< std::string > m_serverIps;
+
+ bool CheckLibraryPath();
+ bool CheckServerPort();
+ bool CheckServerIps();
};
} // namespace vdrlive