Implemented directory scanning and adding tracks to library
[someplayer] / src / tagresolver.h
diff --git a/src/tagresolver.h b/src/tagresolver.h
new file mode 100644 (file)
index 0000000..1a0a405
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef TAGRESOLVER_H
+#define TAGRESOLVER_H
+
+#include <QObject>
+#include "someplayer.h"
+#include "track.h"
+#include <phonon/MediaObject>
+#include <phonon/MediaSource>
+
+using SomePlayer::DataObjects::Track;
+
+class TagResolver : public QObject
+{
+    Q_OBJECT
+public:
+    explicit TagResolver(QObject *parent = 0);
+public slots:
+       void decode (QStringList files);
+
+signals:
+       void decoded(Track);
+
+private slots:
+       void metaStateChanged(Phonon::State newState, Phonon::State /*oldState*/);
+private:
+       QStringList _files;
+       Phonon::MediaObject *_metaObject;
+       QList<Phonon::MediaSource> _sources;
+
+};
+
+#endif // TAGRESOLVER_H