19 #ifndef LIB_QUENTIER_TYPES_ACCOUNT_H
20 #define LIB_QUENTIER_TYPES_ACCOUNT_H
22 #include <quentier/utility/Macros.h>
23 #include <quentier/utility/Printable.h>
25 #include <qt5qevercloud/QEverCloud.h>
27 #include <QSharedDataPointer>
32 QT_FORWARD_DECLARE_CLASS(AccountData)
48 friend QUENTIER_EXPORT QTextStream & operator<<(
49 QTextStream & strm,
const Type type);
51 friend QUENTIER_EXPORT QDebug & operator<<(QDebug & dbg,
const Type type);
53 enum class EvernoteAccountType
61 friend QUENTIER_EXPORT QTextStream & operator<<(
62 QTextStream & strm,
const EvernoteAccountType type);
64 friend QUENTIER_EXPORT QDebug & operator<<(
65 QDebug & dbg,
const EvernoteAccountType type);
71 QString name,
const Type type,
72 const qevercloud::UserID userId = -1,
73 const EvernoteAccountType evernoteAccountType =
74 EvernoteAccountType::Free,
75 QString evernoteHost = {},
76 QString shardId = {});
82 bool operator==(
const Account & other)
const;
83 bool operator!=(
const Account & other)
const;
124 qevercloud::UserID
id()
const;
145 void setEvernoteAccountType(
const EvernoteAccountType evernoteAccountType);
146 void setEvernoteHost(QString evernoteHost);
147 void setShardId(QString shardId);
149 qint32 mailLimitDaily()
const;
150 qint64 noteSizeMax()
const;
151 qint64 resourceSizeMax()
const;
152 qint32 linkedNotebookMax()
const;
153 qint32 noteCountMax()
const;
154 qint32 notebookCountMax()
const;
155 qint32 tagCountMax()
const;
156 qint32 noteTagCountMax()
const;
157 qint32 savedSearchCountMax()
const;
158 qint32 noteResourceCountMax()
const;
159 void setEvernoteAccountLimits(
const qevercloud::AccountLimits & limits);
161 virtual QTextStream & print(QTextStream & strm)
const override;
164 QSharedDataPointer<AccountData> d;
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:40
void setName(QString name)
setName sets the username to the account
void setDisplayName(QString displayName)
qevercloud::UserID id() const
EvernoteAccountType evernoteAccountType() const
QString displayName() const
QString evernoteHost() const
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:39