diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-04-17 10:16:50 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-04-17 10:18:15 -0700 |
commit | 3aeb5e52f454b972a423d5e4a359e0e02adec248 (patch) | |
tree | 15b4e77d31c3f1aa8a3f6346bc395b9811cdda62 | |
parent | 4eee2655560fbb2f7724095bb7fa488f3f39ba55 (diff) |
dbus: check if lms library can be linked
dbus support doesn't require lightmediascanner so confirm
HAVE_LIGHTMEDIASCANNER is set before referencing any lms
functions in dbus.cpp
Bug-AGL: SPEC-483
Change-Id: I41258f06e4c6701db84979403ac91256d2c3c420
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r-- | app/dbus.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/dbus.cpp b/app/dbus.cpp index c6d0897..c0bfcea 100644 --- a/app/dbus.cpp +++ b/app/dbus.cpp @@ -35,6 +35,7 @@ bool DbusService::enableLMS() return session_bus.connect(QString("org.lightmediascanner"), QString("/org/lightmediascanner/Scanner1"), "org.freedesktop.DBus.Properties", "PropertiesChanged", this, SLOT(lmsUpdate(QString,QVariantMap,QStringList))); } +#if defined(HAVE_LIGHTMEDIASCANNER) void DbusService::lmsUpdate(const QString&, const QVariantMap& map, const QStringList&) { QVariantList mediaFiles; @@ -53,3 +54,8 @@ void DbusService::lmsUpdate(const QString&, const QVariantMap& map, const QStrin else emit processPlaylistHide(); } +#else +void DbusService::lmsUpdate(const QString&, const QVariantMap&, const QStringList&) +{ +} +#endif |