summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src/stdafx.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-03-18 16:00:59 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-03-18 16:00:59 +0000
commit56fde48e71d039f0485d0ca8d593e0089859bb29 (patch)
treefe18364a180f6457d1485e77f12830d34a639aaa /plugins/Db_autobackups/src/stdafx.h
parent948f6b2b9a6980461656b7c55b7815cb5554dbb2 (diff)
db_autobackups: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16497 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/stdafx.h')
-rw-r--r--plugins/Db_autobackups/src/stdafx.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/stdafx.h b/plugins/Db_autobackups/src/stdafx.h
index 7f1593adca..e7f2d81b1d 100644
--- a/plugins/Db_autobackups/src/stdafx.h
+++ b/plugins/Db_autobackups/src/stdafx.h
@@ -7,6 +7,7 @@
#include <shlobj.h>
#include <time.h>
#include <vector>
+#include <functional>
#if defined(_MSC_VER) && (_MSC_VER >= 1800)
# include <filesystem>
@@ -40,10 +41,18 @@ int OptionsInit(WPARAM wParam, LPARAM lParam);
int LoadOptions(void);
void BackupStart(TCHAR *backup_filename);
+struct ZipFile
+{
+ std::string sPath;
+ std::string sZipPath;
+ __forceinline ZipFile(const std::string &path, const std::string &zpath) : sPath(path), sZipPath(zpath) {}
+};
+
+int CreateZipFile(const char *szDestPath, OBJLIST<ZipFile> &lstFiles, const std::function<bool(size_t)> &fnCallback);
extern HINSTANCE g_hInstance;
extern TCHAR *profilePath;
-
+extern char g_szMirVer[];
static IconItem iconList[] = {
{ LPGEN("Backup profile"), "backup", IDI_ICON1 },