#ifndef _HEADERS_H #define _HEADERS_H #define _CRT_SECURE_NO_DEPRECATE #include #include #include #include #include #include namespace fs = std::experimental::filesystem; #include #include #include #include #include #include #include #include #include #include #include #include #define MODULENAME "AutoBackups" struct CMPlugin : public PLUGIN { CMPlugin(); int Load() override; }; #include "options.h" #include "resource.h" #include "version.h" #define SUB_DIR L"\\AutoBackups" #define DIR L"%miranda_userdata%" struct Options; extern Options options; int SetBackupTimer(void); int OptionsInit(WPARAM wParam, LPARAM lParam); void BackupStart(wchar_t *backup_filename); struct ZipFile { std::wstring sPath; std::wstring sZipPath; __forceinline ZipFile(const std::wstring &path, const std::wstring &zpath) : sPath(path), sZipPath(zpath) {} }; int CreateZipFile(const wchar_t *szDestPath, OBJLIST &lstFiles, const std::function &fnCallback); extern char g_szMirVer[]; static IconItem iconList[] = { { LPGEN("Backup profile"), "backup", IDI_BACKUP }, { LPGEN("Save profile as..."), "saveas", IDI_BACKUP } }; #endif