From 8d3307adf7ba64b75fb4de363f873c97286b0e9b Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 2 Apr 2013 13:26:06 +0000 Subject: - XSoundNotify - adopted git-svn-id: http://svn.miranda-ng.org/main/trunk@4284 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/XSoundNotify/src/SoundNotifyDataStorage.h | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 plugins/XSoundNotify/src/SoundNotifyDataStorage.h (limited to 'plugins/XSoundNotify/src/SoundNotifyDataStorage.h') diff --git a/plugins/XSoundNotify/src/SoundNotifyDataStorage.h b/plugins/XSoundNotify/src/SoundNotifyDataStorage.h new file mode 100644 index 0000000000..52d5c307a0 --- /dev/null +++ b/plugins/XSoundNotify/src/SoundNotifyDataStorage.h @@ -0,0 +1,28 @@ +#ifndef _XSN_DATA_STORAGE +#define _XSN_DATA_STORAGE + +class SoundNotifyDataStorage +{ +public: + SoundNotifyDataStorage(); + + void init(); + void commit(); + + ProtocolTable & getData(); + +protected: + void addContact(HANDLE contact); + xsn_string getContactId(HANDLE contact, const ModuleString & module, const ProtocolString & proto); + void registerProtocols(); + +private: + ProtocolTable _protocolTable; + ModuleConvertTable _moduleTable; + + typedef boost::function getContactIdFunc; + typedef std::unordered_map RegisteredProtocols; + RegisteredProtocols _registeredProtocols; +}; + +#endif -- cgit v1.2.3