blob: 3df9dd7eecf5eb2b1a8d39aac045bcbf489aea0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#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 std::tstring (*getContactIdFunc)(HANDLE contact, const ModuleString &module);
typedef std::unordered_map<ProtocolString, getContactIdFunc> RegisteredProtocols;
RegisteredProtocols _registeredProtocols;
};
#endif
|