![]() |
LeechCraft
0.6.70-13605-g8cd066ad6a
Modular cross-platform feature rich live environment.
|
#include "vkauthmanager.h"
Inheritance diagram for LC::Util::SvcAuth::VkAuthManager:
Collaboration diagram for LC::Util::SvcAuth::VkAuthManager:Classes | |
| struct | SilentMode |
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 |
| using | AuthKeyError_t = std::variant< SilentMode > |
| using | AuthKeyResult_t = Either< AuthKeyError_t, QString > |
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< AuthKeyResult_t > | GetAuthKeyFuture () |
| ScheduleGuard_t | ManageQueue (RequestQueue_ptr) |
| ScheduleGuard_t | ManageQueue (PrioRequestQueue_ptr) |
| void | SetSilentMode (bool) |
Definition at line 57 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::AuthKeyError_t = std::variant<SilentMode> |
Definition at line 109 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::AuthKeyResult_t = Either<AuthKeyError_t, QString> |
Definition at line 110 of file vkauthmanager.h.
Definition at line 90 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::PrioRequestQueue_t = QList<QPair<std::function<void (QString)>, QueuePriority> > |
Definition at line 89 of file vkauthmanager.h.
Definition at line 87 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::RequestQueue_t = QList<std::function<void (QString)> > |
Definition at line 86 of file vkauthmanager.h.
Definition at line 92 of file vkauthmanager.h.
| LC::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 146 of file vkauthmanager.cpp.
|
signal |
|
slot |
Definition at line 379 of file vkauthmanager.cpp.
|
signal |
| void LC::Util::SvcAuth::VkAuthManager::GetAuthKey | ( | ) |
Definition at line 193 of file vkauthmanager.cpp.
References LC::Util::oral::sph::f.
| QFuture< VkAuthManager::AuthKeyResult_t > LC::Util::SvcAuth::VkAuthManager::GetAuthKeyFuture | ( | ) |
Definition at line 214 of file vkauthmanager.cpp.
|
signal |
| bool LC::Util::SvcAuth::VkAuthManager::HadAuthentication | ( | ) | const |
Definition at line 176 of file vkauthmanager.cpp.
| bool LC::Util::SvcAuth::VkAuthManager::IsAuthenticated | ( | ) | const |
Definition at line 170 of file vkauthmanager.cpp.
|
signal |
| auto LC::Util::SvcAuth::VkAuthManager::ManageQueue | ( | VkAuthManager::PrioRequestQueue_ptr | queue | ) |
Definition at line 246 of file vkauthmanager.cpp.
| auto LC::Util::SvcAuth::VkAuthManager::ManageQueue | ( | VkAuthManager::RequestQueue_ptr | queue | ) |
Definition at line 232 of file vkauthmanager.cpp.
|
slot |
Definition at line 410 of file vkauthmanager.cpp.
| void LC::Util::SvcAuth::VkAuthManager::SetSilentMode | ( | bool | silent | ) |
Definition at line 260 of file vkauthmanager.cpp.
| void LC::Util::SvcAuth::VkAuthManager::UpdateScope | ( | const QStringList & | scope | ) |
Definition at line 181 of file vkauthmanager.cpp.