From 21ad7eac963bc329395fa893300fb5c8f721fd77 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sun, 23 Oct 2011 04:10:55 +0300 Subject: Logging facility, Config class, tray icon, custom QApplication subclass --- client/Config.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 client/Config.h (limited to 'client/Config.h') 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 +#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 genericProxy; + std::vector staticProxy; + + int ReadGenericProxy(); + int ReadStaticProxy(); +}; + + +#endif \ No newline at end of file -- cgit v1.2.3