diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-10-23 04:10:55 +0300 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-10-23 04:10:55 +0300 |
commit | 21ad7eac963bc329395fa893300fb5c8f721fd77 (patch) | |
tree | 10dda6e6170071332aab490faeeb599f10ff6e03 /client/Proxy.h | |
parent | 3eef0376635624c354a5e1b8a2680b74eb23a423 (diff) |
Logging facility, Config class, tray icon, custom QApplication subclass
Diffstat (limited to 'client/Proxy.h')
-rw-r--r-- | client/Proxy.h | 43 |
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 |