![]() |
Sayonara Player
|
#include <CoverLookup.h>
The CoverLookup class.
Signals | |
| void | sig_cover_found (const QPixmap &pm) |
| void | sig_finished (bool success) |
| void | sig_started () |
Public Member Functions | |
| Lookup (QObject *parent=nullptr, int n_covers=1) | |
| Lookup (QObject *parent, int n_covers, const Location &cl) | |
| bool | fetch_cover (const Location &cl, bool also_www=true) |
| fetches cover for a CoverLocation. More... | |
| void | stop () override |
| Stop the Cover::FetchThread if running and retrieve the sig_finished signal If no Cover::FetchThread is running, nothing will happen. | |
| bool | is_thread_running () const |
| indicates if the Cover::FetchThread is running More... | |
| void | set_user_data (void *data) |
| Set some custom data you can retrieve later. More... | |
| void * | user_data () |
| Fetch your custom data again. More... | |
| QList< QPixmap > | pixmaps () const |
| Get a copy of all pixmaps that where fetched. More... | |
| QList< QPixmap > | take_pixmaps () |
| Get all pixmaps that where fetched and remove them from Cover::Lookup. More... | |
Public Slots | |
| void | start () |
| bool Cover::Lookup::fetch_cover | ( | const Location & | cl, |
| bool | also_www = true |
||
| ) |
fetches cover for a CoverLocation.
| cl | CoverLocation of interest |
| bool Cover::Lookup::is_thread_running | ( | ) | const |
indicates if the Cover::FetchThread is running
| QList<QPixmap> Cover::Lookup::pixmaps | ( | ) | const |
Get a copy of all pixmaps that where fetched.
| void Cover::Lookup::set_user_data | ( | void * | data | ) |
Set some custom data you can retrieve later.
| data |
| QList<QPixmap> Cover::Lookup::take_pixmaps | ( | ) |
Get all pixmaps that where fetched and remove them from Cover::Lookup.
| void* Cover::Lookup::user_data | ( | ) |
Fetch your custom data again.
1.8.14