summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-09 20:54:36 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-09 20:54:36 +0000
commit9404a7af6b32f11c87a19320b39841a93a831bb7 (patch)
treeb7bb3a4d8ae2427072aa021fda52cd6c9f7105b5 /plugins/StopSpamMod/src
parent4909b45339d61cb17915f2af353b89a9e334f788 (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3950 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StopSpamMod/src')
-rwxr-xr-xplugins/StopSpamMod/src/eventhooker.cpp3
-rwxr-xr-xplugins/StopSpamMod/src/eventhooker.h6
-rwxr-xr-xplugins/StopSpamMod/src/headers.h33
-rwxr-xr-xplugins/StopSpamMod/src/init.cpp21
-rwxr-xr-xplugins/StopSpamMod/src/options.cpp4
-rwxr-xr-xplugins/StopSpamMod/src/options.h1
-rw-r--r--plugins/StopSpamMod/src/stdafx.cpp18
-rwxr-xr-xplugins/StopSpamMod/src/stopspam.cpp1
-rwxr-xr-xplugins/StopSpamMod/src/version.h20
9 files changed, 52 insertions, 55 deletions
diff --git a/plugins/StopSpamMod/src/eventhooker.cpp b/plugins/StopSpamMod/src/eventhooker.cpp
index 5518577bac..f127e0c1f0 100755
--- a/plugins/StopSpamMod/src/eventhooker.cpp
+++ b/plugins/StopSpamMod/src/eventhooker.cpp
@@ -16,8 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <list>
-#include "eventhooker.h"
+#include "headers.h"
namespace miranda
{
diff --git a/plugins/StopSpamMod/src/eventhooker.h b/plugins/StopSpamMod/src/eventhooker.h
index 31640ffafa..4a5ef3b9fc 100755
--- a/plugins/StopSpamMod/src/eventhooker.h
+++ b/plugins/StopSpamMod/src/eventhooker.h
@@ -19,12 +19,6 @@
#ifndef EVENTHOOKER_H_C8EAA58A_7C4D_45f7_A88E_0E41FE93754D
#define EVENTHOOKER_H_C8EAA58A_7C4D_45f7_A88E_0E41FE93754D
-#pragma warning( once : 4430 )
-
-#include <windows.h>
-#include <string>
-#include <newpluginapi.h>
-
namespace miranda
{
diff --git a/plugins/StopSpamMod/src/headers.h b/plugins/StopSpamMod/src/headers.h
index 18993e70ef..40b22fe761 100755
--- a/plugins/StopSpamMod/src/headers.h
+++ b/plugins/StopSpamMod/src/headers.h
@@ -1,46 +1,33 @@
+#define _CRT_SECURE_NO_WARNINGS
+
#include <windows.h>
-#include <stdio.h>
-#include <commctrl.h>
-#include <malloc.h>
-#include <time.h>
-#include <string>
-#include <sstream>
#include<fstream>
-
#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_clistint.h>
#include <m_skin.h>
-#include <m_button.h>
#include <m_contacts.h>
#include <m_variables.h>
#include <m_folders.h>
+#include <boost\thread.hpp>
+#include <boost\regex.hpp>
+#include <boost\algorithm\string.hpp>
+#include <boost\nondet_random.hpp>
+#include <boost\random\variate_generator.hpp>
+#include <boost\random\uniform_int.hpp>
#include "globals.h"
#include "stopspam.h"
-#include "options.h"
#include "eventhooker.h"
#include "version.h"
#include "resource.h"
#include "utilities.h"
+#include "utf8.h"
-//boost
-#include <boost/thread.hpp>
-#include <boost/regex.hpp>
-#include <boost/algorithm/string.hpp>
-#include <boost/nondet_random.hpp>
-#include <boost/random/variate_generator.hpp>
-#include <boost/random/uniform_int.hpp>
-
-//utf8cpp
-#include <utf8.h>
-
-
-//#include <m_dos.h>
+extern HINSTANCE hInst; \ No newline at end of file
diff --git a/plugins/StopSpamMod/src/init.cpp b/plugins/StopSpamMod/src/init.cpp
index 63665337f9..e6797ef11d 100755
--- a/plugins/StopSpamMod/src/init.cpp
+++ b/plugins/StopSpamMod/src/init.cpp
@@ -18,8 +18,6 @@
#include "headers.h"
-
-
BOOL gbDosServiceExist = 0;
BOOL gbVarsServiceExist = 0;
@@ -54,7 +52,6 @@ tstring gbQuestion;
tstring gbAnswer;
tstring gbCongratulation;
std::wstring gbAuthRepl;
-extern char * pluginDescription;
extern TCHAR const * defQuestion;
extern int RemoveTmp(WPARAM,LPARAM);
@@ -66,16 +63,16 @@ extern int RemoveTmp(WPARAM,LPARAM);
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
- pluginName" mod",
- PLUGIN_MAKE_VERSION(0, 0, 2, 0),
- pluginDescription,
- "Roman Miklashevsky, sss, Elzor",
- "sss123next@list.ru",
- "© 2004-2012 Roman Miklashevsky, A. Petkevich, Kosh&chka, sss, Elzor",
- "http://sss.chaoslab.ru/tracker/mim_plugs/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {553811EE-DEB6-48b8-8902-A8A00C1FD679}
- { 0x553811ee, 0xdeb6, 0x48b8, { 0x89, 0x2, 0xa8, 0xa0, 0xc, 0x1f, 0xd6, 0x79 } }
+ // {553811EE-DEB6-48B8-8902-A8A00C1FD679}
+ {0x553811ee, 0xdeb6, 0x48b8, {0x89, 0x2, 0xa8, 0xa0, 0xc, 0x1f, 0xd6, 0x79}}
};
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
diff --git a/plugins/StopSpamMod/src/options.cpp b/plugins/StopSpamMod/src/options.cpp
index fe4228ca6b..a3acf55204 100755
--- a/plugins/StopSpamMod/src/options.cpp
+++ b/plugins/StopSpamMod/src/options.cpp
@@ -15,17 +15,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
-#define MIRANDA_VER 0x0800
#include "headers.h"
char * pluginDescription = LPGEN("No more spam! Robots can't go! Only human beings invited!\r\n\r\nThis plugin works pretty simple:\r\nWhile messages from users on your contact list go as there is no any anti-spam software, messages from unknown users are not delivered to you. But also they are not ignored, this plugin replies with a simple question, and if user gives the right answer plugin adds him to your contact list so that he can contact you.");
TCHAR const * defQuestion = TranslateT("Spammers made me to install small anti-spam system you are now speaking with.\r\nPlease reply \"nospam\" without quotes and spaces if you want to contact me.");
-
INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
-
switch(msg)
{
case WM_INITDIALOG:
diff --git a/plugins/StopSpamMod/src/options.h b/plugins/StopSpamMod/src/options.h
deleted file mode 100755
index e32791e98b..0000000000
--- a/plugins/StopSpamMod/src/options.h
+++ /dev/null
@@ -1 +0,0 @@
-extern HINSTANCE hInst; \ No newline at end of file
diff --git a/plugins/StopSpamMod/src/stdafx.cpp b/plugins/StopSpamMod/src/stdafx.cpp
new file mode 100644
index 0000000000..48d92d3d56
--- /dev/null
+++ b/plugins/StopSpamMod/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "headers.h" \ No newline at end of file
diff --git a/plugins/StopSpamMod/src/stopspam.cpp b/plugins/StopSpamMod/src/stopspam.cpp
index 4ac29df394..d5eba48f04 100755
--- a/plugins/StopSpamMod/src/stopspam.cpp
+++ b/plugins/StopSpamMod/src/stopspam.cpp
@@ -18,7 +18,6 @@
#include "headers.h"
-
MIRANDA_HOOK_EVENT(ME_DB_CONTACT_ADDED, w, l)
{
return 0;
diff --git a/plugins/StopSpamMod/src/version.h b/plugins/StopSpamMod/src/version.h
index 1641ff5c9c..2f880e7933 100755
--- a/plugins/StopSpamMod/src/version.h
+++ b/plugins/StopSpamMod/src/version.h
@@ -1,6 +1,14 @@
-#ifndef VERSION_H_CAA3B062_9BEE_40e6_A9F9_20BBF467731B
-#define VERSION_H_CAA3B062_9BEE_40e6_A9F9_20BBF467731B
-
-#define SUBWCREV (0)
-
-#endif
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 2
+#define __BUILD_NUM 0
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "StopSpam mod"
+#define __FILENAME "StopSpamMod.dll"
+#define __DESCRIPTION "Antispam plugin for Miranda NG."
+#define __AUTHOR "Roman Miklashevsky, sss, Elzor"
+#define __AUTHOREMAIL "sss123next@list.ru"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2004-2012 Roman Miklashevsky, A. Petkevich, Kosh&chka, sss, Elzor"