Implemented directory scanning and adding tracks to library
[someplayer] / src / tagresolver.h
1 #ifndef TAGRESOLVER_H
2 #define TAGRESOLVER_H
3
4 #include <QObject>
5 #include "someplayer.h"
6 #include "track.h"
7 #include <phonon/MediaObject>
8 #include <phonon/MediaSource>
9
10 using SomePlayer::DataObjects::Track;
11
12 class TagResolver : public QObject
13 {
14     Q_OBJECT
15 public:
16     explicit TagResolver(QObject *parent = 0);
17 public slots:
18         void decode (QStringList files);
19
20 signals:
21         void decoded(Track);
22
23 private slots:
24         void metaStateChanged(Phonon::State newState, Phonon::State /*oldState*/);
25 private:
26         QStringList _files;
27         Phonon::MediaObject *_metaObject;
28         QList<Phonon::MediaSource> _sources;
29
30 };
31
32 #endif // TAGRESOLVER_H