21#ifndef ABSTRACTCOVERFETCHER_H
22#define ABSTRACTCOVERFETCHER_H
28namespace Cover::Fetcher
37 virtual QString privateIdentifier()
const = 0;
78 virtual QString
albumAddress(const QString& artist, const QString& album) const;
88 virtual QString radioSearchAddress(const QString& stationName, const QString& stationUrl) const;
96 virtual
bool isWebserviceFetcher() const;
99 QString searchStringFromRadioStation(const QString& stationName, const QString& stationUrl) const;
The CoverFetcherInterface interface.
Definition: CoverFetcher.h:35
virtual QString albumAddress(const QString &artist, const QString &album) const
Get the album search url. This is called if is_album_supported returns true.
virtual QString artistAddress(const QString &artist) const
Get the artist search url. This is called if is_artist_supported returns true.
virtual QString identifier() const final
get name of CoverFetcherInterface like e.g. Discogs
virtual bool canFetchCoverDirectly() const =0
Can the cover be fetched from the adress without starting a two-stage query?
virtual QStringList parseAddresses(const QByteArray &website) const =0
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...
virtual int estimatedSize() const =0
get_estimated_size. Rough image size of the CoverFetchInterface
virtual QString fulltextSearchAddress(const QString &str) const
Get a custom search address This is called if is_search_supported returns true.