summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/ProtocolInformation.h
blob: 307c2c76519b790f3cdfb13f5a87118abc907278 (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;
};