summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/ProtocolInformation.h
blob: dcfb6eca188262db8fffec8c4e5b9792060230b8 (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
#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 timeout(HWND hwnd, UINT uMsg, UINT idEvent, 
		DWORD dwTime);

	static ProtocolInformation *m_instance;

	ProtocolTimeoutQueue m_protocol_timeout;
};