public slots:
void setCurrent(const QString ¤t);
-
-private:
void setLaunching(bool launching);
private:
void* HomescreenHandler::myThis = 0;
-HomescreenHandler::HomescreenHandler(Shell *_aglShell, QObject *parent) :
+HomescreenHandler::HomescreenHandler(Shell *_aglShell, ApplicationLauncher *_launcher, QObject *parent) :
QObject(parent),
- aglShell(_aglShell)
+ aglShell(_aglShell),
+ launcher(_launcher)
{
}
{
HMI_DEBUG("HomeScreen","tapShortcut %s", application_id.toStdString().c_str());
mp_hs->showWindow(application_id.toStdString().c_str(), nullptr);
+ launcher->setLaunching(true);
// this works (and it is redundant the first time), due to the default
// policy engine installed which actives the application, when starting
#include <libhomescreen.hpp>
#include "shell.h"
+#include "applicationlauncher.h"
#include <string>
using namespace std;
{
Q_OBJECT
public:
- explicit HomescreenHandler(Shell *aglShell, QObject *parent = 0);
+ explicit HomescreenHandler(Shell *aglShell, ApplicationLauncher *launcher, QObject *parent = 0);
~HomescreenHandler();
void init(int port, const char* token);
private:
LibHomeScreen *mp_hs;
Shell *aglShell;
+ ApplicationLauncher *launcher;
};
#endif // HOMESCREENHANDLER_H
QLatin1String("SpeechChromeController is uncreatable."));
- HomescreenHandler* homescreenHandler = new HomescreenHandler(aglShell);
+ HomescreenHandler* homescreenHandler = new HomescreenHandler(aglShell, launcher);
homescreenHandler->init(port, token.toStdString().c_str());
QUrl bindingAddress;