19 #ifndef LIB_QUENTIER_SYNCHRONIZATION_I_USER_STORE_H 20 #define LIB_QUENTIER_SYNCHRONIZATION_I_USER_STORE_H 22 #include <quentier/synchronization/ForwardDeclarations.h> 23 #include <quentier/types/ErrorString.h> 24 #include <quentier/utility/Linkage.h> 27 #include <QNetworkCookie> 29 #include <qt5qevercloud/QEverCloud.h> 35 QT_FORWARD_DECLARE_CLASS(User)
45 virtual ~IUserStore() =
default;
50 virtual void setAuthData(
51 QString authenticationToken, QList<QNetworkCookie> cookies) = 0;
71 virtual bool checkVersion(
72 const QString & clientName, qint16 edamVersionMajor,
73 qint16 edamVersionMinor,
ErrorString & errorDescription) = 0;
93 virtual qint32 getUser(
95 qint32 & rateLimitSeconds) = 0;
117 virtual qint32 getAccountLimits(
118 const qevercloud::ServiceLevel serviceLevel,
119 qevercloud::AccountLimits & limits,
ErrorString & errorDescription,
120 qint32 & rateLimitSeconds) = 0;
123 QUENTIER_EXPORT IUserStorePtr newUserStore(QString evernoteHost);
127 #endif // LIB_QUENTIER_SYNCHRONIZATION_I_USER_STORE_H The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
Definition: DecryptedTextManager.h:26
IUserStore is the interface which provides methods required for the implementation of UserStore part ...
Definition: IUserStore.h:42