![]() |
LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
|
Interface for plugins that provide top charts. More...
#include "itopprovider.h"
Public Types | |
| using | TopArtistsResult_t = LC::Util::Either<QString, QList<TopArtistInfo>> |
| The result of a top artists query. | |
| using | TopTracksResult_t = LC::Util::Either<QString, QList<TopTrackInfo>> |
| The result of a top tracks query. | |
Public Member Functions | |
| virtual | ~ITopProvider () |
| virtual QString | GetServiceName () const =0 |
| Returns the service name. | |
| virtual QFuture< TopArtistsResult_t > | RequestTopArtists ()=0 |
| Requests the list of top artists. | |
| virtual QFuture< TopTracksResult_t > | RequestTopTracks ()=0 |
| Requests the list of top tracks. | |
Interface for plugins that provide top charts.
Definition at line 117 of file itopprovider.h.
| using Media::ITopProvider::TopArtistsResult_t = LC::Util::Either<QString, QList<TopArtistInfo>> |
The result of a top artists query.
Either a string with a human-readable error text, or the list of the top artists.
Definition at line 127 of file itopprovider.h.
| using Media::ITopProvider::TopTracksResult_t = LC::Util::Either<QString, QList<TopTrackInfo>> |
The result of a top tracks query.
Either a string with a human-readable error text, or the list of the top tracks.
Definition at line 134 of file itopprovider.h.
|
inlinevirtual |
Definition at line 120 of file itopprovider.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 list of top artists.
|
pure virtual |
Requests the list of top tracks.