console.log("sendAppToMeter", currentId)
homescreenHandler.sendAppToMeter(currentId)
} else if (loc.mouseX >= 270 && loc.mouseX < 540 ) {
-
+ console.log("sendAppToHud", currentId)
+ homescreenHandler.sendAppToHud(currentId)
} else if (loc.mouseX >= 540 && loc.mouseX < 810 ) {
} else if (loc.mouseX >= 810) {
mp_qhs->showWindow(application_id.section('@', 0, 0).toStdString().c_str(), j_json);
}
+void HomescreenHandler::sendAppToHud(QString application_id)
+{
+ HMI_DEBUG("Launcher","sendAppToHud %s", application_id.toStdString().c_str());
+ struct json_object* j_json = json_object_new_object();
+ struct json_object* value;
+ value = json_object_new_string("hud.normal.full");
+ json_object_object_add(j_json, "area", value);
+
+ mp_qhs->showWindow(application_id.section('@', 0, 0).toStdString().c_str(), j_json);
+}
+
+
void HomescreenHandler::getRunnables(void)
{
mp_qhs->getRunnables();
Q_INVOKABLE void registerShortcut(QString shortcut_id, QString shortcut_name, QString position);
Q_INVOKABLE int uninstallApplication(QString application_id);
Q_INVOKABLE void sendAppToMeter(QString application_id);
+ Q_INVOKABLE void sendAppToHud(QString application_id);
void onRep(struct json_object* reply_contents);