From ae2b2899a40c45aecdb967aa20eb900c61ea5a45 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 1 Aug 2015 21:21:38 +0000 Subject: YahooGroups: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14804 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YahooGroups/src/YahooGroups.cpp | 2 +- plugins/YahooGroups/src/commonheaders.h | 53 ------------------------------- plugins/YahooGroups/src/dlg_handlers.cpp | 2 +- plugins/YahooGroups/src/dlg_handlers.h | 2 +- plugins/YahooGroups/src/hooked_events.cpp | 2 +- plugins/YahooGroups/src/hooked_events.h | 2 +- plugins/YahooGroups/src/list.cpp | 2 +- plugins/YahooGroups/src/list.h | 2 +- plugins/YahooGroups/src/services.cpp | 2 +- plugins/YahooGroups/src/services.h | 2 +- plugins/YahooGroups/src/stdafx.cpp | 18 ----------- plugins/YahooGroups/src/stdafx.cxx | 18 +++++++++++ plugins/YahooGroups/src/stdafx.h | 51 +++++++++++++++++++++++++++++ plugins/YahooGroups/src/utils.cpp | 2 +- plugins/YahooGroups/src/utils.h | 2 +- 15 files changed, 80 insertions(+), 82 deletions(-) delete mode 100644 plugins/YahooGroups/src/commonheaders.h delete mode 100644 plugins/YahooGroups/src/stdafx.cpp create mode 100644 plugins/YahooGroups/src/stdafx.cxx create mode 100644 plugins/YahooGroups/src/stdafx.h (limited to 'plugins/YahooGroups/src') diff --git a/plugins/YahooGroups/src/YahooGroups.cpp b/plugins/YahooGroups/src/YahooGroups.cpp index 4cec4c963d..d907e2aa75 100644 --- a/plugins/YahooGroups/src/YahooGroups.cpp +++ b/plugins/YahooGroups/src/YahooGroups.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" CLIST_INTERFACE *pcli; char ModuleName[] = "YahooGroups"; diff --git a/plugins/YahooGroups/src/commonheaders.h b/plugins/YahooGroups/src/commonheaders.h deleted file mode 100644 index db316c3b18..0000000000 --- a/plugins/YahooGroups/src/commonheaders.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -YahooGroups plugin for Miranda IM - -Copyright © 2007 Cristian Libotean - -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 M_YAHOOGROUPS_COMMONHEADERS_H -#define M_YAHOOGROUPS_COMMONHEADERS_H - -#define _CRT_SECURE_NO_WARNINGS - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "version.h" -#include "dlg_handlers.h" -#include "hooked_events.h" -#include "services.h" -#include "list.h" -#include "services.h" -#include "utils.h" -#include "resource.h" - -extern char ModuleName[]; -extern HINSTANCE hInstance; -extern UINT currentCodePage; - -#endif //M_YAHOOGROUPS_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/YahooGroups/src/dlg_handlers.cpp b/plugins/YahooGroups/src/dlg_handlers.cpp index 4c23c92f9b..1bb4ae8b58 100644 --- a/plugins/YahooGroups/src/dlg_handlers.cpp +++ b/plugins/YahooGroups/src/dlg_handlers.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" INT_PTR CALLBACK DlgProcOptions(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { diff --git a/plugins/YahooGroups/src/dlg_handlers.h b/plugins/YahooGroups/src/dlg_handlers.h index 77dbb1948e..e1fe1b8115 100644 --- a/plugins/YahooGroups/src/dlg_handlers.h +++ b/plugins/YahooGroups/src/dlg_handlers.h @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_YAHOOGROUPS_DLGHANDLERS_H #define M_YAHOOGROUPS_DLGHANDLERS_H -#include "commonheaders.h" +#include "stdafx.h" INT_PTR CALLBACK DlgProcOptions(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); diff --git a/plugins/YahooGroups/src/hooked_events.cpp b/plugins/YahooGroups/src/hooked_events.cpp index d213c0a719..bc2341f748 100644 --- a/plugins/YahooGroups/src/hooked_events.cpp +++ b/plugins/YahooGroups/src/hooked_events.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" HANDLE hModulesLoaded; HANDLE hOptionsInitialize; diff --git a/plugins/YahooGroups/src/hooked_events.h b/plugins/YahooGroups/src/hooked_events.h index 224667a78a..555fe570e9 100644 --- a/plugins/YahooGroups/src/hooked_events.h +++ b/plugins/YahooGroups/src/hooked_events.h @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_YAHOOGROUPS_HOOKED_EVENTS_H #define M_YAHOOGROUPS_HOOKED_EVENTS_H -#include "commonheaders.h" +#include "stdafx.h" extern HANDLE hModulesLoaded; extern HANDLE hOptionsInitialise; diff --git a/plugins/YahooGroups/src/list.cpp b/plugins/YahooGroups/src/list.cpp index abfde10670..94b0ac40d4 100644 --- a/plugins/YahooGroups/src/list.cpp +++ b/plugins/YahooGroups/src/list.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" CGroupsList &availableGroups = CGroupsList(); diff --git a/plugins/YahooGroups/src/list.h b/plugins/YahooGroups/src/list.h index 3414d8fdec..a2931a94ec 100644 --- a/plugins/YahooGroups/src/list.h +++ b/plugins/YahooGroups/src/list.h @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_YAHOOGROUPS_LIST_H #define M_YAHOOGROUPS_LIST_H -#include "commonheaders.h" +#include "stdafx.h" class CGroupsList { diff --git a/plugins/YahooGroups/src/services.cpp b/plugins/YahooGroups/src/services.cpp index 8bb381621f..71252f42d5 100644 --- a/plugins/YahooGroups/src/services.cpp +++ b/plugins/YahooGroups/src/services.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" #define CLIST_GROUPS "CListGroups" diff --git a/plugins/YahooGroups/src/services.h b/plugins/YahooGroups/src/services.h index dff16431d0..b6a2237815 100644 --- a/plugins/YahooGroups/src/services.h +++ b/plugins/YahooGroups/src/services.h @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_YAHOOGROUPS_SERVICES_H #define M_YAHOOGROUPS_SERVICES_H -#include "commonheaders.h" +#include "stdafx.h" #define MS_YAHOOGROUPS_MOVE "YahooGroups/Groups/MoveToOfficialGroups" #define MS_YAHOOGROUPS_RESET "YahooGroups/Groups/Reset" diff --git a/plugins/YahooGroups/src/stdafx.cpp b/plugins/YahooGroups/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/YahooGroups/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/YahooGroups/src/stdafx.cxx b/plugins/YahooGroups/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/YahooGroups/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/YahooGroups/src/stdafx.h b/plugins/YahooGroups/src/stdafx.h new file mode 100644 index 0000000000..a42495ae84 --- /dev/null +++ b/plugins/YahooGroups/src/stdafx.h @@ -0,0 +1,51 @@ +/* +YahooGroups plugin for Miranda IM + +Copyright © 2007 Cristian Libotean + +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 M_YAHOOGROUPS_COMMONHEADERS_H +#define M_YAHOOGROUPS_COMMONHEADERS_H + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "version.h" +#include "dlg_handlers.h" +#include "hooked_events.h" +#include "services.h" +#include "list.h" +#include "services.h" +#include "utils.h" +#include "resource.h" + +extern char ModuleName[]; +extern HINSTANCE hInstance; +extern UINT currentCodePage; + +#endif //M_YAHOOGROUPS_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp index a22c01baf3..383d001007 100644 --- a/plugins/YahooGroups/src/utils.cpp +++ b/plugins/YahooGroups/src/utils.cpp @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "commonheaders.h" +#include "stdafx.h" int LogInit() { diff --git a/plugins/YahooGroups/src/utils.h b/plugins/YahooGroups/src/utils.h index e34a7c6ecd..3239217211 100644 --- a/plugins/YahooGroups/src/utils.h +++ b/plugins/YahooGroups/src/utils.h @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_YAHOOGROUPS_UTILS_H #define M_YAHOOGROUPS_UTILS_H -#include "commonheaders.h" +#include "stdafx.h" //#define USE_LOG #define LOG_FILE "yahoogroups.log" -- cgit v1.2.3