21#include <quentier/utility/Printable.h>
23#include <qevercloud/QEverCloud.h>
25#include <QSharedDataPointer>
46 friend QUENTIER_EXPORT QTextStream & operator<<(
47 QTextStream & strm, Type type);
49 friend QUENTIER_EXPORT QDebug & operator<<(QDebug & dbg, Type type);
51 enum class EvernoteAccountType
59 friend QUENTIER_EXPORT QTextStream & operator<<(
60 QTextStream & strm, EvernoteAccountType type);
62 friend QUENTIER_EXPORT QDebug & operator<<(
63 QDebug & dbg, EvernoteAccountType type);
69 QString name, Type type, qevercloud::UserID userId = -1,
70 EvernoteAccountType evernoteAccountType = EvernoteAccountType::Free,
71 QString evernoteHost = {}, QString shardId = {});
81 [[nodiscard]]
bool operator==(
const Account & other)
const noexcept;
82 [[nodiscard]]
bool operator!=(
const Account & other)
const noexcept;
94 [[nodiscard]] QString
name()
const;
116 [[nodiscard]] Type
type()
const;
123 [[nodiscard]] qevercloud::UserID
id()
const;
144 void setEvernoteAccountType(EvernoteAccountType evernoteAccountType);
145 void setEvernoteHost(QString evernoteHost);
146 void setShardId(QString shardId);
148 [[nodiscard]] qint32 mailLimitDaily()
const;
149 [[nodiscard]] qint64 noteSizeMax()
const;
150 [[nodiscard]] qint64 resourceSizeMax()
const;
151 [[nodiscard]] qint32 linkedNotebookMax()
const;
152 [[nodiscard]] qint32 noteCountMax()
const;
153 [[nodiscard]] qint32 notebookCountMax()
const;
154 [[nodiscard]] qint32 tagCountMax()
const;
155 [[nodiscard]] qint32 noteTagCountMax()
const;
156 [[nodiscard]] qint32 savedSearchCountMax()
const;
157 [[nodiscard]] qint32 noteResourceCountMax()
const;
159 void setEvernoteAccountLimits(
const qevercloud::AccountLimits & limits);
162 QTextStream & print(QTextStream & strm)
const override;
165 QSharedDataPointer<AccountData> d;
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:38
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:38