LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
Media::IRecentReleases Class Referenceabstract

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~IRecentReleases()

virtual Media::IRecentReleases::~IRecentReleases ( )
inlinevirtual

Definition at line 85 of file irecentreleases.h.

Member Function Documentation

◆ GetServiceName()

virtual QString Media::IRecentReleases::GetServiceName ( ) const
pure virtual

Returns the service name.

This string returns a human-readable string with the service name, like "Last.FM".

Returns
The human-readable service name.

◆ gotRecentReleases()

virtual void Media::IRecentReleases::gotRecentReleases ( const QList< AlbumRelease > &  releases)
protectedpure virtual

Emitted when the list of recent releases is fetched.

Parameters
[out]releasesThe list of recent releases.

◆ RequestRecentReleases()

virtual void Media::IRecentReleases::RequestRecentReleases ( int  number,
bool  withRecommends 
)
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.

Parameters
[in]numberThe number of releases to get.
[in]withRecommendsWhether recommendations or releases from user's library should be fetched.

The documentation for this class was generated from the following file: