summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-12-20 18:03:51 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-01-01 20:25:52 -0800
commit2f812cb95986ccdd2b1c1bc857c2cff6de822a9c (patch)
tree4d694ce5c279f2fa25e2a67f4d7794d3c8071537 /app/main.cpp
parent1b5502aede7a033e3d9aea6a728010eefecfc6f1 (diff)
settings: remove dbus outdated code and references
Bluetooth and WiFi status icons are set in the Homescreen now by listening to respective binding events. DBus calls to Homescreen to set status icons is no longer needed or should be used by any new section. Change-Id: Ia5b0bd828fd2a46d9ed20ec49d128540e354eb95 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 2c8c01b..3b39810 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -19,8 +19,6 @@
#include <QtCore/QCommandLineParser>
#include <QtCore/QUrlQuery>
#include <QtCore/QFile>
-#include <QtDBus/QDBusInterface>
-#include <QtDBus/QDBusReply>
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlContext>
@@ -31,23 +29,6 @@
#include <network.h>
#include <qlibwindowmanager.h>
-class DBus : public QObject
-{
- Q_OBJECT
-public:
- DBus(QObject *parent = nullptr)
- : QObject(parent)
- , interface("org.agl.homescreen", "/StatusBar", "org.agl.statusbar", QDBusConnection::sessionBus())
- {}
-
- Q_INVOKABLE void setStatusIcon(int index, const QString &url) {
- interface.call("setStatusIcon", index, url);
- }
-
-private:
- QDBusInterface interface;
-};
-
int main(int argc, char *argv[])
{
QString graphic_role = QString("settings"); // defined in layers.json in window manager
@@ -133,8 +114,6 @@ int main(int argc, char *argv[])
qWarning() << aglversion.errorString();
}
- DBus dbus;
- engine.rootContext()->setContextProperty("dbus", &dbus);
engine.rootContext()->setContextProperty("bluetooth", new Bluetooth(bindingAddressWS));
engine.rootContext()->setContextProperty(QStringLiteral("screenInfo"), &screenInfo);
engine.load(QUrl(QStringLiteral("qrc:/Settings.qml")));
@@ -144,5 +123,3 @@ int main(int argc, char *argv[])
return app.exec();
}
-
-#include "main.moc"