+HomescreenHandler::HomescreenHandler(Shell *_aglShell, ApplicationLauncher *launcher, QObject *parent) :
+ QObject(parent),
+ aglShell(_aglShell)
+{
+ mp_launcher = launcher;
+ mp_applauncher_client = new AppLauncherClient();
+ QPlatformNativeInterface *native = qApp->platformNativeInterface();
+
+ //
+ // The "started" event is received any time a start request is made to applaunchd,
+ // and the application either starts successfully or is already running. This
+ // effectively acts as a "switch to app X" action.
+ //
+ connect(mp_applauncher_client,
+ &AppLauncherClient::appStatusEvent,
+ this,
+ &HomescreenHandler::processAppStatusEvent);