diff options
Diffstat (limited to 'plugins/WinterSpeak/src/ProtocolInformation.h')
-rw-r--r-- | plugins/WinterSpeak/src/ProtocolInformation.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/WinterSpeak/src/ProtocolInformation.h b/plugins/WinterSpeak/src/ProtocolInformation.h new file mode 100644 index 0000000000..dcfb6eca18 --- /dev/null +++ b/plugins/WinterSpeak/src/ProtocolInformation.h @@ -0,0 +1,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;
+};
\ No newline at end of file |