summaryrefslogtreecommitdiff
path: root/client/Proxy.h
blob: a7183531fba3046fd39f99f398e8e660b73f9424 (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
44

#ifndef PROXY_H
#define PROXY_H

#include <string>

class Proxy
{
public:
	std::string login;
	std::string password;
	std::string host;
	std::string type;
	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;
	unsigned position;
	unsigned speed;	//kb per second
	
	ProxyEntryStatic(): Proxy(), position(0), speed(0) {}
	virtual void Parse(std::string entry);
};

#endif