summaryrefslogtreecommitdiff
path: root/client/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/Config.h')
-rw-r--r--client/Config.h31
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