From 66526765714b08969548a414d3fa87dbe333242d Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 28 Jul 2012 19:25:08 +0000 Subject: "!Deprecated" folders moved from root directory to plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@1230 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../XSoundNotify/SoundNotifyDataStorage.h | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 plugins/!NotAdopted/XSoundNotify/SoundNotifyDataStorage.h (limited to 'plugins/!NotAdopted/XSoundNotify/SoundNotifyDataStorage.h') diff --git a/plugins/!NotAdopted/XSoundNotify/SoundNotifyDataStorage.h b/plugins/!NotAdopted/XSoundNotify/SoundNotifyDataStorage.h new file mode 100644 index 0000000000..7dbf03c494 --- /dev/null +++ b/plugins/!NotAdopted/XSoundNotify/SoundNotifyDataStorage.h @@ -0,0 +1,34 @@ +#ifndef _XSN_DATA_STORAGE +#define _XSN_DATA_STORAGE + +#include "SoundNotifyData.h" +#include +#include + +class SoundNotifyDataStorage +{ +public: + SoundNotifyDataStorage(PLUGINLINK * pl); + + 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: + PLUGINLINK * pluginLink; + + ProtocolTable _protocolTable; + ModuleConvertTable _moduleTable; + + typedef boost::function getContactIdFunc; + typedef std::unordered_map RegisteredProtocols; + RegisteredProtocols _registeredProtocols; +}; + +#endif -- cgit v1.2.3