![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Interface for plugins supporting fetching artist biography. More...
#include "iartistbiofetcher.h"
Public Types | |
using | Result_t = LC::Util::Either< QString, ArtistBio > |
The result of an artist biography search query. More... | |
Public Member Functions | |
virtual | ~IArtistBioFetcher () |
virtual QString | GetServiceName () const =0 |
Returns the service name. More... | |
virtual QFuture< Result_t > | RequestArtistBio (const QString &artist, bool additionalImages=true)=0 |
Requests the biography of the given artist. More... | |
Interface for plugins supporting fetching artist biography.
Plugins that support fetching artist biography from the sources Last.FM should implement this interface.
Definition at line 80 of file iartistbiofetcher.h.
using Media::IArtistBioFetcher::Result_t = LC::Util::Either<QString, ArtistBio> |
The result of an artist biography search query.
The result of an artist biography search query is either a string with a human-readable error text, or a ArtistBio object.
Definition at line 92 of file iartistbiofetcher.h.
|
inlinevirtual |
Definition at line 83 of file iartistbiofetcher.h.
|
pure virtual |
Returns the service name.
This string returns a human-readable string with the service name, like "Last.FM".
|
pure virtual |
Requests the biography of the given artist.
This function initiates a search for artist biography and returns a future with the biography search result.
[in] | artist | The artist name. |
[in] | additionalImages | Whether additional images for the ArtistBio::OtherImages_ field should be requested. |