diff options
| author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-04-02 13:26:06 +0000 |
|---|---|---|
| committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-04-02 13:26:06 +0000 |
| commit | 8d3307adf7ba64b75fb4de363f873c97286b0e9b (patch) | |
| tree | 1f89dccbcd641f2df5d793ee3a3a5c6c745d898c /plugins/XSoundNotify/src/SoundNotifyData.h | |
| parent | 626e01829f5d9946e831cbf66ad49a13103f91bb (diff) | |
- XSoundNotify - adopted
git-svn-id: http://svn.miranda-ng.org/main/trunk@4284 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/XSoundNotify/src/SoundNotifyData.h')
| -rw-r--r-- | plugins/XSoundNotify/src/SoundNotifyData.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/XSoundNotify/src/SoundNotifyData.h b/plugins/XSoundNotify/src/SoundNotifyData.h new file mode 100644 index 0000000000..13076f76e2 --- /dev/null +++ b/plugins/XSoundNotify/src/SoundNotifyData.h @@ -0,0 +1,29 @@ +#ifndef __XSN_DATA_H
+#define __XSN_DATA_H
+
+class SoundNotifyData
+{
+public:
+ SoundNotifyData();
+ SoundNotifyData(HANDLE contact, const ModuleString & module, const xsn_string & sound);
+
+ void setSound(const xsn_string & sound);
+
+ HANDLE contact() const;
+ const xsn_string & soundPath() const;
+ const ModuleString & module() const;
+ bool isSoundChanged() const;
+
+private:
+ HANDLE _contact;
+ ModuleString _module;
+ xsn_string _soundPath;
+ bool _soundChanged;
+};
+typedef std::shared_ptr<SoundNotifyData> SoundNotifyDataPtr;
+
+typedef std::unordered_map<xsn_string, SoundNotifyDataPtr> UserDataTable;
+typedef std::unordered_map<ProtocolString, UserDataTable> ProtocolTable;
+typedef std::unordered_map<ModuleString, ProtocolString> ModuleConvertTable;
+
+#endif
|
