aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/main.cpp
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-01-28 12:32:48 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2020-01-28 12:32:48 +0000
commit9218d82e97b7eab3f8835ce195f52b3e4280205b (patch)
tree008c1996d12a302c737ad532e61198587588ba68 /homescreen/src/main.cpp
parentc9c9e1d5ab372f1abd982072644766b008a384f0 (diff)
parent133ac94184bbd28b53544b34e3391f8d6bffdeca (diff)
Merge "homescreen: remove unused DBus code artifacts"icefish_8.99.5icefish/8.99.58.99.5
Diffstat (limited to 'homescreen/src/main.cpp')
-rw-r--r--homescreen/src/main.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 5c819f9..b92ff60 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -17,6 +17,7 @@
#include <QGuiApplication>
#include <QCommandLineParser>
+#include <QtCore/QUrlQuery>
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlContext>
@@ -28,42 +29,15 @@
#include <bluetooth.h>
#include "applicationlauncher.h"
#include "statusbarmodel.h"
-#include "afm_user_daemon_proxy.h"
#include "mastervolume.h"
#include "homescreenhandler.h"
#include "hmi-debug.h"
#include "chromecontroller.h"
-// XXX: We want this DBus connection to be shared across the different
-// QML objects, is there another way to do this, a nice way, perhaps?
-org::AGL::afm::user *afm_user_daemon_proxy;
-
-namespace {
-
-struct Cleanup {
- static inline void cleanup(org::AGL::afm::user *p) {
- delete p;
- afm_user_daemon_proxy = Q_NULLPTR;
- }
-};
-
-void noOutput(QtMsgType, const QMessageLogContext &, const QString &)
-{
-}
-
-}
-
int main(int argc, char *argv[])
{
QGuiApplication a(argc, argv);
- // use launch process
- QScopedPointer<org::AGL::afm::user, Cleanup> afm_user_daemon_proxy(new org::AGL::afm::user("org.AGL.afm.user",
- "/org/AGL/afm/user",
- QDBusConnection::sessionBus(),
- 0));
- ::afm_user_daemon_proxy = afm_user_daemon_proxy.data();
-
QCoreApplication::setOrganizationDomain("LinuxFoundation");
QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
QCoreApplication::setApplicationName("HomeScreen");