Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
public slots:
void setCurrent(const QString ¤t);
public slots:
void setCurrent(const QString ¤t);
void setLaunching(bool launching);
private:
void setLaunching(bool launching);
private:
void* HomescreenHandler::myThis = 0;
void* HomescreenHandler::myThis = 0;
-HomescreenHandler::HomescreenHandler(Shell *_aglShell, QObject *parent) :
+HomescreenHandler::HomescreenHandler(Shell *_aglShell, ApplicationLauncher *_launcher, QObject *parent) :
+ aglShell(_aglShell),
+ launcher(_launcher)
{
HMI_DEBUG("HomeScreen","tapShortcut %s", application_id.toStdString().c_str());
mp_hs->showWindow(application_id.toStdString().c_str(), nullptr);
{
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
// 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 <libhomescreen.hpp>
#include "shell.h"
+#include "applicationlauncher.h"
#include <string>
using namespace std;
#include <string>
using namespace std;
- explicit HomescreenHandler(Shell *aglShell, QObject *parent = 0);
+ explicit HomescreenHandler(Shell *aglShell, ApplicationLauncher *launcher, QObject *parent = 0);
~HomescreenHandler();
void init(int port, const char* token);
~HomescreenHandler();
void init(int port, const char* token);
private:
LibHomeScreen *mp_hs;
Shell *aglShell;
private:
LibHomeScreen *mp_hs;
Shell *aglShell;
+ ApplicationLauncher *launcher;
};
#endif // HOMESCREENHANDLER_H
};
#endif // HOMESCREENHANDLER_H
QLatin1String("SpeechChromeController is uncreatable."));
QLatin1String("SpeechChromeController is uncreatable."));
- HomescreenHandler* homescreenHandler = new HomescreenHandler(aglShell);
+ HomescreenHandler* homescreenHandler = new HomescreenHandler(aglShell, launcher);
homescreenHandler->init(port, token.toStdString().c_str());
QUrl bindingAddress;
homescreenHandler->init(port, token.toStdString().c_str());
QUrl bindingAddress;