LeechCraft  0.6.70-11552-gf61ee51c3d
Modular cross-platform feature rich live environment.
LeechCraft::Util::SvcAuth::VkAuthManager Class Reference

#include "vkauthmanager.h"

+ Inheritance diagram for LeechCraft::Util::SvcAuth::VkAuthManager:
+ Collaboration diagram for LeechCraft::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 = boost::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)
 

Detailed Description

Definition at line 58 of file vkauthmanager.h.

Member Typedef Documentation

Definition at line 110 of file vkauthmanager.h.

Definition at line 90 of file vkauthmanager.h.

using LeechCraft::Util::SvcAuth::VkAuthManager::RequestQueue_t = QList<std::function<void (QString)>>

Definition at line 87 of file vkauthmanager.h.

Constructor & Destructor Documentation

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 68 of file vkauthmanager.cpp.

References LeechCraft::Util::CustomCookieJar::Load().

+ Here is the call graph for this function:

Member Function Documentation

void LeechCraft::Util::SvcAuth::VkAuthManager::authCanceled ( )
signal

Referenced by reauth().

+ Here is the caller graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::clearAuthData ( )
slot

Definition at line 301 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:

void LeechCraft::Util::SvcAuth::VkAuthManager::cookiesChanged ( const QByteArray &  )
signal

Referenced by reauth().

+ Here is the caller graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::GetAuthKey ( )

Definition at line 115 of file vkauthmanager.cpp.

References gotAuthKey(), and IsAuthenticated().

Referenced by GetAuthKeyFuture().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QFuture< VkAuthManager::AuthKeyResult_t > LeechCraft::Util::SvcAuth::VkAuthManager::GetAuthKeyFuture ( )

Definition at line 136 of file vkauthmanager.cpp.

References GetAuthKey(), gotAuthKey(), and IsAuthenticated().

+ Here is the call graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::gotAuthKey ( const QString &  )
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 98 of file vkauthmanager.cpp.

bool LeechCraft::Util::SvcAuth::VkAuthManager::IsAuthenticated ( ) const

Definition at line 92 of file vkauthmanager.cpp.

Referenced by GetAuthKey(), and GetAuthKeyFuture().

+ Here is the caller graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::justAuthenticated ( )
signal

Referenced by SetSilentMode().

+ Here is the caller graph for this function:

auto LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue ( VkAuthManager::RequestQueue_ptr  queue)

Definition at line 154 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 168 of file vkauthmanager.cpp.

References LeechCraft::Util::MakeScopeGuard().

+ Here is the call graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::reauth ( )
slot

Definition at line 332 of file vkauthmanager.cpp.

References authCanceled(), and cookiesChanged().

void LeechCraft::Util::SvcAuth::VkAuthManager::SetSilentMode ( bool  silent)
void LeechCraft::Util::SvcAuth::VkAuthManager::UpdateScope ( const QStringList &  scope)

Definition at line 103 of file vkauthmanager.cpp.


The documentation for this class was generated from the following files: