LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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

typedef QList< std::function
< void(QString)> > 
RequestQueue_t
 
typedef RequestQueue_tRequestQueue_ptr
 
typedef QList< QPair
< std::function< void(QString)>
, QueuePriority > > 
PrioRequestQueue_t
 
typedef PrioRequestQueue_tPrioRequestQueue_ptr
 

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

Detailed Description

Definition at line 52 of file vkauthmanager.h.

Member Typedef Documentation

typedef QList<QPair<std::function<void (QString)>, QueuePriority> > LeechCraft::Util::SvcAuth::VkAuthManager::PrioRequestQueue_t

Definition at line 82 of file vkauthmanager.h.

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

Definition at line 79 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 57 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 229 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 107 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 90 of file vkauthmanager.cpp.

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

Definition at line 84 of file vkauthmanager.cpp.

Referenced by GetAuthKey().

+ Here is the caller graph for this function:

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

Definition at line 126 of file vkauthmanager.cpp.

void LeechCraft::Util::SvcAuth::VkAuthManager::ManageQueue ( VkAuthManager::PrioRequestQueue_ptr  queue)

Definition at line 143 of file vkauthmanager.cpp.

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

Definition at line 259 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::UnmanageQueue ( VkAuthManager::RequestQueue_ptr  queue)

Definition at line 138 of file vkauthmanager.cpp.

void LeechCraft::Util::SvcAuth::VkAuthManager::UnmanageQueue ( VkAuthManager::PrioRequestQueue_ptr  queue)

Definition at line 155 of file vkauthmanager.cpp.

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

Definition at line 95 of file vkauthmanager.cpp.


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