From d3ff62b1eeaba12131226a277b56abd15b015bda Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Thu, 20 Oct 2011 05:35:36 +0300 Subject: proxy representation classes --- client/proxy.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 client/proxy.h (limited to 'client/proxy.h') 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 + +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); +}; -- cgit v1.2.3