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
binding: bluetooth: switch from dbus calls to system binding
[apps/mediaplayer.git]
/
app
/
main.cpp
diff --git
a/app/main.cpp
b/app/main.cpp
index
a5bab67
..
5ad9577
100644
(file)
--- a/
app/main.cpp
+++ b/
app/main.cpp
@@
-29,10
+29,6
@@
#include <libhomescreen.hpp>
#endif
#include <libhomescreen.hpp>
#endif
-#ifdef HAVE_DBUS
-#include "dbus.h"
-#endif
-
#include "playlistwithmetadata.h"
#ifndef HAVE_LIGHTMEDIASCANNER
#include "playlistwithmetadata.h"
#ifndef HAVE_LIGHTMEDIASCANNER
@@
-105,17
+101,7
@@
int main(int argc, char *argv[])
context->setContextProperty(QStringLiteral("bindingAddress"), bindingAddress);
}
context->setContextProperty(QStringLiteral("bindingAddress"), bindingAddress);
}
-#if defined(HAVE_DBUS)
- DbusService dbus_service;
- context->setContextProperty("dbus", &dbus_service);
-#endif
-
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
-#if defined(HAVE_DBUS)
- if (!dbus_service.enableBluetooth())
- qWarning() << "Cannot run enableBluetooth";
-#endif
-
return app.exec();
}
return app.exec();
}