![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
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... | |
Pending biography request handle.
Interface to a pending biography search in an IArtistBioFetcher. A descendant of this class 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.
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 this signals via Qt::QueuedConnection
.Definition at line 73 of file iartistbiofetcher.h.
|
inlinevirtual |
Definition at line 76 of file iartistbiofetcher.h.
|
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.
|
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.
|
pure virtual |
Returns this object as a QObject.
This function can be used to connect to the signals of this class.
|
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.