diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-10-23 04:10:55 +0300 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-10-23 04:10:55 +0300 |
commit | 21ad7eac963bc329395fa893300fb5c8f721fd77 (patch) | |
tree | 10dda6e6170071332aab490faeeb599f10ff6e03 /client/Config.h | |
parent | 3eef0376635624c354a5e1b8a2680b74eb23a423 (diff) |
Logging facility, Config class, tray icon, custom QApplication subclass
Diffstat (limited to 'client/Config.h')
-rw-r--r-- | client/Config.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/client/Config.h b/client/Config.h new file mode 100644 index 0000000..9b8a53e --- /dev/null +++ b/client/Config.h @@ -0,0 +1,31 @@ + + +#ifndef CONFIG_H +#define CONFIG_H + +#include <vector> +#include "Proxy.h" + +class ProxyEntryGeneric; +class ProxyEntryStatic; + +class Config +{ +public: + static Config *CurrentConfig(); + void AcquireConfig(); + bool IsConfigValid(); +protected: + Config(); +private: + static Config *self; + bool configValid; + std::vector<ProxyEntryGeneric> genericProxy; + std::vector<ProxyEntryStatic> staticProxy; + + int ReadGenericProxy(); + int ReadStaticProxy(); +}; + + +#endif
\ No newline at end of file |