Code Review
/
apps
/
homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ShortcutArea: use the launcher to verify if the app is running
[apps/homescreen.git]
/
homescreen
/
src
/
applicationlauncher.cpp
diff --git
a/homescreen/src/applicationlauncher.cpp
b/homescreen/src/applicationlauncher.cpp
index
bb9f646
..
917ecaf
100644
(file)
--- 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());
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);
if (m_launcher->connection_is_set())
result = m_launcher->start(application);
@@
-64,6
+65,12
@@
int ApplicationLauncher::launch(const QString &application)
return result;
}
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;
bool ApplicationLauncher::isLaunching() const
{
return m_launching;