X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fapplicationlauncher.cpp;h=917ecafa8dae4e61ac4034cfdbbecec40ef05d05;hb=745f1d9e86e8cbd83c5ae84aba2513341da5ad7a;hp=bb9f64686e515638ee7ad5c58faeefc1b4a09b83;hpb=a70783aad1f382bd2aaf8d611d070cef7266de50;p=apps%2Fhomescreen.git diff --git a/homescreen/src/applicationlauncher.cpp b/homescreen/src/applicationlauncher.cpp index bb9f646..917ecaf 100644 --- a/homescreen/src/applicationlauncher.cpp +++ b/homescreen/src/applicationlauncher.cpp @@ -52,6 +52,7 @@ int ApplicationLauncher::launch(const QString &application) int result = -1; HMI_DEBUG("HomeScreen","ApplicationLauncher launch %s.", application.toStdString().c_str()); + fprintf(stdout, "ApplicationLauncher::launch with %s\n", application.toStdString().c_str()); if (m_launcher->connection_is_set()) result = m_launcher->start(application); @@ -64,6 +65,12 @@ int ApplicationLauncher::launch(const QString &application) return result; } +bool ApplicationLauncher::is_running(const QString &application) +{ + if (m_launcher->connection_is_set()) + return m_launcher->is_running(application); +} + bool ApplicationLauncher::isLaunching() const { return m_launching;