19 #ifndef LIB_QUENTIER_TYPES_LINKED_NOTEBOOK_H 20 #define LIB_QUENTIER_TYPES_LINKED_NOTEBOOK_H 22 #include "INoteStoreDataElement.h" 24 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) 25 #include <qt5qevercloud/QEverCloud.h> 27 #include <qt4qevercloud/QEverCloud.h> 30 #include <QSharedDataPointer> 34 QT_FORWARD_DECLARE_CLASS(LinkedNotebookData)
48 explicit LinkedNotebook(
const qevercloud::LinkedNotebook & linkedNotebook);
49 explicit LinkedNotebook(qevercloud::LinkedNotebook && linkedNotebook);
53 const qevercloud::LinkedNotebook & qevercloudLinkedNotebook()
const;
54 qevercloud::LinkedNotebook & qevercloudLinkedNotebook();
59 virtual void clear() Q_DECL_OVERRIDE;
61 virtual bool hasGuid()
const Q_DECL_OVERRIDE;
62 virtual const QString & guid()
const Q_DECL_OVERRIDE;
63 virtual void setGuid(
const QString & guid) Q_DECL_OVERRIDE;
65 virtual bool hasUpdateSequenceNumber()
const Q_DECL_OVERRIDE;
66 virtual qint32 updateSequenceNumber()
const Q_DECL_OVERRIDE;
67 virtual void setUpdateSequenceNumber(
const qint32 usn) Q_DECL_OVERRIDE;
69 virtual bool checkParameters(
ErrorString & errorDescription)
const Q_DECL_OVERRIDE;
71 bool hasShareName()
const;
72 const QString & shareName()
const;
73 void setShareName(
const QString & shareName);
75 bool hasUsername()
const;
76 const QString & username()
const;
77 void setUsername(
const QString & username);
79 bool hasShardId()
const;
80 const QString & shardId()
const;
81 void setShardId(
const QString & shardId);
83 bool hasSharedNotebookGlobalId()
const;
84 const QString & sharedNotebookGlobalId()
const;
85 void setSharedNotebookGlobalId(
const QString & sharedNotebookGlobalId);
88 const QString & uri()
const;
89 void setUri(
const QString & uri);
91 bool hasNoteStoreUrl()
const;
92 const QString & noteStoreUrl()
const;
93 void setNoteStoreUrl(
const QString & noteStoreUrl);
95 bool hasWebApiUrlPrefix()
const;
96 const QString & webApiUrlPrefix()
const;
97 void setWebApiUrlPrefix(
const QString & webApiUrlPrefix);
99 bool hasStack()
const;
100 const QString & stack()
const;
101 void setStack(
const QString & stack);
103 bool hasBusinessId()
const;
104 qint32 businessId()
const;
105 void setBusinessId(
const qint32 businessId);
107 virtual QTextStream & print(QTextStream & strm)
const Q_DECL_OVERRIDE;
111 virtual const QString localUid()
const Q_DECL_OVERRIDE {
return QString(); }
112 virtual void setLocalUid(
const QString &) Q_DECL_OVERRIDE {}
113 virtual void unsetLocalUid() Q_DECL_OVERRIDE {}
115 virtual bool isLocal()
const Q_DECL_OVERRIDE {
return false; }
116 virtual void setLocal(
const bool) Q_DECL_OVERRIDE {}
118 QSharedDataPointer<LinkedNotebookData> d;
125 #endif // LIB_QUENTIER_TYPES_LINKED_NOTEBOOK_H Definition: INoteStoreDataElement.h:30
Definition: LinkedNotebook.h:36
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:38