From 058d73ec95f3ba11678980ff8b80ab6bdda21668 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Jul 2015 07:01:03 +0000 Subject: folders: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14662 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Folders/src/commonheaders.h | 63 ------------------------------------ plugins/Folders/src/dlg_handlers.cpp | 2 +- plugins/Folders/src/events.cpp | 2 +- plugins/Folders/src/folderItem.cpp | 2 +- plugins/Folders/src/folderItem.h | 2 -- plugins/Folders/src/folders.cpp | 2 +- plugins/Folders/src/services.cpp | 2 +- plugins/Folders/src/stdafx.cpp | 18 ----------- plugins/Folders/src/stdafx.cxx | 18 +++++++++++ plugins/Folders/src/stdafx.h | 61 ++++++++++++++++++++++++++++++++++ plugins/Folders/src/utils.cpp | 2 +- 11 files changed, 85 insertions(+), 89 deletions(-) delete mode 100644 plugins/Folders/src/commonheaders.h delete mode 100644 plugins/Folders/src/stdafx.cpp create mode 100644 plugins/Folders/src/stdafx.cxx create mode 100644 plugins/Folders/src/stdafx.h (limited to 'plugins/Folders/src') diff --git a/plugins/Folders/src/commonheaders.h b/plugins/Folders/src/commonheaders.h deleted file mode 100644 index ef29b5545c..0000000000 --- a/plugins/Folders/src/commonheaders.h +++ /dev/null @@ -1,63 +0,0 @@ -/* -Custom profile folders plugin for Miranda IM - -Copyright © 2005 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. -*/ - -#define _CRT_SECURE_NO_WARNINGS - -#ifndef M_FOLDERS_COMMONHEADERS_H -#define M_FOLDERS_COMMONHEADERS_H - -#define MAX_FOLDER_SIZE 2048 - -#include -#include - -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include "version.h" -#include "utils.h" -#include "resource.h" -#include "services.h" -#include "events.h" -#include "folderItem.h" - -#ifndef MS_DB_GETPROFILEPATH_BASIC //db3xSA -#define MS_DB_GETPROFILEPATH_BASIC "DB/GetProfilePathBasic" -#endif - -#define MS_FOLDERS_TEST_PLUGIN "Folders/Test/Plugin" - -extern char ModuleName[]; -extern HINSTANCE hInstance; -extern OBJLIST lstRegisteredFolders; - -#endif //FOLDERS_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/Folders/src/dlg_handlers.cpp b/plugins/Folders/src/dlg_handlers.cpp index b5e6668912..32835dc6cc 100644 --- a/plugins/Folders/src/dlg_handlers.cpp +++ b/plugins/Folders/src/dlg_handlers.cpp @@ -1,4 +1,4 @@ -#include "commonheaders.h" +#include "stdafx.h" PFolderItem lastItem = NULL; diff --git a/plugins/Folders/src/events.cpp b/plugins/Folders/src/events.cpp index c3e1d5c941..db9bd46c1d 100644 --- a/plugins/Folders/src/events.cpp +++ b/plugins/Folders/src/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" static HANDLE hPathChanged; diff --git a/plugins/Folders/src/folderItem.cpp b/plugins/Folders/src/folderItem.cpp index 22043a172c..4da4164568 100644 --- a/plugins/Folders/src/folderItem.cpp +++ b/plugins/Folders/src/folderItem.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" CFolderItem::CFolderItem(const char *sectionName, const char *name, const TCHAR *format, const TCHAR *userName) { diff --git a/plugins/Folders/src/folderItem.h b/plugins/Folders/src/folderItem.h index ded5c12a6f..03b88f86e5 100644 --- a/plugins/Folders/src/folderItem.h +++ b/plugins/Folders/src/folderItem.h @@ -18,8 +18,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define _CRT_SECURE_NO_WARNINGS - #ifndef M_FOLDERS_FOLDER_ITEM_H #define M_FOLDERS_FOLDER_ITEM_H diff --git a/plugins/Folders/src/folders.cpp b/plugins/Folders/src/folders.cpp index 80278cc187..ec41cd29fb 100644 --- a/plugins/Folders/src/folders.cpp +++ b/plugins/Folders/src/folders.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" char ModuleName[] = "Folders"; HINSTANCE hInstance; diff --git a/plugins/Folders/src/services.cpp b/plugins/Folders/src/services.cpp index 9ee51cb1a2..ffe0b9665d 100644 --- a/plugins/Folders/src/services.cpp +++ b/plugins/Folders/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 DEFAULT_SECTION "Unknown" diff --git a/plugins/Folders/src/stdafx.cpp b/plugins/Folders/src/stdafx.cpp deleted file mode 100644 index 048b14e9d2..0000000000 --- a/plugins/Folders/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/Folders/src/stdafx.cxx b/plugins/Folders/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Folders/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/Folders/src/stdafx.h b/plugins/Folders/src/stdafx.h new file mode 100644 index 0000000000..148720d01d --- /dev/null +++ b/plugins/Folders/src/stdafx.h @@ -0,0 +1,61 @@ +/* +Custom profile folders plugin for Miranda IM + +Copyright © 2005 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_FOLDERS_COMMONHEADERS_H +#define M_FOLDERS_COMMONHEADERS_H + +#define MAX_FOLDER_SIZE 2048 + +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "version.h" +#include "utils.h" +#include "resource.h" +#include "services.h" +#include "events.h" +#include "folderItem.h" + +#ifndef MS_DB_GETPROFILEPATH_BASIC //db3xSA +#define MS_DB_GETPROFILEPATH_BASIC "DB/GetProfilePathBasic" +#endif + +#define MS_FOLDERS_TEST_PLUGIN "Folders/Test/Plugin" + +extern char ModuleName[]; +extern HINSTANCE hInstance; +extern OBJLIST lstRegisteredFolders; + +#endif //FOLDERS_COMMONHEADERS_H \ No newline at end of file diff --git a/plugins/Folders/src/utils.cpp b/plugins/Folders/src/utils.cpp index 60bbd4142c..97ffef2eb6 100644 --- a/plugins/Folders/src/utils.cpp +++ b/plugins/Folders/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" CMString ExpandPath(const TCHAR *format) { -- cgit v1.2.3