LeechCraft  0.6.70-6645-gcd10d7e
Modular cross-platform feature rich live environment.
Media::IPendingArtistBio Class Referenceabstract

Pending biography request handle. More...

#include "iartistbiofetcher.h"

Public Member Functions

virtual ~IPendingArtistBio ()
 
virtual QObject * GetQObject ()=0
 Returns this object as a QObject. More...
 
virtual ArtistBio GetArtistBio () const =0
 Returns the artist biography. More...
 

Protected Member Functions

virtual void ready ()=0
 Emitted when the biography is ready and fetched. More...
 
virtual void error ()=0
 Emitted when there is an error fetching the biography. More...
 

Detailed Description

Pending biography request handle.

Interface to a pending biography search in an IArtistBioFetcher. An object implementing this interface is returned from the IArtistBioFetcher::RequestArtistBio() method and is used to track the status of biography requests.

This class has some signals (ready() and error()), and one can use the GetQObject() method to get an object of this class as a QObject and connect to those signals.

Note
The object of this class should schedule its deletion (via QObject::deleteLater(), for example) after ready() or error() signal is emitted. Thus the calling code should never delete it explicitly, neither it should use this object after ready() or error() signals or connect to its signals via Qt::QueuedConnection.
See also
IArtistBioFetcher

Definition at line 106 of file iartistbiofetcher.h.

Constructor & Destructor Documentation

virtual Media::IPendingArtistBio::~IPendingArtistBio ( )
inlinevirtual

Definition at line 109 of file iartistbiofetcher.h.

Member Function Documentation

virtual void Media::IPendingArtistBio::error ( )
protectedpure virtual

Emitted when there is an error fetching the biography.

The object will be invalid after this signal is emitted and the event loop is run.

virtual ArtistBio Media::IPendingArtistBio::GetArtistBio ( ) const
pure virtual

Returns the artist biography.

This function returns the fetched artist biography, or an empty biography if it is not found or search isn't completed yet.

Returns
The fetched artist biography.
virtual QObject* Media::IPendingArtistBio::GetQObject ( )
pure virtual

Returns this object as a QObject.

This function can be used to connect to the signals of this class.

Returns
This object as a QObject.
virtual void Media::IPendingArtistBio::ready ( )
protectedpure virtual

Emitted when the biography is ready and fetched.

The object will be invalid after this signal is emitted and the event loop is run.


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