00001 /* 00002 * File: config.h 00003 * Author: savop 00004 * 00005 * Created on 15. August 2009, 13:03 00006 */ 00007 00008 #ifndef _CONFIG_H 00009 #define _CONFIG_H 00010 00011 #include <vdr/tools.h> 00012 #include "../common.h" 00013 00020 class cUPnPConfig { 00021 private: 00022 static cUPnPConfig* mInstance; 00023 cString mParsedArgs; 00024 cUPnPConfig(); 00025 public: 00026 char* mInterface; 00027 char* mAddress; 00028 int mPort; 00029 int mEnable; 00030 int mAutoSetup; 00031 public: 00032 virtual ~cUPnPConfig(); 00040 static cUPnPConfig* get(); 00053 bool parseSetup(const char* Name, const char* Value); 00066 bool processArgs(int argc, char* argv[]); 00067 }; 00068 00069 #endif /* _CONFIG_H */ 00070