19#ifndef LIB_QUENTIER_TYPES_SHARED_NOTEBOOK_H
20#define LIB_QUENTIER_TYPES_SHARED_NOTEBOOK_H
22#include <quentier/utility/Printable.h>
24#include <qt5qevercloud/QEverCloud.h>
26#include <QSharedDataPointer>
30QT_FORWARD_DECLARE_CLASS(SharedNotebookData)
35 using SharedNotebookPrivilegeLevel =
36 qevercloud::SharedNotebookPrivilegeLevel;
44 const qevercloud::SharedNotebook & qecSharedNotebook);
54 const qevercloud::SharedNotebook & qevercloudSharedNotebook()
const;
55 qevercloud::SharedNotebook & qevercloudSharedNotebook();
57 int indexInNotebook()
const;
58 void setIndexInNotebook(
const int index);
62 void setId(
const qint64
id);
64 bool hasUserId()
const;
65 qint32 userId()
const;
66 void setUserId(
const qint32 userId);
68 bool hasNotebookGuid()
const;
69 const QString & notebookGuid()
const;
70 void setNotebookGuid(
const QString & notebookGuid);
72 bool hasEmail()
const;
73 const QString & email()
const;
74 void setEmail(
const QString & email);
76 bool hasCreationTimestamp()
const;
77 qint64 creationTimestamp()
const;
78 void setCreationTimestamp(
const qint64 timestamp);
80 bool hasModificationTimestamp()
const;
81 qint64 modificationTimestamp()
const;
82 void setModificationTimestamp(
const qint64 timestamp);
84 bool hasUsername()
const;
85 const QString & username()
const;
86 void setUsername(
const QString & username);
88 bool hasPrivilegeLevel()
const;
89 SharedNotebookPrivilegeLevel privilegeLevel()
const;
90 void setPrivilegeLevel(
const SharedNotebookPrivilegeLevel privilegeLevel);
91 void setPrivilegeLevel(
const qint8 privilegeLevel);
93 bool hasReminderNotifyEmail()
const;
94 bool reminderNotifyEmail()
const;
95 void setReminderNotifyEmail(
const bool notifyEmail);
97 bool hasReminderNotifyApp()
const;
98 bool reminderNotifyApp()
const;
99 void setReminderNotifyApp(
const bool notifyApp);
101 bool hasRecipientUsername()
const;
102 const QString & recipientUsername()
const;
103 void setRecipientUsername(
const QString & recipientUsername);
105 bool hasRecipientUserId()
const;
106 qint32 recipientUserId()
const;
107 void setRecipientUserId(
const qint32 userId);
109 bool hasRecipientIdentityId()
const;
110 qint64 recipientIdentityId()
const;
111 void setRecipientIdentityId(
const qint64 recipientIdentityId);
113 bool hasGlobalId()
const;
114 const QString & globalId()
const;
115 void setGlobalId(
const QString & globalId);
117 bool hasSharerUserId()
const;
118 qint32 sharerUserId()
const;
119 void setSharerUserId(qint32 sharerUserId);
121 bool hasAssignmentTimestamp()
const;
122 qint64 assignmentTimestamp()
const;
123 void setAssignmentTimestamp(
const qint64 timestamp);
125 virtual QTextStream & print(QTextStream & strm)
const override;
130 QSharedDataPointer<SharedNotebookData> d;
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition Printable.h:38
Definition SharedNotebook.h:33