#include <QObject>
#include <QImage>
+#include <QFileInfo>
#include "someplayer.h"
+#include "track.h"
+
+using SomePlayer::DataObjects::Track;
class CoverFinder : public QObject
{
void found(QImage);
public slots:
- bool find(QString path);
+ void find(Track track);
QImage &defaultCover();
+private:
+ bool _async_find(QFileInfo filePath, QString artist, QString album);
+ bool _find(QString path);
+ bool _extract(QString file);
+ bool _tfind(QString artist, QString album);
private:
QImage _defaultCover;