From f44cdbe4b569680ffa2e18c5e24f2ba5ed6b5c8f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 24 Jul 2015 06:48:22 +0000 Subject: db_autobackups: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/db_autobackups.vcxproj | 34 ++++ .../Db_autobackups/db_autobackups.vcxproj.filters | 4 + plugins/Db_autobackups/db_autobackups_10.vcxproj | 201 -------------------- .../db_autobackups_10.vcxproj.filters | 53 ------ plugins/Db_autobackups/db_autobackups_12.vcxproj | 204 --------------------- .../db_autobackups_12.vcxproj.filters | 53 ------ plugins/Db_autobackups/db_autobackups_14.vcxproj | 204 --------------------- .../db_autobackups_14.vcxproj.filters | 53 ------ plugins/Db_autobackups/src/backup.cpp | 2 +- plugins/Db_autobackups/src/headers.h | 48 ----- plugins/Db_autobackups/src/main.cpp | 2 +- plugins/Db_autobackups/src/options.cpp | 2 +- plugins/Db_autobackups/src/stdafx.cpp | 18 -- plugins/Db_autobackups/src/stdafx.cxx | 18 ++ plugins/Db_autobackups/src/stdafx.h | 48 +++++ 15 files changed, 107 insertions(+), 837 deletions(-) create mode 100644 plugins/Db_autobackups/db_autobackups.vcxproj create mode 100644 plugins/Db_autobackups/db_autobackups.vcxproj.filters delete mode 100644 plugins/Db_autobackups/db_autobackups_10.vcxproj delete mode 100644 plugins/Db_autobackups/db_autobackups_10.vcxproj.filters delete mode 100644 plugins/Db_autobackups/db_autobackups_12.vcxproj delete mode 100644 plugins/Db_autobackups/db_autobackups_12.vcxproj.filters delete mode 100644 plugins/Db_autobackups/db_autobackups_14.vcxproj delete mode 100644 plugins/Db_autobackups/db_autobackups_14.vcxproj.filters delete mode 100644 plugins/Db_autobackups/src/headers.h delete mode 100644 plugins/Db_autobackups/src/stdafx.cpp create mode 100644 plugins/Db_autobackups/src/stdafx.cxx create mode 100644 plugins/Db_autobackups/src/stdafx.h (limited to 'plugins') diff --git a/plugins/Db_autobackups/db_autobackups.vcxproj b/plugins/Db_autobackups/db_autobackups.vcxproj new file mode 100644 index 0000000000..37277b6e32 --- /dev/null +++ b/plugins/Db_autobackups/db_autobackups.vcxproj @@ -0,0 +1,34 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + Db_autobackups + {751ED05D-AD3E-4EC6-A485-4ECDF1FE6068} + + + + + + + {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} + false + + + \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups.vcxproj.filters b/plugins/Db_autobackups/db_autobackups.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/Db_autobackups/db_autobackups.vcxproj.filters @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups_10.vcxproj b/plugins/Db_autobackups/db_autobackups_10.vcxproj deleted file mode 100644 index 5ef9b9ee40..0000000000 --- a/plugins/Db_autobackups/db_autobackups_10.vcxproj +++ /dev/null @@ -1,201 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Db_autobackups - {751ED05D-AD3E-4EC6-A485-4ECDF1FE6068} - - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - true - - - DynamicLibrary - Unicode - - - DynamicLibrary - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - headers.h - false - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - headers.h - false - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - Size - Full - Use - headers.h - false - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level3 - Full - OnlyExplicitInline - Size - Use - headers.h - false - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin10\lib - /PDBALTPATH:%_PDB% - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - - - Create - - - - - - - - - - - - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters b/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters deleted file mode 100644 index 5573147fcd..0000000000 --- a/plugins/Db_autobackups/db_autobackups_10.vcxproj.filters +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups_12.vcxproj b/plugins/Db_autobackups/db_autobackups_12.vcxproj deleted file mode 100644 index 39b2b6514d..0000000000 --- a/plugins/Db_autobackups/db_autobackups_12.vcxproj +++ /dev/null @@ -1,204 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Db_autobackups - {751ED05D-AD3E-4EC6-A485-4ECDF1FE6068} - - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - true - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - DynamicLibrary - Unicode - v120_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level4 - EditAndContinue - Use - headers.h - false - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level4 - Use - headers.h - false - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level4 - Size - Full - Use - headers.h - false - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level4 - Full - OnlyExplicitInline - Size - Use - headers.h - false - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin12\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - - Create - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups_12.vcxproj.filters b/plugins/Db_autobackups/db_autobackups_12.vcxproj.filters deleted file mode 100644 index 5573147fcd..0000000000 --- a/plugins/Db_autobackups/db_autobackups_12.vcxproj.filters +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups_14.vcxproj b/plugins/Db_autobackups/db_autobackups_14.vcxproj deleted file mode 100644 index 56916aad86..0000000000 --- a/plugins/Db_autobackups/db_autobackups_14.vcxproj +++ /dev/null @@ -1,204 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - Db_autobackups - {751ED05D-AD3E-4EC6-A485-4ECDF1FE6068} - - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - true - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - DynamicLibrary - Unicode - v140_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\Plugins\ - $(SolutionDir)$(Configuration)64\Plugins\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level4 - EditAndContinue - Use - headers.h - false - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - false - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - Disabled - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - _DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Level4 - Use - headers.h - false - - - true - Windows - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - - - _DEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level4 - Size - Full - Use - headers.h - false - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - Level4 - Full - OnlyExplicitInline - Size - Use - headers.h - false - - - true - Windows - true - true - $(IntDir)$(TargetName).lib - false - $(ProfileDir)..\..\bin14\lib - - - NDEBUG;%(PreprocessorDefinitions) - ..\..\include\msapi - - - - - {e2a369cd-eda3-414f-8ad0-e732cd7ee68c} - - - - - - - Create - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/Db_autobackups/db_autobackups_14.vcxproj.filters b/plugins/Db_autobackups/db_autobackups_14.vcxproj.filters deleted file mode 100644 index 5573147fcd..0000000000 --- a/plugins/Db_autobackups/db_autobackups_14.vcxproj.filters +++ /dev/null @@ -1,53 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 07d4a13a97..db914d4a83 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -1,4 +1,4 @@ -#include "headers.h" +#include "stdafx.h" #include "..\..\libs\zlib\src\zip.h" diff --git a/plugins/Db_autobackups/src/headers.h b/plugins/Db_autobackups/src/headers.h deleted file mode 100644 index a3bc9d04a9..0000000000 --- a/plugins/Db_autobackups/src/headers.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef _HEADERS_H -#define _HEADERS_H - -#define _CRT_SECURE_NO_DEPRECATE - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "options.h" -#include "resource.h" -#include "version.h" - - -#define MS_AB_BACKUP "AB/Backup" -#define MS_AB_SAVEAS "AB/SaveAs" - -#define SUB_DIR L"\\AutoBackups" -#define DIR L"%miranda_userdata%" - - -int SetBackupTimer(void); -int OptionsInit(WPARAM wParam, LPARAM lParam); -int LoadOptions(void); -void BackupStart(TCHAR *backup_filename); - - -extern HINSTANCE g_hInstance; -extern TCHAR *profilePath; - - -static IconItem iconList[] = { - { LPGEN("Backup profile"), "backup", IDI_ICON1 }, - { LPGEN("Save profile as..."), "saveas", IDI_ICON1 } -}; - -#endif diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index f0fe039fa9..e497ee4a6f 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -1,4 +1,4 @@ -#include "headers.h" +#include "stdafx.h" int hLangpack; HINSTANCE g_hInstance; diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp index 4be09cbf23..a9fe7d9abf 100644 --- a/plugins/Db_autobackups/src/options.cpp +++ b/plugins/Db_autobackups/src/options.cpp @@ -1,4 +1,4 @@ -#include "headers.h" +#include "stdafx.h" HWND hPathTip; Options options; diff --git a/plugins/Db_autobackups/src/stdafx.cpp b/plugins/Db_autobackups/src/stdafx.cpp deleted file mode 100644 index 7e0216078c..0000000000 --- a/plugins/Db_autobackups/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 "headers.h" \ No newline at end of file diff --git a/plugins/Db_autobackups/src/stdafx.cxx b/plugins/Db_autobackups/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/Db_autobackups/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/Db_autobackups/src/stdafx.h b/plugins/Db_autobackups/src/stdafx.h new file mode 100644 index 0000000000..a3bc9d04a9 --- /dev/null +++ b/plugins/Db_autobackups/src/stdafx.h @@ -0,0 +1,48 @@ +#ifndef _HEADERS_H +#define _HEADERS_H + +#define _CRT_SECURE_NO_DEPRECATE + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "options.h" +#include "resource.h" +#include "version.h" + + +#define MS_AB_BACKUP "AB/Backup" +#define MS_AB_SAVEAS "AB/SaveAs" + +#define SUB_DIR L"\\AutoBackups" +#define DIR L"%miranda_userdata%" + + +int SetBackupTimer(void); +int OptionsInit(WPARAM wParam, LPARAM lParam); +int LoadOptions(void); +void BackupStart(TCHAR *backup_filename); + + +extern HINSTANCE g_hInstance; +extern TCHAR *profilePath; + + +static IconItem iconList[] = { + { LPGEN("Backup profile"), "backup", IDI_ICON1 }, + { LPGEN("Save profile as..."), "saveas", IDI_ICON1 } +}; + +#endif -- cgit v1.2.3