#include <QImage>
#include <QFileInfo>
#include "someplayer.h"
+#include "track.h"
+
+using SomePlayer::DataObjects::Track;
class CoverFinder : public QObject
{
signals:
void found(QImage);
+ void foundPath(QString);
public slots:
- void find(QFileInfo filePath);
+ void find(Track track);
QImage &defaultCover();
private:
- bool _async_find(QFileInfo filePath);
+ bool _async_find(QFileInfo filePath, Track track);
bool _find(QString path);
bool _extract(QString file);
+ bool _tfind(QString artist, QString album);
+ bool _malfind(Track); // .mediaartlocal
private:
QImage _defaultCover;
QStringList SUFFIXES;
QStringList NAMES;
QStringList DIRS;
+ QStringList PRIOR_NAMES;
+ QStringList UNPRIOR_NAMES;
};