![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Interface for plugins that support fetching hypes. More...
#include "ihypesprovider.h"
Public Types | |
enum | HypeType { HypeType::NewArtists, HypeType::NewTracks, HypeType::TopArtists, HypeType::TopTracks } |
The type of the hype. More... | |
using | HypeQueryResult_t = LC::Util::Either< QString, HypedInfo_t > |
The result of a hyped entity list query. More... | |
Public Member Functions | |
virtual | ~IHypesProvider () |
virtual QString | GetServiceName () const =0 |
Returns the service name. More... | |
virtual bool | SupportsHype (HypeType hype)=0 |
Returns whether the service supports the given hype type. More... | |
virtual QFuture< HypeQueryResult_t > | RequestHype (HypeType type)=0 |
Updates the list of hyped artists of the given type. More... | |
Interface for plugins that support fetching hypes.
Hypes are either popular tracks and artists or those who gain a lot of popularity right now.
Definition at line 147 of file ihypesprovider.h.
using Media::IHypesProvider::HypeQueryResult_t = LC::Util::Either<QString, HypedInfo_t> |
The result of a hyped entity list query.
The result of a hyped entity list query is either a string with a human-readable error text, or the list of the hyped items.
Definition at line 157 of file ihypesprovider.h.
|
strong |
The type of the hype.
Enumerator | |
---|---|
NewArtists | New artists rapidly growing in popularity. |
NewTracks | New tracks rapidly growing in popularity. |
TopArtists | Top artists. |
TopTracks | Top tracks. |
Definition at line 170 of file ihypesprovider.h.
|
inlinevirtual |
Definition at line 150 of file ihypesprovider.h.
|
pure virtual |
Returns the service name.
This string returns a human-readable string with the service name, like "Last.FM".
|
pure virtual |
Updates the list of hyped artists of the given type.
[in] | type | The type of the hype to update. |
|
pure virtual |
Returns whether the service supports the given hype type.
[in] | hype | The hype type to query. |