33 #include <boost/variant.hpp> 54 class CustomCookieJar;
64 const QString AccountHR_;
66 QNetworkAccessManager *
const AuthNAM_;
72 QDateTime ReceivedAt_;
75 bool IsRequesting_ =
false;
80 bool IsRequestScheduled_ =
false;
81 QTimer *
const ScheduleTimer_;
83 bool SilentMode_ =
false;
85 bool HasTracked_ =
false;
98 VkAuthManager (
const QString& accountName,
const QString& clientId,
99 const QStringList& scope,
const QByteArray& cookies,
102 bool IsAuthenticated ()
const;
103 bool HadAuthentication ()
const;
105 void UpdateScope (
const QStringList&);
118 void SetSilentMode (
bool);
120 void InvokeQueues (
const QString&);
122 void RequestURL (
const QUrl&);
123 void RequestAuthKey ();
124 bool CheckReply (QUrl);
125 bool CheckError (
const QUrl&);
127 void ScheduleTrack (
const QString&);
129 void clearAuthData ();
132 void execScheduledRequest ();
133 void handleGotForm ();
134 void handleViewUrlChanged (
const QUrl&);
136 void gotAuthKey (
const QString&);
137 void cookiesChanged (
const QByteArray&);
138 void authCanceled ();
139 void justAuthenticated ();
detail::ScopeGuard< detail::DefaultScopeGuardDeleter > DefaultScopeGuard
boost::variant< SilentMode > AuthKeyError_t
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
QueuePriority
The priority of the action in the queue.
A simple scheduling manager for a queue of functors.
A customized cookie jar with additional features.