The CoverFetchThread class, This is not a real QThread class, but behaves like one because of AsyncWebAccess.
More...
#include <CoverFetchThread.h>
|
|
| FetchThread (QObject *parent, const Cover::Location &cl, const int n_covers) |
| |
| bool | start () |
| | start fetching covers, if the url does not contain "google", a direct link to an image is assumed and will be downloaded directly More...
|
| |
| bool | fetchNextCover () |
| | fetch next cover More...
|
| |
|
void | stop () |
| | stops the current search
|
| |
| QString | url (int idx) const |
| | Google, Amazon, Last.Fm. More...
|
| |
|
QPixmap | pixmap (int idx) const |
| |
|
int | foundImageCount () const |
| |
The CoverFetchThread class, This is not a real QThread class, but behaves like one because of AsyncWebAccess.
◆ fetchNextCover()
| bool Cover::FetchThread::fetchNextCover |
( |
| ) |
|
fetch next cover
- Returns
- false, if there are no more covers to fetch
◆ sigCoverFound
| void Cover::FetchThread::sigCoverFound |
( |
int |
idx | ) |
|
|
signal |
emitted, when covers has been found
- Parameters
-
| cl | CoverLocation including the local cover path |
◆ sigFinished
| void Cover::FetchThread::sigFinished |
( |
bool |
b | ) |
|
|
signal |
emitted, when thread has finished
- Parameters
-
| b | true, if couvers could be fetched. false else |
◆ start()
| bool Cover::FetchThread::start |
( |
| ) |
|
start fetching covers, if the url does not contain "google", a direct link to an image is assumed and will be downloaded directly
- Returns
- always true
◆ url()
| QString Cover::FetchThread::url |
( |
int |
idx | ) |
const |
Google, Amazon, Last.Fm.
- Returns