diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-04 19:00:03 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-04 19:00:03 +0000 |
commit | c814aae8a9ba7f85996792b9c283fcd6605e11ff (patch) | |
tree | 480da7d4b69ba386c28dbe717105d741df8f85eb /plugins/XSoundNotify/src/Common.h | |
parent | 5729f9c9a82d120cfd4a7eeb8b7297ac52a8332b (diff) |
added support of all accounts (not only icq and jabber)
not use atl
can play mp3 and others (bass_interface.dll required)
plugin settings moved to options
added relative path support
git-svn-id: http://svn.miranda-ng.org/main/trunk@4306 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/XSoundNotify/src/Common.h')
-rw-r--r-- | plugins/XSoundNotify/src/Common.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/plugins/XSoundNotify/src/Common.h b/plugins/XSoundNotify/src/Common.h index be4d16e2a8..edccbabc4f 100644 --- a/plugins/XSoundNotify/src/Common.h +++ b/plugins/XSoundNotify/src/Common.h @@ -1,26 +1,33 @@ -#include <windows.h>
-
-#include <string>
-#include <unordered_map>
-#include <memory>
+#define _CRT_SECURE_NO_WARNINGS
-#include <atlbase.h>
-#include <atlapp.h>
-#include <atlctrls.h>
-#include <atldlgs.h>
+#include <windows.h>
+#include <Shlwapi.h>
#include <newpluginapi.h>
#include <m_system_cpp.h>
#include <m_database.h>
#include <m_protocols.h>
+#include <m_protosvc.h>
#include <m_langpack.h>
#include <m_clist.h>
#include <m_skin.h>
+#include <win2k.h>
+#include <m_options.h>
#include "resource.h"
#include "Version.h"
-#include "xsn_types.h"
-#include "SoundNotifyData.h"
-#include "SoundNotifyDataStorage.h"
-#include "SettingsDialog.h"
-#include "xsn_utils.h"
+
+#define SETTINGSNAME "XSoundNotify"
+#define SETTINGSKEY "XSNPlugin_sound"
+
+struct XSN_Data
+{
+ HANDLE hContact;
+ TCHAR path[MAX_PATH];
+
+__inline XSN_Data(HANDLE _aContact, TCHAR *_path) :
+ hContact(_aContact)
+{
+ _tcsncpy(path, _path, SIZEOF(path));
+}
+};
\ No newline at end of file |