summaryrefslogtreecommitdiff
path: root/misc/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/config.h')
-rw-r--r--misc/config.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/misc/config.h b/misc/config.h
new file mode 100644
index 0000000..018213e
--- /dev/null
+++ b/misc/config.h
@@ -0,0 +1,33 @@
+/*
+ * File: config.h
+ * Author: savop
+ *
+ * Created on 15. August 2009, 13:03
+ */
+
+#ifndef _CONFIG_H
+#define _CONFIG_H
+
+#include <vdr/tools.h>
+#include "../common.h"
+
+class cUPnPConfig {
+private:
+ static cUPnPConfig* mInstance;
+ cString mParsedArgs;
+ cUPnPConfig();
+public:
+ char* mInterface;
+ char* mAddress;
+ int mPort;
+ int mEnable;
+ int mAutoSetup;
+public:
+ virtual ~cUPnPConfig();
+ static cUPnPConfig* get();
+ bool parseSetup(const char* Name, const char* Value);
+ bool processArgs(int argc, char* argv[]);
+};
+
+#endif /* _CONFIG_H */
+