blob: 13cc354b3d096e973f5f0a56f60e0295b3f3a2ac (
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
29
|
#ifndef __XSN_DATA_H
#define __XSN_DATA_H
class SoundNotifyData
{
public:
SoundNotifyData();
SoundNotifyData(HANDLE contact, const ModuleString &module, const std::tstring &sound);
void setSound(const std::tstring &sound);
HANDLE contact() const;
const std::tstring &soundPath() const;
const ModuleString &module() const;
bool isSoundChanged() const;
private:
HANDLE _contact;
ModuleString _module;
std::tstring _soundPath;
bool _soundChanged;
};
typedef std::shared_ptr<SoundNotifyData> SoundNotifyDataPtr;
typedef std::unordered_map<std::tstring, SoundNotifyDataPtr> UserDataTable;
typedef std::unordered_map<ProtocolString, UserDataTable> ProtocolTable;
typedef std::unordered_map<ModuleString, ProtocolString> ModuleConvertTable;
#endif
|