Sayonara Player
DirectFetcher.h
1#ifndef DIRECTFETCHER_H
2#define DIRECTFETCHER_H
3
4#include "CoverFetcher.h"
5
6namespace Cover::Fetcher
7{
10 {
11 private:
12 QString privateIdentifier() const override;
13
14 public:
16 ~DirectFetcher() override;
17
18 bool canFetchCoverDirectly() const override;
19 QStringList parseAddresses(const QByteArray& website) const override;
20 QString artistAddress(const QString& artist) const override;
21 QString albumAddress(const QString& artist, const QString& album) const override;
22 QString fulltextSearchAddress(const QString& str) const override;
23 int estimatedSize() const override;
24 bool isWebserviceFetcher() const override;
25 };
26}
27
28#endif // DIRECTFETCHER_H
The CoverFetcherInterface interface.
Definition: CoverFetcher.h:35
Definition: DirectFetcher.h:10
int estimatedSize() const override
get_estimated_size. Rough image size of the CoverFetchInterface
QString artistAddress(const QString &artist) const override
Get the artist search url. This is called if is_artist_supported returns true.
bool canFetchCoverDirectly() const override
Can the cover be fetched from the adress without starting a two-stage query?
QStringList parseAddresses(const QByteArray &website) const override
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...
QString albumAddress(const QString &artist, const QString &album) const override
Get the album search url. This is called if is_album_supported returns true.
QString fulltextSearchAddress(const QString &str) const override
Get a custom search address This is called if is_search_supported returns true.