![]() |
LeechCraft 0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
|
#include "vkauthmanager.h"
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> |
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, const ICoreProxy_ptr &, QueueManager *=nullptr, QObject *=nullptr) | |
| ~VkAuthManager () override | |
| 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) |
| void | ClearAuthData () |
| void | Reauth () |
Definition at line 37 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::AuthKeyError_t = std::variant<SilentMode> |
Definition at line 92 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::AuthKeyResult_t = Either<AuthKeyError_t, QString> |
Definition at line 93 of file vkauthmanager.h.
Definition at line 72 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::PrioRequestQueue_t = QList<QPair<std::function<void (QString)>, QueuePriority>> |
Definition at line 71 of file vkauthmanager.h.
Definition at line 69 of file vkauthmanager.h.
| using LC::Util::SvcAuth::VkAuthManager::RequestQueue_t = QList<std::function<void (QString)>> |
Definition at line 68 of file vkauthmanager.h.
Definition at line 74 of file vkauthmanager.h.
| LC::Util::SvcAuth::VkAuthManager::VkAuthManager | ( | const QString & | accountName, |
| const QString & | clientId, | ||
| const QStringList & | scope, | ||
| const QByteArray & | cookies, | ||
| const ICoreProxy_ptr & | proxy, | ||
| QueueManager * | queueMgr = nullptr, | ||
| QObject * | parent = nullptr ) |
Definition at line 44 of file vkauthmanager.cpp.
|
overridedefault |
References GetAuthKey(), HadAuthentication(), IsAuthenticated(), and UpdateScope().
|
signal |
| void LC::Util::SvcAuth::VkAuthManager::ClearAuthData | ( | ) |
Definition at line 283 of file vkauthmanager.cpp.
|
signal |
| void LC::Util::SvcAuth::VkAuthManager::GetAuthKey | ( | ) |
Definition at line 97 of file vkauthmanager.cpp.
References gotAuthKey(), and IsAuthenticated().
Referenced by ~VkAuthManager(), and GetAuthKeyFuture().
|
nodiscard |
Definition at line 118 of file vkauthmanager.cpp.
References GetAuthKey(), gotAuthKey(), and IsAuthenticated().
|
signal |
| bool LC::Util::SvcAuth::VkAuthManager::HadAuthentication | ( | ) | const |
Definition at line 80 of file vkauthmanager.cpp.
Referenced by ~VkAuthManager().
| bool LC::Util::SvcAuth::VkAuthManager::IsAuthenticated | ( | ) | const |
Definition at line 74 of file vkauthmanager.cpp.
Referenced by ~VkAuthManager(), GetAuthKey(), and GetAuthKeyFuture().
|
signal |
|
nodiscard |
Definition at line 150 of file vkauthmanager.cpp.
References LC::Util::MakeScopeGuard().
|
nodiscard |
Definition at line 136 of file vkauthmanager.cpp.
References LC::Util::MakeScopeGuard().
| void LC::Util::SvcAuth::VkAuthManager::Reauth | ( | ) |
Definition at line 314 of file vkauthmanager.cpp.
References authCanceled(), IWebBrowser::CreateWidget(), LC::Critical, IWebWidget::GetQWidget(), and LC::Util::MakeNotification().
| void LC::Util::SvcAuth::VkAuthManager::SetSilentMode | ( | bool | silent | ) |
Definition at line 164 of file vkauthmanager.cpp.
| void LC::Util::SvcAuth::VkAuthManager::UpdateScope | ( | const QStringList & | scope | ) |
Definition at line 85 of file vkauthmanager.cpp.
Referenced by ~VkAuthManager().