![]() |
Sayonara Player
|
The CoverFetcherInterface interface. More...
#include <CoverFetcher.h>
Public Member Functions | |
virtual bool | canFetchCoverDirectly () const =0 |
Can the cover be fetched from the adress without starting a two-stage query? More... | |
virtual QStringList | parseAddresses (const QByteArray &website) const =0 |
Get addresses from the downloaded website. If can_fetch_cover_directly returns true, this method is not called. More... | |
virtual QString | identifier () const final |
get name of CoverFetcherInterface like e.g. Discogs More... | |
virtual QString | artistAddress (const QString &artist) const |
Get the artist search url. This is called if is_artist_supported returns true. More... | |
virtual QString | albumAddress (const QString &artist, const QString &album) const |
Get the album search url. This is called if is_album_supported returns true. More... | |
virtual QString | fulltextSearchAddress (const QString &str) const |
Get a custom search address This is called if is_search_supported returns true. More... | |
virtual int | estimatedSize () const =0 |
get_estimated_size. Rough image size of the CoverFetchInterface More... | |
The CoverFetcherInterface interface.
|
virtual |
Get the album search url. This is called if is_album_supported returns true.
artist | artist name |
album | album name |
Reimplemented in Cover::Fetcher::Yandex, Cover::Fetcher::Google, Cover::Fetcher::Discogs, Cover::Fetcher::DirectFetcher, Cover::Fetcher::Audioscrobbler, Cover::Fetcher::Amazon, and Cover::Fetcher::Allmusic.
|
virtual |
Get the artist search url. This is called if is_artist_supported returns true.
artist | artist name |
Reimplemented in Cover::Fetcher::Yandex, Cover::Fetcher::Google, Cover::Fetcher::Discogs, Cover::Fetcher::DirectFetcher, and Cover::Fetcher::Allmusic.
|
pure virtual |
Can the cover be fetched from the adress without starting a two-stage query?
Implemented in Cover::Fetcher::Yandex, Cover::Fetcher::Website, Cover::Fetcher::Google, Cover::Fetcher::Discogs, Cover::Fetcher::DirectFetcher, Cover::Fetcher::Audioscrobbler, Cover::Fetcher::Amazon, and Cover::Fetcher::Allmusic.
|
pure virtual |
get_estimated_size. Rough image size of the CoverFetchInterface
Implemented in Cover::Fetcher::Yandex, Cover::Fetcher::Website, Cover::Fetcher::Google, Cover::Fetcher::Discogs, Cover::Fetcher::DirectFetcher, Cover::Fetcher::Audioscrobbler, Cover::Fetcher::Amazon, and Cover::Fetcher::Allmusic.
|
virtual |
Get a custom search address This is called if is_search_supported returns true.
str | search string |
Reimplemented in Cover::Fetcher::Yandex, Cover::Fetcher::Google, Cover::Fetcher::Discogs, Cover::Fetcher::DirectFetcher, Cover::Fetcher::Amazon, Cover::Fetcher::Allmusic, and Cover::Fetcher::Website.
|
finalvirtual |
get name of CoverFetcherInterface like e.g. Discogs
|
pure virtual |
Get addresses from the downloaded website. If can_fetch_cover_directly returns true, this method is not called.
website | website data |
Implemented in Cover::Fetcher::Yandex, Cover::Fetcher::Website, Cover::Fetcher::Google, Cover::Fetcher::Discogs, Cover::Fetcher::DirectFetcher, Cover::Fetcher::Audioscrobbler, Cover::Fetcher::Amazon, and Cover::Fetcher::Allmusic.