summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-28 19:25:08 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-28 19:25:08 +0000
commit66526765714b08969548a414d3fa87dbe333242d (patch)
treed3fc2027140f97edfdfc5023e70ff8b4db920c11 /plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h
parent3ccd712341ed9e76252bd595c5a797d6c8ea8992 (diff)
"!Deprecated" folders moved from root directory to plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@1230 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h')
-rw-r--r--plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h b/plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h
new file mode 100644
index 0000000000..18cb4844a4
--- /dev/null
+++ b/plugins/!NotAdopted/XSoundNotify/SoundNotifyData.h
@@ -0,0 +1,33 @@
+#ifndef __XSN_DATA_H
+#define __XSN_DATA_H
+
+#include <unordered_map>
+#include "xsn_types.h"
+#include <windows.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