![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
Interface for plugins providing recent releases. More...
#include "irecentreleases.h"
Public Member Functions | |
virtual | ~IRecentReleases () |
virtual void | RequestRecentReleases (int number, bool withRecommends)=0 |
Requests the recent releases. More... | |
virtual QString | GetServiceName () const =0 |
Returns the service name. More... | |
Protected Member Functions | |
virtual void | gotRecentReleases (const QList< AlbumRelease > &releases)=0 |
Emitted when the list of recent releases is fetched. More... | |
Interface for plugins providing recent releases.
This interface should be implemented by plugins providing information about recent releases based on user's musical taste (like Last.FM's service).
Fetching recent releases is asynchronous in nature, so one should request the releases via the RequestRecentReleases() method and wait for the gotRecentReleases() signal.
Definition at line 82 of file irecentreleases.h.
|
inlinevirtual |
Definition at line 85 of file irecentreleases.h.
|
pure virtual |
Returns the service name.
This string returns a human-readable string with the service name, like "Last.FM".
|
protectedpure virtual |
Emitted when the list of recent releases is fetched.
[out] | releases | The list of recent releases. |
|
pure virtual |
Requests the recent releases.
If withRecommends is set to false then only releases by the artists in the user's library should be fetched. Otherwise, the result set may include (or consist only of) releases that are recommended to the user (based on his musical taste, for example) but aren't directly related to artists in his library.
[in] | number | The number of releases to get. |
[in] | withRecommends | Whether recommendations or releases from user's library should be fetched. |