#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 #include #include #define MODULENAME "AutoBackups" struct CMPlugin : public PLUGIN { CMPlugin(); bool bTerminated; CMOption backup_types; CMOption period; CMOption period_type; wchar_t folder[MAX_PATH]; CMOption file_mask; CMOption num_backups; CMOption disable_progress; CMOption disable_popups; CMOption use_zip; CMOption backup_profile; CMOption use_cloudfile; CMOption cloudfile_service; int Load() override; }; #include "options.h" #include "resource.h" #include "version.h" #define SUB_DIR L"\\AutoBackups" #define DIR L"%miranda_userdata%" 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