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