mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-19 20:32:03 +03:00
8dd97a358a
SyncPrepare is when the folder class prepares the actual syncing, i.e. does treewalks and runs the reconceiler in case of mirall. The actual SyncRunning state will only be entered if there is actually anything to sync. Fixes #289
39 lines
632 B
C++
39 lines
632 B
C++
#ifndef SYNCFILEITEM_H
|
|
#define SYNCFILEITEM_H
|
|
|
|
#include <QVector>
|
|
|
|
#include <csync.h>
|
|
|
|
namespace Mirall {
|
|
|
|
// FIXME: Unhack this.
|
|
class SyncFileItem {
|
|
public:
|
|
typedef enum {
|
|
None = 0,
|
|
Up,
|
|
Down } Direction;
|
|
|
|
SyncFileItem() {}
|
|
|
|
bool operator==(const SyncFileItem& item) const {
|
|
return item._file == this->_file;
|
|
}
|
|
|
|
bool isEmpty() const {
|
|
return _file.isEmpty();
|
|
}
|
|
|
|
// variables
|
|
QString _file;
|
|
QString _renameTarget;
|
|
csync_instructions_e _instruction;
|
|
Direction _dir;
|
|
};
|
|
|
|
typedef QVector<SyncFileItem> SyncFileItemVector;
|
|
|
|
}
|
|
|
|
#endif // SYNCFILEITEM_H
|