1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/QtClient/JoplinQtClient/models/item.cpp
2017-01-02 13:17:15 +01:00

65 lines
1.1 KiB
C++
Executable File

#include "models/item.h"
#include "uuid.h"
using namespace jop;
Item::Item() {}
//Item::Item() {
// synced_ = false;
//}
////QString Item::id() const {
//// return id_;
////}
//QString Item::title() const {
// return title_;
//}
//int Item::createdTime() const {
// return createdTime_;
//}
//int Item::updatedTime() const {
// return updatedTime_;
//}
//bool Item::synced() const {
// return synced_;
//}
//void Item::setId(const QString& v) {
//// if (id_ == v) return;
// id_ = v;
//// changedFields_.push_back("id");
//}
//void Item::setTitle(const QString &v) {
//// if (title_ == v) return;
// title_ = v;
//// changedFields_.push_back("title");
//}
//void Item::setCreatedTime(int v) {
// createdTime_ = v;
//}
//void Item::setSynced(bool v) {
// synced_ = v;
//}
//QStringList Item::dbFields() {
// QStringList output;
// output << "id" << "title" << "created_time" << "updated_time" << "synced";
// return output;
//}
//void Item::fromSqlQuery(const QSqlQuery &q) {
// id_ = q.value(0).toString();
// title_ = q.value(1).toString();
// createdTime_ = q.value(2).toInt();
// updatedTime_ = q.value(3).toInt();
// synced_ = q.value(4).toBool();
//}