LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
Media::ISimilarArtists Class Referenceabstract

Interface for plugins supporting similar artists. More...

#include "isimilarartists.h"

Public Member Functions

virtual ~ISimilarArtists ()
 
virtual QFuture< SimilarityQueryResult_tGetSimilarArtists (const QString &artistName, int count)=0
 Requests the recommended artists.
 

Detailed Description

Interface for plugins supporting similar artists.

If a plugin supports fetching artists similar to another one it should implement this interface.

See also
IRecommendedArtists

Definition at line 27 of file isimilarartists.h.

Constructor & Destructor Documentation

◆ ~ISimilarArtists()

virtual Media::ISimilarArtists::~ISimilarArtists ( )
inlinevirtual

Definition at line 30 of file isimilarartists.h.

Member Function Documentation

◆ GetSimilarArtists()

virtual QFuture< SimilarityQueryResult_t > Media::ISimilarArtists::GetSimilarArtists ( const QString & artistName,
int count )
pure virtual

Requests the recommended artists.

This function initiates request for the list of artists similar to a given one and returns a handle through which the results of this search could be obtained. The handle owns itself and deletes itself after results are available — see its documentation for more details.

The results of the returned handle will typically have only SimilarityInfo::Similarity_ field set, while SimilarityInfo::SimilarTo_ field is unset. The Similarity field should be interpreted as some kind of "match percentage" displaying how much two artists resemble each other.

Parameters
[in]artistNameThe name of the artist for which to fetch similar artists.
[in]countThe number of recommended artists to fetch.

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