diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-01-28 12:32:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2020-01-28 12:32:48 +0000 |
commit | 9218d82e97b7eab3f8835ce195f52b3e4280205b (patch) | |
tree | 008c1996d12a302c737ad532e61198587588ba68 /homescreen | |
parent | c9c9e1d5ab372f1abd982072644766b008a384f0 (diff) | |
parent | 133ac94184bbd28b53544b34e3391f8d6bffdeca (diff) |
Merge "homescreen: remove unused DBus code artifacts"icefish_8.99.5icefish/8.99.58.99.5
Diffstat (limited to 'homescreen')
-rw-r--r-- | homescreen/homescreen.pro | 6 | ||||
-rw-r--r-- | homescreen/src/applicationlauncher.cpp | 21 | ||||
-rw-r--r-- | homescreen/src/applicationlauncher.h | 1 | ||||
-rw-r--r-- | homescreen/src/main.cpp | 28 |
4 files changed, 5 insertions, 51 deletions
diff --git a/homescreen/homescreen.pro b/homescreen/homescreen.pro index 773271e..3a08ddc 100644 --- a/homescreen/homescreen.pro +++ b/homescreen/homescreen.pro @@ -15,15 +15,13 @@ TEMPLATE = app TARGET = HomeScreen -QT = qml quick dbus websockets +QT = qml quick websockets CONFIG += c++11 link_pkgconfig DESTDIR = $${OUT_PWD}/../package/root/bin PKGCONFIG += qlibwindowmanager qtappfw afb-helpers-qt LIBS += -lhomescreen -include(../interfaces/interfaces.pri) - SOURCES += \ src/main.cpp \ src/statusbarmodel.cpp \ @@ -55,4 +53,4 @@ RESOURCES += \ qml/images/Status/status.qrc \ qml/images/images.qrc \ qml/qml.qrc \ - qml/images/SpeechChrome/speechchrome.qrc
\ No newline at end of file + qml/images/SpeechChrome/speechchrome.qrc diff --git a/homescreen/src/applicationlauncher.cpp b/homescreen/src/applicationlauncher.cpp index 5a1e2d6..6bb0729 100644 --- a/homescreen/src/applicationlauncher.cpp +++ b/homescreen/src/applicationlauncher.cpp @@ -16,14 +16,12 @@ * limitations under the License. */ -#include "applicationlauncher.h" +#include <QtCore/QTimer> -#include "afm_user_daemon_proxy.h" +#include "applicationlauncher.h" #include "hmi-debug.h" -extern org::AGL::afm::user *afm_user_daemon_proxy; - ApplicationLauncher::ApplicationLauncher(QObject *parent) : QObject(parent) , m_launching(false) @@ -45,21 +43,6 @@ ApplicationLauncher::ApplicationLauncher(QObject *parent) }); } -int ApplicationLauncher::launch(const QString &application) -{ - int result = -1; - HMI_DEBUG("HomeScreen","ApplicationLauncher launch %s.", application.toStdString().c_str()); - - result = afm_user_daemon_proxy->start(application).value().toInt(); - HMI_DEBUG("HomeScreen","ApplicationLauncher pid: %d.", result); - - if (result > 1) { - setLaunching(true); - } - - return result; -} - bool ApplicationLauncher::isLaunching() const { return m_launching; diff --git a/homescreen/src/applicationlauncher.h b/homescreen/src/applicationlauncher.h index dfa5846..bd7656e 100644 --- a/homescreen/src/applicationlauncher.h +++ b/homescreen/src/applicationlauncher.h @@ -40,7 +40,6 @@ signals: void currentChanged(const QString ¤t); public slots: - int launch(const QString &application); void setCurrent(const QString ¤t); private: 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"); |