1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/QtClient/JoplinQtClient/models/change.h
2017-01-05 18:59:01 +01:00

34 lines
537 B
C++
Executable File

#ifndef CHANGE_H
#define CHANGE_H
#include <stable.h>
#include "models/basemodel.h"
namespace jop {
class Change : public BaseModel {
public:
enum Type { Undefined, Create, Update, Delete };
Table table() const;
static QVector<Change> all(int limit = 100);
static QVector<Change> mergedChanges(const QVector<Change> &changes);
static void disposeByItemId(const QString& itemId);
void addMergedField(const QString& name);
QStringList mergedFields() const;
private:
QStringList mergedFields_;
};
}
#endif // CHANGE_H