summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/headers.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-24 09:26:39 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-24 09:26:39 +0000
commit1e92bf5cf72665b5fec103a0a70d734340725539 (patch)
tree7f9dc318b0e18b2cd55e2604c309eb006c11f278 /plugins/StopSpamPlus/src/headers.h
parentcd441faefd073cfd368d815f4237d7b4996a1063 (diff)
StopSpamPlus, TipperYM, TooltipNotify, TopToolBar, TranslitSwitcher, UserGuide: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1159 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StopSpamPlus/src/headers.h')
-rw-r--r--plugins/StopSpamPlus/src/headers.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/plugins/StopSpamPlus/src/headers.h b/plugins/StopSpamPlus/src/headers.h
new file mode 100644
index 0000000000..6da161f793
--- /dev/null
+++ b/plugins/StopSpamPlus/src/headers.h
@@ -0,0 +1,71 @@
+#ifndef _stopspam_headers_h
+#define _stopspam_headers_h
+
+// disable security warnings about "*_s" functions
+#define _CRT_SECURE_NO_DEPRECATE
+
+// disable warnings about underscore in stdc functions
+#pragma warning(disable: 4996)
+
+#define MIRANDA_VER 0x0A00
+
+#include <windows.h>
+#include <stdio.h>
+#include <commctrl.h>
+#include <time.h>
+#include <string>
+#include <sstream>
+
+#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_protosvc.h>
+#include <m_options.h>
+#include <m_utils.h>
+#include <m_langpack.h>
+#include <m_icolib.h>
+#include <m_skin.h>
+#include <m_clist.h>
+
+#include "eventhooker.h"
+#include "version.h"
+#include "resource.h"
+#include "m_stopspam.h"
+
+#include "m_variables.h"
+
+#define pluginName "StopSpam"
+
+extern char * pluginDescription;
+extern TCHAR const * infTalkProtPrefix;
+extern char const * answeredSetting;
+extern char const * questCountSetting;
+extern HANDLE hLoadHook;
+extern HINSTANCE hInst;
+
+#ifdef _UNICODE
+ typedef std::wstring tstring;
+ #define PREF_TCHAR2 PREF_UTF
+#else
+ typedef std::string tstring;
+ #define PREF_TCHAR2 0
+#endif //_UNICODE
+
+#include "settings.h"
+
+//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(HANDLE hContact);
+tstring variables_parse(tstring const &tstrFormat, HANDLE 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