Guitar
Classes | Signals | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
AvatarLoader Class Reference

#include <AvatarLoader.h>

Inheritance diagram for AvatarLoader:
Inheritance graph
[legend]
Collaboration diagram for AvatarLoader:
Collaboration graph
[legend]

Classes

struct  Item
 
struct  Private
 
struct  RequestItem
 

Signals

void ready ()
 

Public Member Functions

 AvatarLoader (QObject *parent=nullptr)
 
 ~AvatarLoader () override
 
void requestInterruption ()
 
QImage fetch (const QString &email, bool request) const
 
void stop ()
 
void start (MainWindow *mainwindow)
 
template<typename Func2 >
void connectAvatarReady (const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func2 >
void disconnectAvatarReady (const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 

Protected Member Functions

void run ()
 

Private Types

enum  State { Idle, Busy, Done, Fail }
 

Private Member Functions

bool isInterruptionRequested () const
 

Private Attributes

Privatem
 

Member Enumeration Documentation

◆ State

enum AvatarLoader::State
private
Enumerator
Idle 
Busy 
Done 
Fail 

Constructor & Destructor Documentation

◆ AvatarLoader()

AvatarLoader::AvatarLoader ( QObject *  parent = nullptr)

◆ ~AvatarLoader()

AvatarLoader::~AvatarLoader ( )
override

Member Function Documentation

◆ connectAvatarReady()

template<typename Func2 >
void AvatarLoader::connectAvatarReady ( const typename QtPrivate::FunctionPointer< Func2 >::Object *  receiver,
Func2  slot 
)
inline

◆ disconnectAvatarReady()

template<typename Func2 >
void AvatarLoader::disconnectAvatarReady ( const typename QtPrivate::FunctionPointer< Func2 >::Object *  receiver,
Func2  slot 
)
inline

◆ fetch()

QImage AvatarLoader::fetch ( const QString &  email,
bool  request 
) const
Here is the call graph for this function:

◆ isInterruptionRequested()

bool AvatarLoader::isInterruptionRequested ( ) const
private

◆ ready

void AvatarLoader::ready ( )
signal

◆ requestInterruption()

void AvatarLoader::requestInterruption ( )

◆ run()

void AvatarLoader::run ( )
protected
Here is the call graph for this function:

◆ start()

void AvatarLoader::start ( MainWindow mainwindow)
Here is the call graph for this function:

◆ stop()

void AvatarLoader::stop ( )
Here is the call graph for this function:

Member Data Documentation

◆ m

Private* AvatarLoader::m
private

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