1 #ifndef LIB_QUENTIER_TYPES_ACCOUNT_H 2 #define LIB_QUENTIER_TYPES_ACCOUNT_H 4 #include <quentier/utility/Printable.h> 5 #include <quentier/utility/Macros.h> 7 #include <QSharedDataPointer> 9 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) 10 #include <qt5qevercloud/QEverCloud.h> 12 #include <qt4qevercloud/QEverCloud.h> 17 QT_FORWARD_DECLARE_CLASS(AccountData)
49 explicit Account(
const QString & name,
const Type::type type,
50 const qevercloud::UserID userId = -1,
51 const EvernoteAccountType::type evernoteAccountType = EvernoteAccountType::Free,
52 const QString & evernoteHost = QString(),
53 const QString & shardId = QString());
58 bool operator==(
const Account & other)
const;
59 bool operator!=(
const Account & other)
const;
75 void setName(
const QString & name);
81 QString displayName()
const;
86 void setDisplayName(
const QString & displayName);
91 Type::type type()
const;
96 qevercloud::UserID id()
const;
101 EvernoteAccountType::type evernoteAccountType()
const;
106 QString evernoteHost()
const;
111 QString shardId()
const;
113 void setEvernoteAccountType(
const EvernoteAccountType::type evernoteAccountType);
114 void setEvernoteHost(
const QString & evernoteHost);
115 void setShardId(
const QString & shardId);
117 qint32 mailLimitDaily()
const;
118 qint64 noteSizeMax()
const;
119 qint64 resourceSizeMax()
const;
120 qint32 linkedNotebookMax()
const;
121 qint32 noteCountMax()
const;
122 qint32 notebookCountMax()
const;
123 qint32 tagCountMax()
const;
124 qint32 noteTagCountMax()
const;
125 qint32 savedSearchCountMax()
const;
126 qint32 noteResourceCountMax()
const;
127 void setEvernoteAccountLimits(
const qevercloud::AccountLimits & limits);
129 virtual QTextStream & print(QTextStream & strm)
const Q_DECL_OVERRIDE;
132 QSharedDataPointer<AccountData> d;
137 #endif // LIB_QUENTIER_TYPES_ACCOUNT_H The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:54
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:24