#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 #define MODULE "AutoBackups" struct CMPlugin : public PLUGIN { CMPlugin(); }; #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::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 &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