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/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 ++++++++++++++++++++++++++++++++++ 7 files changed, 69 insertions(+), 69 deletions(-) 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/Db_autobackups/src') 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