23 #ifndef ABSTRACTCOVERFETCHER_H 24 #define ABSTRACTCOVERFETCHER_H 64 virtual QString
keyword()
const=0;
81 virtual QString
album_address(
const QString& artist,
const QString& album)
const=0;
119 #endif // ABSTRACTCOVERFETCHER_H virtual QString search_address(const QString &str) const =0
Get a custom search address This is called if is_search_supported returns true.
The CoverFetcherInterface interface.
Definition: CoverFetcherInterface.h:39
virtual QString keyword() const =0
get name of CoverFetcherInterface like e.g. Discogs
virtual bool is_search_supported() const =0
Is text search supported.
virtual QStringList calc_addresses_from_website(const QByteArray &website) const =0
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...
virtual bool is_artist_supported() const =0
is artist search supported
virtual bool is_album_supported() const =0
is album search supported
virtual QString artist_address(const QString &artist) const =0
Get the artist search url. This is called if is_artist_supported returns true.
virtual bool can_fetch_cover_directly() const =0
Can the cover be fetched from the adress without starting a two-stage query?
virtual QString album_address(const QString &artist, const QString &album) const =0
Get the album search url. This is called if is_album_supported returns true.
virtual int estimated_size() const =0
get_estimated_size. Rough image size of the CoverFetchInterface