Sayonara Player
Signals | Public Member Functions | List of all members
Cover::Lookup Class Reference

#include <CoverLookup.h>

Detailed Description

The CoverLookup class.

Signals

void sig_cover_found (const QString &file_path)
 
void sig_finished (bool success)
 

Public Member Functions

 Lookup (QObject *parent=nullptr, int n_covers=1)
 
bool fetch_cover (const Location &cl, bool also_www=true)
 fetches cover for a CoverLocation. More...
 
bool fetch_album_cover (const Album &album, bool also_www=true)
 uses CoverLocation(const Album& album) More...
 
void stop () override
 not implemented
 

Member Function Documentation

◆ fetch_album_cover()

bool Cover::Lookup::fetch_album_cover ( const Album album,
bool  also_www = true 
)

uses CoverLocation(const Album& album)

Parameters
albumAlbum object
Returns
true

◆ fetch_cover()

bool Cover::Lookup::fetch_cover ( const Location cl,
bool  also_www = true 
)

fetches cover for a CoverLocation.

  1. Looks up CoverLocation::cover_path
  2. Looks up CoverLocation::local_paths
  3. Starts a CoverFetchThread
    Parameters
    clCoverLocation of interest
    Returns
    always true
Inheritance diagram for Cover::Lookup:
Cover::LookupBase