21 #ifndef ABSTRACTCOVERFETCHER_H 22 #define ABSTRACTCOVERFETCHER_H 28 namespace Cover::Fetcher
37 virtual QString privateIdentifier()
const=0;
55 virtual QStringList
parseAddresses(
const QByteArray& website)
const=0;
79 virtual QString
albumAddress(
const QString& artist,
const QString& album)
const;
98 #endif // ABSTRACTCOVERFETCHER_H virtual bool canFetchCoverDirectly() const =0
Can the cover be fetched from the adress without starting a two-stage query?
virtual int estimatedSize() const =0
get_estimated_size. Rough image size of the CoverFetchInterface
The CoverFetcherInterface interface.
Definition: CoverFetcher.h:34
virtual QString identifier() const final
get name of CoverFetcherInterface like e.g. Discogs
virtual QString artistAddress(const QString &artist) const
Get the artist search url. This is called if is_artist_supported returns true.
virtual QString fulltextSearchAddress(const QString &str) const
Get a custom search address This is called if is_search_supported returns true.
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 QStringList parseAddresses(const QByteArray &website) const =0
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...