From 1a6e6a2265719faed255a2483eb7c3ab03d30d08 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Jul 2015 10:08:42 +0000 Subject: ignore: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14670 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IgnoreState/src/commonheaders.h | 67 --------------------------------- plugins/IgnoreState/src/main.cpp | 4 +- plugins/IgnoreState/src/options.cpp | 2 +- plugins/IgnoreState/src/stdafx.cpp | 18 --------- plugins/IgnoreState/src/stdafx.cxx | 18 +++++++++ plugins/IgnoreState/src/stdafx.h | 65 ++++++++++++++++++++++++++++++++ 6 files changed, 86 insertions(+), 88 deletions(-) delete mode 100644 plugins/IgnoreState/src/commonheaders.h delete mode 100644 plugins/IgnoreState/src/stdafx.cpp create mode 100644 plugins/IgnoreState/src/stdafx.cxx create mode 100644 plugins/IgnoreState/src/stdafx.h (limited to 'plugins/IgnoreState/src') diff --git a/plugins/IgnoreState/src/commonheaders.h b/plugins/IgnoreState/src/commonheaders.h deleted file mode 100644 index e0abfe1972..0000000000 --- a/plugins/IgnoreState/src/commonheaders.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - - IgnoreState plugin for Miranda-IM (www.miranda-im.org) - (c) 2010 by Kildor - - 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; either version 2 of the License, or - (at your option) any later version. - - 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, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - */ - -#ifndef COMMHEADERS_H -#define COMMHEADERS_H - -#define _CRT_SECURE_NO_WARNINGS - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "resource.h" -#include "Version.h" - -#define MODULENAME "IgnoreState" - -struct IGNOREITEMS -{ - TCHAR* name; - int type; - int icon; - bool filtered; -}; - -extern IGNOREITEMS ii[]; -extern int nII; - -static byte bUseMirandaSettings; - -extern HINSTANCE g_hInst; - -void applyExtraImage(MCONTACT hContact); - -int onOptInitialise(WPARAM wParam, LPARAM lParam); -BOOL checkState(int type); -VOID fill_filter(); - -extern HANDLE hExtraIcon; - -#endif //COMMHEADERS_H diff --git a/plugins/IgnoreState/src/main.cpp b/plugins/IgnoreState/src/main.cpp index 353efadb94..89013018cc 100644 --- a/plugins/IgnoreState/src/main.cpp +++ b/plugins/IgnoreState/src/main.cpp @@ -18,7 +18,7 @@ */ -#include "commonheaders.h" +#include "stdafx.h" HINSTANCE g_hInst; @@ -74,7 +74,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) ///////////////////////////////////////////////////////////////////////////////////////// -inline BOOL checkState(int type) +BOOL checkState(int type) { return ((currentFilter >> (type - 1)) & 1); } diff --git a/plugins/IgnoreState/src/options.cpp b/plugins/IgnoreState/src/options.cpp index 6118fbbd25..26bd7df886 100644 --- a/plugins/IgnoreState/src/options.cpp +++ b/plugins/IgnoreState/src/options.cpp @@ -18,7 +18,7 @@ */ -#include "commonheaders.h" +#include "stdafx.h" #define MS_SKINENG_DRAWICONEXFIX "SkinEngine/DrawIconEx_Fix" diff --git a/plugins/IgnoreState/src/stdafx.cpp b/plugins/IgnoreState/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/IgnoreState/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 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 . -*/ - -#include "commonheaders.h" \ No newline at end of file diff --git a/plugins/IgnoreState/src/stdafx.cxx b/plugins/IgnoreState/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/IgnoreState/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 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 . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/IgnoreState/src/stdafx.h b/plugins/IgnoreState/src/stdafx.h new file mode 100644 index 0000000000..644f8ee04f --- /dev/null +++ b/plugins/IgnoreState/src/stdafx.h @@ -0,0 +1,65 @@ +/* + + IgnoreState plugin for Miranda-IM (www.miranda-im.org) + (c) 2010 by Kildor + + 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; either version 2 of the License, or + (at your option) any later version. + + 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + */ + +#ifndef COMMHEADERS_H +#define COMMHEADERS_H + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "resource.h" +#include "Version.h" + +#define MODULENAME "IgnoreState" + +struct IGNOREITEMS +{ + TCHAR* name; + int type; + int icon; + bool filtered; +}; + +extern IGNOREITEMS ii[]; +extern int nII; + +static byte bUseMirandaSettings; + +extern HINSTANCE g_hInst; + +void applyExtraImage(MCONTACT hContact); + +int onOptInitialise(WPARAM wParam, LPARAM lParam); +BOOL checkState(int type); +VOID fill_filter(); + +extern HANDLE hExtraIcon; + +#endif //COMMHEADERS_H -- cgit v1.2.3