blob: c003f430347250a74eeac4b9e4b96250ea26d469 (
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
|
#ifndef guard_speak_announce_protocol_information_h
#define guard_speak_announce_protocol_information_h
//==============================================================================
// Miranda Speak Plugin, © 2002 Ryan Winter
//==============================================================================
#include <windows.h>
#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;
};
//==============================================================================
//
// Summary :
//
// Description :
//
//==============================================================================
#endif
|