#ifndef _XSN_DATA_STORAGE #define _XSN_DATA_STORAGE class SoundNotifyDataStorage { public: SoundNotifyDataStorage(); void init(); void commit(); ProtocolTable &getData(); protected: void addContact(HANDLE contact); std::tstring 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