![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
Interface for plugins supporting searching for tracks. More...
#include "iaudiopile.h"
Classes | |
struct | Result |
A structure describing a single entry in search result. More... | |
Public Types | |
using | Results_t = QList< Result > |
using | AudioSearchResult_t = LeechCraft::Util::Either< QString, Results_t > |
Public Member Functions | |
virtual | ~IAudioPile () |
virtual QString | GetServiceName () const =0 |
Returns the name of this service. More... | |
virtual QIcon | GetServiceIcon () const =0 |
Returns the icon of this service. More... | |
virtual QFuture< AudioSearchResult_t > | Search (const AudioSearchRequest &request)=0 |
Requests a search by the given request. More... | |
Interface for plugins supporting searching for tracks.
Plugins that support searching for audio tracks in huge loosely categorized audio collections like VKontakte should implement this interface.
Definition at line 91 of file iaudiopile.h.
using Media::IAudioPile::AudioSearchResult_t = LeechCraft::Util::Either<QString, Results_t> |
Definition at line 111 of file iaudiopile.h.
using Media::IAudioPile::Results_t = QList<Result> |
Definition at line 109 of file iaudiopile.h.
|
inlinevirtual |
Definition at line 94 of file iaudiopile.h.
|
pure virtual |
Returns the icon of this service.
This function returns the icon of the service this IAudioPile represents.
|
pure virtual |
Returns the name of this service.
This function returns the name of the service this IAudioPile represents, like "VKontakte".
|
pure virtual |
Requests a search by the given request.
This function initiates a search by the given request and returns a future with the search results.
[in] | request | The structure describing the search request. |