![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
#include "vkauthmanager.h"
Public Types | |
using | RequestQueue_t = QList< std::function< void(QString)>> |
using | RequestQueue_ptr = RequestQueue_t * |
using | PrioRequestQueue_t = QList< QPair< std::function< void(QString)>, QueuePriority >> |
using | PrioRequestQueue_ptr = PrioRequestQueue_t * |
using | ScheduleGuard_t = Util::DefaultScopeGuard |
Public Slots | |
void | clearAuthData () |
void | reauth () |
Signals | |
void | gotAuthKey (const QString &) |
void | cookiesChanged (const QByteArray &) |
void | authCanceled () |
void | justAuthenticated () |
Public Member Functions | |
VkAuthManager (const QString &accountName, const QString &clientId, const QStringList &scope, const QByteArray &cookies, ICoreProxy_ptr, QueueManager *=nullptr, QObject *=nullptr) | |
bool | IsAuthenticated () const |
bool | HadAuthentication () const |
void | UpdateScope (const QStringList &) |
void | GetAuthKey () |
ScheduleGuard_t Q_REQUIRED_RESULT | ManageQueue (RequestQueue_ptr) |
ScheduleGuard_t Q_REQUIRED_RESULT | ManageQueue (PrioRequestQueue_ptr) |
void | SetSilentMode (bool) |
Definition at line 53 of file vkauthmanager.h.
Definition at line 86 of file vkauthmanager.h.
using LeechCraft::Util::SvcAuth::VkAuthManager::PrioRequestQueue_t = QList<QPair<std::function<void (QString)>, QueuePriority>> |
Definition at line 85 of file vkauthmanager.h.
Definition at line 83 of file vkauthmanager.h.
using LeechCraft::Util::SvcAuth::VkAuthManager::RequestQueue_t = QList<std::function<void (QString)>> |
Definition at line 82 of file vkauthmanager.h.
Definition at line 88 of file vkauthmanager.h.
LeechCraft::Util::SvcAuth::VkAuthManager::VkAuthManager | ( | const QString & | accountName, |
const QString & | clientId, | ||
const QStringList & | scope, | ||
const QByteArray & | cookies, | ||
ICoreProxy_ptr | proxy, | ||
QueueManager * | queueMgr = nullptr , |
||
QObject * | parent = nullptr |
||
) |
Definition at line 63 of file vkauthmanager.cpp.
References LeechCraft::Util::CustomCookieJar::Load().
|
signal |
|
slot |
Definition at line 288 of file vkauthmanager.cpp.
References LeechCraft::Util::CustomCookieJar::Load().
|
signal |
void LeechCraft::Util::SvcAuth::VkAuthManager::GetAuthKey | ( | ) |
Definition at line 113 of file vkauthmanager.cpp.
References gotAuthKey(), and IsAuthenticated().
|
signal |
bool LeechCraft::Util::SvcAuth::VkAuthManager::HadAuthentication | ( | ) | const |
Definition at line 96 of file vkauthmanager.cpp.
bool LeechCraft::Util::SvcAuth::VkAuthManager::IsAuthenticated | ( | ) | const |
Definition at line 90 of file vkauthmanager.cpp.
Referenced by GetAuthKey().
|
signal |
auto LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue | ( | VkAuthManager::RequestQueue_ptr | queue | ) |
Definition at line 132 of file vkauthmanager.cpp.
References LeechCraft::Util::MakeScopeGuard().
auto LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue | ( | VkAuthManager::PrioRequestQueue_ptr | queue | ) |
Definition at line 146 of file vkauthmanager.cpp.
References LeechCraft::Util::MakeScopeGuard().
|
slot |
Definition at line 318 of file vkauthmanager.cpp.
References authCanceled().
void LeechCraft::Util::SvcAuth::VkAuthManager::SetSilentMode | ( | bool | silent | ) |
Definition at line 160 of file vkauthmanager.cpp.
void LeechCraft::Util::SvcAuth::VkAuthManager::UpdateScope | ( | const QStringList & | scope | ) |
Definition at line 101 of file vkauthmanager.cpp.