19 #ifndef LIB_QUENTIER_PRIVATE_SYNCHRONIZATION_I_USER_STORE_H 20 #define LIB_QUENTIER_PRIVATE_SYNCHRONIZATION_I_USER_STORE_H 22 #include <quentier/types/ErrorString.h> 23 #include <quentier/utility/Linkage.h> 26 #include <QNetworkCookie> 27 #include <QSharedPointer> 29 #include <qt5qevercloud/QEverCloud.h> 33 QT_FORWARD_DECLARE_CLASS(User)
50 IUserStore(
const qevercloud::IUserStorePtr & pQecUserStore);
53 virtual ~IUserStore() {}
55 qevercloud::IUserStorePtr getQecUserStore()
const;
56 void setQecUserStore(
const qevercloud::IUserStorePtr & pQecUserStore);
58 QString authenticationToken()
const;
59 void setAuthenticationToken(
const QString & authToken);
61 QList<QNetworkCookie> cookies()
const;
62 void setCookies(QList<QNetworkCookie> cookies);
67 virtual IUserStore * create(
const QString & host)
const = 0;
84 virtual bool checkVersion(
const QString & clientName,
85 qint16 edamVersionMajor,
86 qint16 edamVersionMinor,
106 virtual qint32 getUser(
User & user,
108 qint32 & rateLimitSeconds) = 0;
128 virtual qint32 getAccountLimits(
const qevercloud::ServiceLevel serviceLevel,
129 qevercloud::AccountLimits & limits,
131 qint32 & rateLimitSeconds) = 0;
134 qevercloud::IUserStorePtr m_pQecUserStore;
135 QString m_authenticationToken;
136 QList<QNetworkCookie> m_cookies;
141 #endif // LIB_QUENTIER_PRIVATE_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 for UserStore used by SynchronizationManager: it provides signatures of m...
Definition: IUserStore.h:47