summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
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