summaryrefslogtreecommitdiff
path: root/client/proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/proxy.h')
-rw-r--r--client/proxy.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/client/proxy.h b/client/proxy.h
new file mode 100644
index 0000000..321922a
--- /dev/null
+++ b/client/proxy.h
@@ -0,0 +1,37 @@
+
+#include <client.h>
+
+class Proxy
+{
+public:
+ std::string login;
+ std::string password;
+ std::string host;
+ short port;
+
+ Proxy(): port(0) {}
+ virtual void Parse(std::string entry);
+};
+
+
+class ProxyEntry: public Proxy
+{
+public:
+ std::string country;
+ std::string state;
+ std::string city;
+
+ ProxyEntry(): Proxy() {}
+ void Parse(std::string entry);
+};
+
+
+class ProxyEntryStatic: public Proxy
+{
+public:
+ std::string name;
+ int position;
+
+ ProxyEntryStatic(): Proxy(), position(0) {}
+ void Parse(std::string entry);
+};