19 #ifndef LIB_QUENTIER_TYPES_SHARED_NOTEBOOK_H 20 #define LIB_QUENTIER_TYPES_SHARED_NOTEBOOK_H 22 #include <quentier/utility/Printable.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(SharedNotebookData)
39 typedef qevercloud::SharedNotebookPrivilegeLevel::type SharedNotebookPrivilegeLevel;
45 explicit SharedNotebook(
const qevercloud::SharedNotebook & qecSharedNotebook);
53 const qevercloud::SharedNotebook & qevercloudSharedNotebook()
const;
54 qevercloud::SharedNotebook & qevercloudSharedNotebook();
56 int indexInNotebook()
const;
57 void setIndexInNotebook(
const int index);
61 void setId(
const qint64
id);
63 bool hasUserId()
const;
64 qint32 userId()
const;
65 void setUserId(
const qint32 userId);
67 bool hasNotebookGuid()
const;
68 const QString & notebookGuid()
const;
69 void setNotebookGuid(
const QString & notebookGuid);
71 bool hasEmail()
const;
72 const QString & email()
const;
73 void setEmail(
const QString & email);
75 bool hasCreationTimestamp()
const;
76 qint64 creationTimestamp()
const;
77 void setCreationTimestamp(
const qint64 timestamp);
79 bool hasModificationTimestamp()
const;
80 qint64 modificationTimestamp()
const;
81 void setModificationTimestamp(
const qint64 timestamp);
83 bool hasUsername()
const;
84 const QString & username()
const;
85 void setUsername(
const QString & username);
87 bool hasPrivilegeLevel()
const;
88 SharedNotebookPrivilegeLevel privilegeLevel()
const;
89 void setPrivilegeLevel(
const SharedNotebookPrivilegeLevel privilegeLevel);
90 void setPrivilegeLevel(
const qint8 privilegeLevel);
92 bool hasReminderNotifyEmail()
const;
93 bool reminderNotifyEmail()
const;
94 void setReminderNotifyEmail(
const bool notifyEmail);
96 bool hasReminderNotifyApp()
const;
97 bool reminderNotifyApp()
const;
98 void setReminderNotifyApp(
const bool notifyApp);
100 bool hasRecipientUsername()
const;
101 const QString & recipientUsername()
const;
102 void setRecipientUsername(
const QString & recipientUsername);
104 bool hasRecipientUserId()
const;
105 qint32 recipientUserId()
const;
106 void setRecipientUserId(
const qint32 userId);
108 bool hasRecipientIdentityId()
const;
109 qint64 recipientIdentityId()
const;
110 void setRecipientIdentityId(
const qint64 recipientIdentityId);
112 bool hasGlobalId()
const;
113 const QString & globalId()
const;
114 void setGlobalId(
const QString & globalId);
116 bool hasSharerUserId()
const;
117 qint32 sharerUserId()
const;
118 void setSharerUserId(qint32 sharerUserId);
120 bool hasAssignmentTimestamp()
const;
121 qint64 assignmentTimestamp()
const;
122 void setAssignmentTimestamp(
const qint64 timestamp);
124 virtual QTextStream & print(QTextStream & strm)
const Q_DECL_OVERRIDE;
129 QSharedDataPointer<SharedNotebookData> d;
134 #endif // LIB_QUENTIER_TYPES_SHARED_NOTEBOOK_H Definition: SharedNotebook.h:36
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:54
Definition: Notebook.h:38