Sayonara Player
Public Member Functions | Protected Member Functions | List of all members
Cover::Fetcher::Google Class Reference

The GoogleCoverFetcher class. See CoverFetcherInterface. More...

#include <Google.h>

Inheritance diagram for Cover::Fetcher::Google:
Cover::Fetcher::Base

Public Member Functions

bool canFetchCoverDirectly () const override
 Can the cover be fetched from the adress without starting a two-stage query? More...
 
QStringList parseAddresses (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 artistAddress (const QString &artist) const override
 Get the artist search url. This is called if is_artist_supported returns true. More...
 
QString albumAddress (const QString &artist, const QString &album) const override
 Get the album search url. This is called if is_album_supported returns true. More...
 
QString fulltextSearchAddress (const QString &str) const override
 Get a custom search address This is called if is_search_supported returns true. More...
 
QString radioSearchAddress (const QString &stationName, const QString &stationUrl) const override
 
int estimatedSize () 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 bool isWebserviceFetcher () const
 

Protected Member Functions

QString searchStringFromRadioStation (const QString &stationName, const QString &stationUrl) const
 

Detailed Description

The GoogleCoverFetcher class. See CoverFetcherInterface.

Member Function Documentation

◆ albumAddress()

QString Cover::Fetcher::Google::albumAddress ( 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.

◆ artistAddress()

QString Cover::Fetcher::Google::artistAddress ( const QString &  artist) const
overridevirtual

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

Parameters
artistartist name
Returns

Reimplemented from Cover::Fetcher::Base.

◆ canFetchCoverDirectly()

bool Cover::Fetcher::Google::canFetchCoverDirectly ( ) const
overridevirtual

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

Returns

Implements Cover::Fetcher::Base.

◆ estimatedSize()

int Cover::Fetcher::Google::estimatedSize ( ) const
overridevirtual

get_estimated_size. Rough image size of the CoverFetchInterface

Returns
e.g. 300px

Implements Cover::Fetcher::Base.

◆ fulltextSearchAddress()

QString Cover::Fetcher::Google::fulltextSearchAddress ( 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.

◆ identifier()

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

get name of CoverFetcherInterface like e.g. Discogs

Returns

◆ parseAddresses()

QStringList Cover::Fetcher::Google::parseAddresses ( 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.

◆ radioSearchAddress()

QString Cover::Fetcher::Google::radioSearchAddress ( const QString &  stationName,
const QString &  stationUrl 
) const
overridevirtual

Reimplemented from Cover::Fetcher::Base.