blob: b57fc14f0a163bafe54f6a84479248284e0e401e (
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
 | #pragma once
#include <deque>
#include <utility>
class ProtocolInformation
{
  public:
	ProtocolInformation();
	~ProtocolInformation();
	void disable(const char *protocol);
	bool isDisabled(const char *protocol) const;
  private:
	typedef std::pair<std::string, unsigned int> ProtocolTimeout;
	typedef std::deque<ProtocolTimeout>          ProtocolTimeoutQueue;
	static void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
	static ProtocolInformation *m_instance;
	ProtocolTimeoutQueue m_protocol_timeout;
};
 |