diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-02 21:09:12 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-02 21:09:12 +0000 |
commit | 68815423f7e6ebd3c1a84356f6c8a830a59f366c (patch) | |
tree | a50da6d4d4778f073d0732f141e08db7c89a969f /setup.h | |
parent | ca0bfd1b2dce21dbf824d094fd65e1fa9ade3721 (diff) | |
download | vdr-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.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |