1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
// *****************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
// *****************************************************************************
#ifndef SYNC_CFG_H_31289470134253425
#define SYNC_CFG_H_31289470134253425
//#include <wx/window.h>
#include <wx+/popup_dlg.h>
#include "../base/structures.h"
namespace fff
{
enum class SyncConfigPanel
{
compare = 0, //used as zero-based notebook page index!
filter,
sync,
};
struct MiscSyncConfig
{
std::map<AfsDevice, size_t> deviceParallelOps;
bool ignoreErrors = false;
size_t autoRetryCount = 0;
std::chrono::seconds autoRetryDelay{0};
Zstring postSyncCommand;
PostSyncCondition postSyncCondition = PostSyncCondition::completion;
Zstring altLogFolderPathPhrase;
std::string emailNotifyAddress;
ResultsNotification emailNotifyCondition = ResultsNotification::always;
std::wstring notes;
};
struct GlobalPairConfig
{
CompConfig cmpCfg;
SyncConfig syncCfg;
FilterConfig filter;
MiscSyncConfig miscCfg;
};
zen::ConfirmationButton showSyncConfigDlg(wxWindow* parent,
SyncConfigPanel panelToShow,
int localPairIndexToShow, //< 0 to show global config
bool showMultipleCfgs,
GlobalPairConfig& globalPairCfg,
std::vector<LocalPairConfig>& localPairCfg,
FilterConfig& defaultFilter,
std::vector<Zstring>& versioningFolderHistory, Zstring& versioningFolderLastSelected,
std::vector<Zstring>& logFolderHistory, Zstring& logFolderLastSelected, const Zstring& globalLogFolderPhrase,
size_t folderHistoryMax, Zstring& sftpKeyFileLastSelected,
std::vector<Zstring>& emailHistory, size_t emailHistoryMax,
std::vector<Zstring>& commandHistory, size_t commandHistoryMax);
}
#endif //SYNC_CFG_H_31289470134253425
|