diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-03-30 15:05:03 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-04-14 10:56:21 -0700 |
commit | 4eee2655560fbb2f7724095bb7fa488f3f39ba55 (patch) | |
tree | f8903724e9890fd8163880d04a1f5545577ce3ed /app/lightmediascanner.h | |
parent | 86affe07b3ec456c8c43651a7d009508dd64491a (diff) |
dbus: add signal support for removable media
Detect media insertation and removal from lightmediascanner
and update the playlist accordingly. This makes some assumptions
that only one media device will available at a time.
Bug-AGL: SPEC-484
Change-Id: I8300abce3ac09c9cd0327c9d90892e3c5171d8d2
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/lightmediascanner.h')
-rw-r--r-- | app/lightmediascanner.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lightmediascanner.h b/app/lightmediascanner.h index f5c5f90..c1c688b 100644 --- a/app/lightmediascanner.h +++ b/app/lightmediascanner.h @@ -17,7 +17,11 @@ #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> @@ -27,6 +31,7 @@ class LightMediaScanner { public: LightMediaScanner(const QString& path); bool next(QString& item); + static QVariantList processLightMediaScanner(); private: QSqlDatabase lms; QSqlQuery query; |