![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
Interface for plugins supporting getting artist discography. More...
#include "idiscographyprovider.h"
Public Types | |
using | QueryResult_t = LeechCraft::Util::Either< QString, QList< ReleaseInfo > > |
Public Member Functions | |
virtual | ~IDiscographyProvider () |
virtual QString | GetServiceName () const =0 |
Returns the service name. More... | |
virtual QFuture< QueryResult_t > | GetDiscography (const QString &artist, const QStringList &hints)=0 |
Fetches all the discography of the given artist. More... | |
virtual QFuture< QueryResult_t > | GetReleaseInfo (const QString &artist, const QString &release)=0 |
Fetches contents of the given release by the artist. More... | |
Interface for plugins supporting getting artist discography.
Plugins that support fetching artists discography from sources like MusicBrainz should implement this interface.
Discography includes various types of releases (albums, EPs, singles, etc) as well as the corresponding lists of tracks in those releases.
Definition at line 128 of file idiscographyprovider.h.
using Media::IDiscographyProvider::QueryResult_t = LeechCraft::Util::Either<QString, QList<ReleaseInfo> > |
Definition at line 133 of file idiscographyprovider.h.
|
inlinevirtual |
Definition at line 131 of file idiscographyprovider.h.
|
pure virtual |
Fetches all the discography of the given artist.
This function initiates a search for artist discography and returns a handle through which the results of the search could be obtained.
All known releases of this artist are returned through the handle.
The handle owns itself and deletes itself after results are available — see its documentation for details.
[in] | artist | The artist name. |
|
pure virtual |
Fetches contents of the given release by the artist.
This function initiates a search for the given release of the given artist and returns a release query result future.
[in] | artist | The artist name. |
[in] | release | The release name to search for. |
|
pure virtual |
Returns the service name.
This string returns a human-readable string with the service name, like "MusicBrainz".