projects
/
someplayer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements in cover search
[someplayer]
/
src
/
coverfinder.h
diff --git
a/src/coverfinder.h
b/src/coverfinder.h
index
51306c7
..
fbb600f
100644
(file)
--- a/
src/coverfinder.h
+++ b/
src/coverfinder.h
@@
-22,7
+22,11
@@
#include <QObject>
#include <QImage>
#include <QObject>
#include <QImage>
+#include <QFileInfo>
#include "someplayer.h"
#include "someplayer.h"
+#include "track.h"
+
+using SomePlayer::DataObjects::Track;
class CoverFinder : public QObject
{
class CoverFinder : public QObject
{
@@
-34,8
+38,13
@@
signals:
void found(QImage);
public slots:
void found(QImage);
public slots:
- bool find(QString path);
+ void find(Track track);
QImage &defaultCover();
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;
private:
QImage _defaultCover;