#ifndef _HEADERS_H #define _HEADERS_H #define _CRT_SECURE_NO_DEPRECATE #include #include #include #include #include #if defined(_MSC_VER) && (_MSC_VER >= 1800) # include namespace fs = std::tr2::sys; #else # include namespace fs = boost::filesystem; #endif #include #include #include #include #include #include #include #include #include #include #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); int LoadOptions(void); 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 HINSTANCE g_hInstance; extern wchar_t *profilePath; extern char g_szMirVer[]; static IconItem iconList[] = { { LPGEN("Backup profile"), "backup", IDI_ICON1 }, { LPGEN("Save profile as..."), "saveas", IDI_ICON1 } }; #endif