mirror of https://github.com/laurent22/joplin.git
38 lines
451 B
C++
Executable File
38 lines
451 B
C++
Executable File
#ifndef ITEM_H
|
|
#define ITEM_H
|
|
|
|
#include <stable.h>
|
|
|
|
namespace jop {
|
|
|
|
class Item {
|
|
|
|
public:
|
|
|
|
Item();
|
|
|
|
int id() const;
|
|
QString title() const;
|
|
int createdTime() const;
|
|
bool isPartial() const;
|
|
|
|
void setId(int v);
|
|
void setTitle(const QString& v);
|
|
void setCreatedTime(int v);
|
|
void setIsPartial(bool v);
|
|
|
|
void fromSqlQuery(const QSqlQuery& query);
|
|
|
|
private:
|
|
|
|
int id_;
|
|
QString title_;
|
|
int createdTime_;
|
|
bool isPartial_;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // ITEM_H
|