summaryrefslogtreecommitdiff
path: root/client/Proxy.h
blob: 0194db495c9f7d04a50c2b75db6015ed7b3ee22c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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