Code Review
/
apps
/
mediaplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
lightmediascanner: correctly disconnect database connection
[apps/mediaplayer.git]
/
app
/
lightmediascanner.h
diff --git
a/app/lightmediascanner.h
b/app/lightmediascanner.h
index
f5c5f90
..
4323457
100644
(file)
--- a/
app/lightmediascanner.h
+++ b/
app/lightmediascanner.h
@@
-17,7
+17,11
@@
#ifndef LIGHTMEDIASCANNER_H
#define LIGHTMEDIASCANNER_H
#ifndef LIGHTMEDIASCANNER_H
#define LIGHTMEDIASCANNER_H
+#include <QtCore/QDir>
+#include <QtCore/QUrl>
+#include <QtCore/QFileInfo>
#include <QtCore/QDebug>
#include <QtCore/QDebug>
+#include <QtCore/QStandardPaths>
#include <QtCore/QString>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlRecord>
#include <QtCore/QString>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlRecord>
@@
-26,7
+30,9
@@
class LightMediaScanner {
public:
LightMediaScanner(const QString& path);
class LightMediaScanner {
public:
LightMediaScanner(const QString& path);
+ ~LightMediaScanner();
bool next(QString& item);
bool next(QString& item);
+ static QVariantList processLightMediaScanner();
private:
QSqlDatabase lms;
QSqlQuery query;
private:
QSqlDatabase lms;
QSqlQuery query;