Sayonara Player
Public Member Functions | List of all members
Cover::Fetcher::Amazon Class Reference
Inheritance diagram for Cover::Fetcher::Amazon:
Cover::Fetcher::Base

Public Member Functions

bool can_fetch_cover_directly () const override
 Can the cover be fetched from the adress without starting a two-stage query? More...
 
QStringList parse_addresses (const QByteArray &website) const override
 Get addresses from the downloaded website. If can_fetch_cover_directly returns true, this method is not called. More...
 
QString album_address (const QString &artist, const QString &album) const override
 Get the album search url. This is called if is_album_supported returns true. More...
 
QString search_address (const QString &str) const override
 Get a custom search address This is called if is_search_supported returns true. More...
 
int estimated_size () const override
 get_estimated_size. Rough image size of the CoverFetchInterface More...
 
virtual QString identifier () const final
 get name of CoverFetcherInterface like e.g. Discogs More...
 
virtual QString artist_address (const QString &artist) const
 Get the artist search url. This is called if is_artist_supported returns true. More...
 

Member Function Documentation

◆ album_address()

QString Cover::Fetcher::Amazon::album_address ( const QString &  artist,
const QString &  album 
) const
overridevirtual

Get the album search url. This is called if is_album_supported returns true.

Parameters
artistartist name
albumalbum name
Returns

Reimplemented from Cover::Fetcher::Base.

◆ artist_address()

virtual QString Cover::Fetcher::Base::artist_address ( const QString &  artist) const
virtualinherited

Get the artist search url. This is called if is_artist_supported returns true.

Parameters
artistartist name
Returns

Reimplemented in Cover::Fetcher::Discogs, Cover::Fetcher::Google, Cover::Fetcher::Allmusic, and Cover::Fetcher::Yandex.

◆ can_fetch_cover_directly()

bool Cover::Fetcher::Amazon::can_fetch_cover_directly ( ) const
overridevirtual

Can the cover be fetched from the adress without starting a two-stage query?

Returns

Implements Cover::Fetcher::Base.

◆ estimated_size()

int Cover::Fetcher::Amazon::estimated_size ( ) const
overridevirtual

get_estimated_size. Rough image size of the CoverFetchInterface

Returns
e.g. 300px

Implements Cover::Fetcher::Base.

◆ identifier()

virtual QString Cover::Fetcher::Base::identifier ( ) const
finalvirtualinherited

get name of CoverFetcherInterface like e.g. Discogs

Returns

◆ parse_addresses()

QStringList Cover::Fetcher::Amazon::parse_addresses ( const QByteArray &  website) const
overridevirtual

Get addresses from the downloaded website. If can_fetch_cover_directly returns true, this method is not called.

Parameters
websitewebsite data
Returns

Implements Cover::Fetcher::Base.

◆ search_address()

QString Cover::Fetcher::Amazon::search_address ( const QString &  str) const
overridevirtual

Get a custom search address This is called if is_search_supported returns true.

Parameters
strsearch string
Returns

Reimplemented from Cover::Fetcher::Base.