diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-08-01 21:12:42 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-08-01 21:12:42 +0000 |
commit | 44d0f35d4e3d74b9814e9a511b6dc55e9fffebc0 (patch) | |
tree | da5c3816288a8abcc7d58fa55602ffe3d65452be /plugins/XSoundNotify/src/stdafx.h | |
parent | e88506076286ec7c878231c5362ea5c1bb2b612c (diff) |
XSoundNotify: common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@14803 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/XSoundNotify/src/stdafx.h')
-rw-r--r-- | plugins/XSoundNotify/src/stdafx.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/XSoundNotify/src/stdafx.h b/plugins/XSoundNotify/src/stdafx.h new file mode 100644 index 0000000000..6e867669ed --- /dev/null +++ b/plugins/XSoundNotify/src/stdafx.h @@ -0,0 +1,47 @@ +#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 <m_chat_int.h>
+
+#include "resource.h"
+#include "Version.h"
+
+#define SETTINGSNAME "XSoundNotify"
+#define SETTINGSKEY "XSNPlugin_sound"
+#define SETTINGSIGNOREKEY "XSNPlugin_ignore"
+
+struct XSN_Data
+{
+ MCONTACT hContact;
+ TCHAR path[MAX_PATH];
+ BYTE ignore;
+
+ __forceinline XSN_Data(MCONTACT _aContact, TCHAR *_path, BYTE _ignore) :
+ hContact(_aContact)
+ {
+ _tcsncpy(path, _path, _countof(path));
+ ignore = _ignore;
+ }
+};
+
+extern LIST<XSN_Data> XSN_Users;
+
+extern HINSTANCE hInst;
+extern MWindowList hChangeSoundDlgList;
+extern BYTE isIgnoreSound, isOwnSound;
+
+bool IsSuitableProto(PROTOACCOUNT *pa);
+
+INT OptInit(WPARAM wParam, LPARAM lParam);
+
+INT_PTR ShowDialog(WPARAM wParam, LPARAM lParam);
|