nextcloud-desktop/src/mirall/syncfileitem.h

48 lines
742 B
C
Raw Normal View History

2013-01-15 23:41:52 +04:00
#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;
typedef enum {
UnknownType,
File,
Directory,
SoftLink
} Type;
2013-01-15 23:41:52 +04:00
SyncFileItem() {}
bool operator==(const SyncFileItem& item) const {
return item._file == this->_file;
}
bool isEmpty() const {
return _file.isEmpty();
}
2013-01-15 23:41:52 +04:00
// variables
QString _file;
QString _renameTarget;
csync_instructions_e _instruction;
Direction _dir;
Type _type;
2013-01-15 23:41:52 +04:00
};
typedef QVector<SyncFileItem> SyncFileItemVector;
}
#endif // SYNCFILEITEM_H