summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/stdafx.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-08-01 18:59:39 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-08-01 18:59:39 +0000
commitc1d55f386dda0203be456f8188070d0397711e32 (patch)
tree289772bb5bb418010163ea3988854188c2e789f4 /plugins/StopSpamPlus/src/stdafx.h
parent1e2b37b3408c3b732e221aadbf92edc13a77005b (diff)
stopspam: common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@14786 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StopSpamPlus/src/stdafx.h')
-rw-r--r--plugins/StopSpamPlus/src/stdafx.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/plugins/StopSpamPlus/src/stdafx.h b/plugins/StopSpamPlus/src/stdafx.h
new file mode 100644
index 0000000000..1b2ac5b2e1
--- /dev/null
+++ b/plugins/StopSpamPlus/src/stdafx.h
@@ -0,0 +1,58 @@
+#ifndef _stopspam_headers_h
+#define _stopspam_headers_h
+
+// disable security warnings about "*_s" functions
+#define _CRT_SECURE_NO_DEPRECATE
+
+#include <windows.h>
+#include <commctrl.h>
+#include <sstream>
+#include <list>
+
+#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_protosvc.h>
+#include <m_options.h>
+#include <m_langpack.h>
+#include <m_icolib.h>
+#include <m_skin.h>
+#include <m_clist.h>
+
+#include <m_stopspam.h>
+#include <m_variables.h>
+
+
+typedef std::wstring tstring;
+#define PREF_TCHAR2 PREF_UTF
+
+#include "eventhooker.h"
+#include "version.h"
+#include "resource.h"
+#include "settings.h"
+
+#define pluginName LPGEN("StopSpam")
+
+extern TCHAR * pluginDescription;
+extern TCHAR const * infTalkProtPrefix;
+extern char const * answeredSetting;
+extern char const * questCountSetting;
+extern HANDLE hLoadHook;
+extern HINSTANCE hInst;
+
+//options
+INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK MessagesDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK ProtoDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+
+//utils
+void SetDlgItemString(HWND hwndDlg, UINT idItem, std::string const &str);
+void SetDlgItemString(HWND hwndDlg, UINT idItem, std::wstring const &str);
+tstring &GetDlgItemString(HWND hwnd, int id);
+bool IsExistMyMessage(MCONTACT hContact);
+tstring variables_parse(tstring const &tstrFormat, MCONTACT hContact);
+tstring trim(tstring const &tstr, tstring const &trimChars = _T(" \f\n\r\t\v"));
+
+INT_PTR IsContactPassed(WPARAM wParam, LPARAM /*lParam*/);
+INT_PTR RemoveTempContacts(WPARAM wParam,LPARAM lParam);
+int OnSystemModulesLoaded(WPARAM wParam, LPARAM lParam);
+#endif