nextcloud-desktop/src/mirall/syncfileitem.h
Daniel Molkentin 8dd97a358a Introduce SyncPrepare state
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
2013-02-14 17:36:11 +01:00

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