1 #ifndef DIRECTFETCHER_H 2 #define DIRECTFETCHER_H 4 #include "CoverFetcher.h" 5 #include "Utils/Pimpl.h" 7 namespace Cover::Fetcher
15 QString privateIdentifier()
const override;
22 QStringList
parseAddresses(
const QByteArray& website)
const override;
24 QString
albumAddress(
const QString& artist,
const QString& album)
const override;
28 void setDirectUrl(
const QString& url);
32 #endif // DIRECTFETCHER_H The CoverFetcherInterface interface.
Definition: CoverFetcher.h:34
int estimatedSize() const override
get_estimated_size. Rough image size of the CoverFetchInterface
Definition: DirectFetcher.h:9
bool canFetchCoverDirectly() const override
Can the cover be fetched from the adress without starting a two-stage query?
QString albumAddress(const QString &artist, const QString &album) const override
Get the album search url. This is called if is_album_supported returns true.
QStringList parseAddresses(const QByteArray &website) const override
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...
QString artistAddress(const QString &artist) const override
Get the artist search url. This is called if is_artist_supported returns true.
QString fulltextSearchAddress(const QString &str) const override
Get a custom search address This is called if is_search_supported returns true.