19 #ifndef LIB_QUENTIER_TYPES_I_NOTE_STORE_DATA_ELEMENT_H 20 #define LIB_QUENTIER_TYPES_I_NOTE_STORE_DATA_ELEMENT_H 22 #include "ILocalStorageDataElement.h" 23 #include <quentier/utility/Printable.h> 24 #include <quentier/types/ErrorString.h> 34 virtual void clear() = 0;
36 virtual bool hasGuid()
const = 0;
37 virtual const QString & guid()
const = 0;
38 virtual void setGuid(
const QString & guid) = 0;
40 virtual bool hasUpdateSequenceNumber()
const = 0;
41 virtual qint32 updateSequenceNumber()
const = 0;
42 virtual void setUpdateSequenceNumber(
const qint32 usn) = 0;
44 virtual bool checkParameters(
ErrorString & errorDescription)
const = 0;
46 virtual bool isDirty()
const = 0;
47 virtual void setDirty(
const bool dirty) = 0;
49 virtual bool isLocal()
const = 0;
50 virtual void setLocal(
const bool local) = 0;
55 #define DECLARE_IS_DIRTY \ 56 virtual bool isDirty() const Q_DECL_OVERRIDE; 58 #define DECLARE_SET_DIRTY \ 59 virtual void setDirty(const bool isDirty) Q_DECL_OVERRIDE; 61 #define QN_DECLARE_DIRTY \ 65 #define DEFINE_IS_DIRTY(type) \ 66 bool type::isDirty() const { \ 67 return d->m_isDirty; \ 70 #define DEFINE_SET_DIRTY(type) \ 71 void type::setDirty(const bool dirty) { \ 72 d->m_isDirty = dirty; \ 75 #define QN_DEFINE_DIRTY(type) \ 76 DEFINE_IS_DIRTY(type) \ 77 DEFINE_SET_DIRTY(type) 79 #define DECLARE_IS_LOCAL \ 80 virtual bool isLocal() const Q_DECL_OVERRIDE; 82 #define DECLARE_SET_LOCAL \ 83 virtual void setLocal(const bool isLocal) Q_DECL_OVERRIDE; 85 #define QN_DECLARE_LOCAL \ 89 #define DEFINE_IS_LOCAL(type) \ 90 bool type::isLocal() const { \ 91 return d->m_isLocal; \ 94 #define DEFINE_SET_LOCAL(type) \ 95 void type::setLocal(const bool local) { \ 96 d->m_isLocal = local; \ 99 #define QN_DEFINE_LOCAL(type) \ 100 DEFINE_IS_LOCAL(type) \ 101 DEFINE_SET_LOCAL(type) 105 #endif // LIB_QUENTIER_TYPES_I_NOTE_STORE_DATA_ELEMENT_H Definition: INoteStoreDataElement.h:30
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:38
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:54
Definition: ILocalStorageDataElement.h:30