lightmediascanner: correctly disconnect database connection
[apps/mediaplayer.git] / app / lightmediascanner.h
index f5c5f90..4323457 100644 (file)
 #ifndef LIGHTMEDIASCANNER_H
 #define LIGHTMEDIASCANNER_H
 
+#include <QtCore/QDir>
+#include <QtCore/QUrl>
+#include <QtCore/QFileInfo>
 #include <QtCore/QDebug>
+#include <QtCore/QStandardPaths>
 #include <QtCore/QString>
 #include <QtSql/QSqlDatabase>
 #include <QtSql/QSqlRecord>
@@ -26,7 +30,9 @@
 class LightMediaScanner {
 public:
     LightMediaScanner(const QString& path);
+    ~LightMediaScanner();
     bool next(QString& item);
+    static QVariantList processLightMediaScanner();
 private:
     QSqlDatabase lms;
     QSqlQuery query;