48 class CustomCookieJar;
58 const QString AccountHR_;
60 QNetworkAccessManager *AuthNAM_;
66 QDateTime ReceivedAt_;
74 bool IsRequestScheduled_;
75 QTimer *ScheduleTimer_;
77 bool SilentMode_ =
false;
88 VkAuthManager (
const QString& accountName,
const QString& clientId,
89 const QStringList& scope,
const QByteArray& cookies,
92 bool IsAuthenticated ()
const;
93 bool HadAuthentication ()
const;
95 void UpdateScope (
const QStringList&);
99 void ManageQueue (RequestQueue_ptr);
100 void UnmanageQueue (RequestQueue_ptr);
102 void ManageQueue (PrioRequestQueue_ptr);
103 void UnmanageQueue (PrioRequestQueue_ptr);
105 void SetSilentMode (
bool);
107 void InvokeQueues (
const QString&);
110 void RequestURL (
const QUrl&);
111 void RequestAuthKey ();
112 bool CheckIsBlank (QUrl);
114 void clearAuthData ();
117 void execScheduledRequest ();
118 void handleGotForm ();
119 void handleViewUrlChanged (
const QUrl&);
121 void gotAuthKey (
const QString&);
122 void cookiesChanged (
const QByteArray&);
123 void authCanceled ();
124 void justAuthenticated ();
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
QList< QPair< std::function< void(QString)>, QueuePriority > > PrioRequestQueue_t
QList< std::function< void(QString)> > RequestQueue_t
A simple scheduling manager for a queue of functors.
PrioRequestQueue_t * PrioRequestQueue_ptr
RequestQueue_t * RequestQueue_ptr
A customized cookie jar with additional features.