LeechCraft  0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeechCraft::Util::SvcAuth::VkAuthManager Class Reference

#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 ()
 
ScheduleGuard_t Q_REQUIRED_RESULT ManageQueue (RequestQueue_ptr)
 
ScheduleGuard_t Q_REQUIRED_RESULT ManageQueue (PrioRequestQueue_ptr)
 
void SetSilentMode (bool)
 

Detailed Description

Definition at line 53 of file vkauthmanager.h.

Member Typedef Documentation

Definition at line 85 of file vkauthmanager.h.

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

Definition at line 82 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 63 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 288 of file vkauthmanager.cpp.

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

+ Here is the call graph for this function:

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

Definition at line 113 of file vkauthmanager.cpp.

References gotAuthKey(), and IsAuthenticated().

+ Here is the call graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::gotAuthKey ( const QString &  )
signal

Referenced by GetAuthKey().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

void LeechCraft::Util::SvcAuth::VkAuthManager::justAuthenticated ( )
signal
auto LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue ( VkAuthManager::RequestQueue_ptr  queue)

Definition at line 132 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 146 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 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.


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