diff options
author | Alex Borisov <b0ris@b0ris-universe.localdomain> | 2011-10-20 05:35:36 +0300 |
---|---|---|
committer | Alex Borisov <b0ris@b0ris-universe.localdomain> | 2011-10-20 05:35:36 +0300 |
commit | d3ff62b1eeaba12131226a277b56abd15b015bda (patch) | |
tree | 0bf38bbcb83ba2ca8bd9b4c7f30cf85559283c6e /client/proxy.h | |
parent | 4ac3da0fe4400b9109636143e8da53dbef6c3984 (diff) |
proxy representation classes
Diffstat (limited to 'client/proxy.h')
-rw-r--r-- | client/proxy.h | 37 |
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); +}; |