summaryrefslogtreecommitdiff
path: root/client/Proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/Proxy.h')
-rw-r--r--client/Proxy.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/client/Proxy.h b/client/Proxy.h
new file mode 100644
index 0000000..0194db4
--- /dev/null
+++ b/client/Proxy.h
@@ -0,0 +1,43 @@
+
+#ifndef PROXY_H
+#define PROXY_H
+
+#include <string>
+
+class Proxy
+{
+public:
+ std::string login;
+ std::string password;
+ std::string host;
+ short port;
+
+ Proxy(): port(0) {}
+ virtual void Parse(std::string entry);
+};
+
+
+class ProxyEntryGeneric: public Proxy
+{
+public:
+ std::string country;
+ std::string state;
+ std::string city;
+
+ ProxyEntryGeneric(): Proxy() {}
+ virtual void Parse(std::string entry);
+};
+
+
+class ProxyEntryStatic: public Proxy
+{
+public:
+ std::string name;
+ int position;
+ int speed; //kb per second
+
+ ProxyEntryStatic(): Proxy(), position(0), speed(0) {}
+ virtual void Parse(std::string entry);
+};
+
+#endif