![]() |
LeechCraft
0.6.70-6645-gcd10d7e
Modular cross-platform feature rich live environment.
|
#include "vkauthmanager.h"
Inheritance diagram for LeechCraft::Util::SvcAuth::VkAuthManager:
Collaboration diagram for LeechCraft::Util::SvcAuth::VkAuthManager: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 () |
| QFuture< QString > | GetAuthKeyFuture () |
| ScheduleGuard_t Q_REQUIRED_RESULT | ManageQueue (RequestQueue_ptr) |
| ScheduleGuard_t Q_REQUIRED_RESULT | ManageQueue (PrioRequestQueue_ptr) |
| void | SetSilentMode (bool) |
Definition at line 56 of file vkauthmanager.h.
Definition at line 89 of file vkauthmanager.h.
| using LeechCraft::Util::SvcAuth::VkAuthManager::PrioRequestQueue_t = QList<QPair<std::function<void (QString)>, QueuePriority>> |
Definition at line 88 of file vkauthmanager.h.
Definition at line 86 of file vkauthmanager.h.
| using LeechCraft::Util::SvcAuth::VkAuthManager::RequestQueue_t = QList<std::function<void (QString)>> |
Definition at line 85 of file vkauthmanager.h.
Definition at line 91 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 66 of file vkauthmanager.cpp.
References LeechCraft::Util::CustomCookieJar::Load().
Here is the call graph for this function:
|
signal |
|
slot |
Definition at line 312 of file vkauthmanager.cpp.
References LeechCraft::Util::Close, and LeechCraft::Util::CustomCookieJar::Load().
Referenced by SetSilentMode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
| void LeechCraft::Util::SvcAuth::VkAuthManager::GetAuthKey | ( | ) |
Definition at line 116 of file vkauthmanager.cpp.
References gotAuthKey(), and IsAuthenticated().
Here is the call graph for this function:| QFuture< QString > LeechCraft::Util::SvcAuth::VkAuthManager::GetAuthKeyFuture | ( | ) |
Definition at line 137 of file vkauthmanager.cpp.
References gotAuthKey(), and IsAuthenticated().
Here is the call graph for this function:
|
signal |
Referenced by GetAuthKey(), GetAuthKeyFuture(), and SetSilentMode().
Here is the caller graph for this function:| bool LeechCraft::Util::SvcAuth::VkAuthManager::HadAuthentication | ( | ) | const |
Definition at line 99 of file vkauthmanager.cpp.
| bool LeechCraft::Util::SvcAuth::VkAuthManager::IsAuthenticated | ( | ) | const |
Definition at line 93 of file vkauthmanager.cpp.
Referenced by GetAuthKey(), and GetAuthKeyFuture().
Here is the caller graph for this function:
|
signal |
| auto LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue | ( | VkAuthManager::RequestQueue_ptr | queue | ) |
Definition at line 156 of file vkauthmanager.cpp.
References LeechCraft::Util::MakeScopeGuard().
Here is the call graph for this function:| auto LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue | ( | VkAuthManager::PrioRequestQueue_ptr | queue | ) |
Definition at line 170 of file vkauthmanager.cpp.
References LeechCraft::Util::MakeScopeGuard().
Here is the call graph for this function:
|
slot |
Definition at line 342 of file vkauthmanager.cpp.
References authCanceled(), and cookiesChanged().
| void LeechCraft::Util::SvcAuth::VkAuthManager::SetSilentMode | ( | bool | silent | ) |
Definition at line 184 of file vkauthmanager.cpp.
References clearAuthData(), gotAuthKey(), justAuthenticated(), LeechCraft::Util::MakeNotification(), LeechCraft::PCritical_, and LeechCraft::Util::QueueManager::Schedule().
Here is the call graph for this function:| void LeechCraft::Util::SvcAuth::VkAuthManager::UpdateScope | ( | const QStringList & | scope | ) |
Definition at line 104 of file vkauthmanager.cpp.