LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
IPendingImgSourceRequest Class Referenceabstract

Pending image request proxy object. More...

#include "iimgsource.h"

Public Member Functions

virtual ~IPendingImgSourceRequest ()
 
virtual QObject * GetQObject ()=0
 Returns this object as QObject. More...
 
virtual LC::RemoteImageInfos_t GetInfos () const =0
 Returns the information about the selected images. More...
 

Protected Member Functions

virtual void ready ()=0
 Emitted when the information about the requested images becomes available. More...
 
virtual void error (const QString &text)=0
 Emitted if there is an error obtaining information about the requested images. More...
 

Detailed Description

Pending image request proxy object.

This class is used to notify the IImgSource's methods caller when the information about requested images becomes available.

The class is self-owned, that is, it is deleted as soon as the control gets back to the event loop after emitting its ready() or error() signals.

Definition at line 93 of file iimgsource.h.

Constructor & Destructor Documentation

◆ ~IPendingImgSourceRequest()

virtual IPendingImgSourceRequest::~IPendingImgSourceRequest ( )
inlinevirtual

Definition at line 96 of file iimgsource.h.

Member Function Documentation

◆ error()

virtual void IPendingImgSourceRequest::error ( const QString &  text)
protectedpure virtual

Emitted if there is an error obtaining information about the requested images.

The object is deleted after emitting this signal after the control gets back to the event loop.

Note
The ready() signal is not emitted after this one.
Parameters
[out]textThe human-readable text about the error.

◆ GetInfos()

virtual LC::RemoteImageInfos_t IPendingImgSourceRequest::GetInfos ( ) const
pure virtual

Returns the information about the selected images.

This method will very likely return an empty list until the ready() signal is emitted.

Returns
The information about the selected images.

◆ GetQObject()

virtual QObject* IPendingImgSourceRequest::GetQObject ( )
pure virtual

Returns this object as QObject.

This function returns this object as a pointer to QObject to allow connecting to its signals.

Returns
This object as a QObject.

◆ ready()

virtual void IPendingImgSourceRequest::ready ( )
protectedpure virtual

Emitted when the information about the requested images becomes available.

Until this signal is emitted, the GetInfos() method very likely returns an empty list.

The object is deleted after emitting this signal after the control gets back to the event loop.


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