blob: 7bd3d21656a5443bc30ceef03db9bf0f1a5d9f49 (
plain)
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
|
#ifndef SYNCHRONIZATION_H_INCLUDED
#define SYNCHRONIZATION_H_INCLUDED
#include "FreeFileSync.h"
namespace FreeFileSync
{
void calcTotalBytesToSync(int& objectsToCreate,
int& objectsToOverwrite,
int& objectsToDelete,
double& dataToProcess,
const FileCompareResult& fileCmpResult,
const SyncConfiguration& config);
//class handling synchronization process
class SyncProcess
{
public:
SyncProcess(bool useRecycler, bool lineBreakOnMessages, StatusHandler* handler);
void startSynchronizationProcess(FileCompareResult& grid, const SyncConfiguration& config) throw(AbortThisProcess);
private:
bool synchronizeFile(const FileCompareLine& cmpLine, const SyncConfiguration& config); //false if nothing had to be done
bool synchronizeFolder(const FileCompareLine& cmpLine, const SyncConfiguration& config); //false if nothing had to be done
const bool useRecycleBin;
StatusHandler* statusUpdater;
wxString optionalLineBreak; //optional line break for status messages (used by GUI mode only)
};
}
#endif // SYNCHRONIZATION_H_INCLUDED
|