X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fapplicationlauncher.cpp;fp=homescreen%2Fsrc%2Fapplicationlauncher.cpp;h=6bb072919a50556c1949f71ab67cb5053bf4ca6b;hb=133ac94184bbd28b53544b34e3391f8d6bffdeca;hp=5a1e2d6fd2ddf652859196f2db44cbc40810c9ad;hpb=7dcc687d179c645f4ccf7fffdb507e18b8d562c4;p=apps%2Fhomescreen.git 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 -#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;