diff options
Diffstat (limited to 'plugins/!NotAdopted/WinterSpeak/speak/announce/protocol_information.h')
-rw-r--r-- | plugins/!NotAdopted/WinterSpeak/speak/announce/protocol_information.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/WinterSpeak/speak/announce/protocol_information.h b/plugins/!NotAdopted/WinterSpeak/speak/announce/protocol_information.h new file mode 100644 index 0000000000..c003f43034 --- /dev/null +++ b/plugins/!NotAdopted/WinterSpeak/speak/announce/protocol_information.h @@ -0,0 +1,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
\ No newline at end of file |