Sayonara Player
Website.h
1 #ifndef WEBSITE_H
2 #define WEBSITE_H
3 
4 #include "CoverFetcher.h"
5 #include "Utils/Pimpl.h"
6 
7 #include <QString>
8 
9 namespace Cover::Fetcher
10 {
20  class Website :
22  {
23  PIMPL(Website)
24 
25  private:
26  QString privateIdentifier() const override;
27 
28  public:
29  Website(const QString& url=QString());
30  ~Website() override;
31 
32  bool canFetchCoverDirectly() const override;
33  QStringList parseAddresses(const QByteArray& website) const override;
34 
35  int estimatedSize() const override;
36  bool isWebserviceFetcher() const override;
37 
44  QString fulltextSearchAddress(const QString& address) const override;
45 
46  virtual void setWebsite(const QString& website);
47  };
48 }
49 
50 #endif // WEBSITE_H
The CoverFetcherInterface interface.
Definition: CoverFetcher.h:35
Parses a website for all images. This cover fetcher behaves different from the others because every C...
Definition: Website.h:22
QString fulltextSearchAddress(const QString &address) const override
will always return the website which has been set by set_website(const QString&)
QStringList parseAddresses(const QByteArray &website) const override
Get addresses from the downloaded website. If can_fetch_cover_directly returns true,...
bool canFetchCoverDirectly() const override
Can the cover be fetched from the adress without starting a two-stage query?
int estimatedSize() const override
get_estimated_size. Rough image size of the CoverFetchInterface