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;
89 [[nodiscard]]
bool isEmpty()
const;
94 [[nodiscard]] QString name()
const;
99 void setName(QString name);
106 [[nodiscard]] QString displayName()
const;
111 void setDisplayName(QString displayName);
116 [[nodiscard]] Type type()
const;
123 [[nodiscard]] qevercloud::UserID id()
const;
129 [[nodiscard]] EvernoteAccountType evernoteAccountType()
const;
135 [[nodiscard]] QString evernoteHost()
const;
142 [[nodiscard]] QString shardId()
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 Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:37
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:37