29 #ifndef COVERLOOKUP_H_ 30 #define COVERLOOKUP_H_ 32 #include "AbstractCoverLookup.h" 33 #include "Utils/Pimpl.h" 55 Lookup(QObject* parent=
nullptr,
int n_covers=1);
111 bool fetch_from_database();
112 bool fetch_from_audio_source();
113 bool fetch_from_file_system();
114 bool fetch_from_www();
121 bool start_new_thread(
const Location& cl);
123 bool add_new_cover(
const QPixmap& pm,
const QString& hash);
124 bool add_new_cover(
const QPixmap& pm);
126 void emit_finished(
bool success);
136 void cover_found(
int idx);
141 void thread_finished(
bool);
143 void extractor_finished();
155 Extractor(
const QString& filepath, QObject* parent);
QList< QPixmap > take_pixmaps()
Get all pixmaps that where fetched and remove them from Cover::Lookup.
bool is_thread_running() const
indicates if the Cover::FetchThread is running
The CoverLookup class.
Definition: CoverLookup.h:46
void set_user_data(void *data)
Set some custom data you can retrieve later.
std::shared_ptr< Lookup > LookupPtr
CoverLookupPtr.
Definition: CoverLookup.h:168
QList< QPixmap > pixmaps() const
Get a copy of all pixmaps that where fetched.
The CoverLookupInterface class.
Definition: AbstractCoverLookup.h:35
bool fetch_cover(const Location &cl, bool also_www=true)
fetches cover for a CoverLocation.
The CoverLocation class.
Definition: CoverLocation.h:37
void stop() override
Stop the Cover::FetchThread if running and retrieve the sig_finished signal If no Cover::FetchThread ...
void * user_data()
Fetch your custom data again.
Definition: SomaFMStation.h:33
Definition: org_mpris_media_player2_adaptor.h:20