Sayonara Player
DirectFetcher.h
1 #ifndef DIRECTFETCHER_H
2 #define DIRECTFETCHER_H
3 
4 #include "CoverFetcher.h"
5 
6 namespace Cover::Fetcher
7 {
8  class DirectFetcher :
10  {
11  private:
12  QString privateIdentifier() const override;
13 
14  public:
15  DirectFetcher();
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
Cover::Fetcher::DirectFetcher::artistAddress
QString artistAddress(const QString &artist) const override
Get the artist search url. This is called if is_artist_supported returns true.
Cover::Fetcher::DirectFetcher::parseAddresses
QStringList parseAddresses(const QByteArray &website) const override
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...
Cover::Fetcher::DirectFetcher::fulltextSearchAddress
QString fulltextSearchAddress(const QString &str) const override
Get a custom search address This is called if is_search_supported returns true.
Cover::Fetcher::Base
The CoverFetcherInterface interface.
Definition: CoverFetcher.h:35
Cover::Fetcher::DirectFetcher::estimatedSize
int estimatedSize() const override
get_estimated_size. Rough image size of the CoverFetchInterface
Cover::Fetcher::DirectFetcher
Definition: DirectFetcher.h:10
Cover::Fetcher::DirectFetcher::albumAddress
QString albumAddress(const QString &artist, const QString &album) const override
Get the album search url. This is called if is_album_supported returns true.
Cover::Fetcher::DirectFetcher::canFetchCoverDirectly
bool canFetchCoverDirectly() const override
Can the cover be fetched from the adress without starting a two-stage query?