![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
Interface for plugins supporting finding lyrics. More...
#include "ilyricsfinder.h"
Public Member Functions | |
virtual | ~ILyricsFinder () |
virtual void | RequestLyrics (const LyricsQuery &query, QueryOptions options=NoOption)=0 |
Requests searching for lyrics for the given query. More... | |
Protected Member Functions | |
virtual void | gotLyrics (const LyricsQuery &query, const QStringList &lyrics)=0 |
Emitted when search for lyrics is complete. More... | |
Interface for plugins supporting finding lyrics.
Plugins that support searching for lyrics should implement this interface.
Fetching lyrics is asynchronous in nature, so one should request fetching the lyrics via RequestLyrics() method and wait for the gotLyrics() signal with the corresponding query parameter.
Definition at line 105 of file ilyricsfinder.h.
|
inlinevirtual |
Definition at line 108 of file ilyricsfinder.h.
|
protectedpure virtual |
Emitted when search for lyrics is complete.
[out] | query | The query for which the search is complete. |
[out] | lyrics | The list of possible lyrics variants, may be empty or contain duplicates. |
|
pure virtual |
Requests searching for lyrics for the given query.
[in] | query | The lyrics query. |
[in] | options | Additional search options. |