X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreenAppFrameworkBinderAGL%2Fsrc%2Fhomescreenappframeworkbinderagl.cpp;h=125dba5a59ca91bad31ba1173fc544df403005e0;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=593a882d20ff55fa276e7be3f8fdbe05118e663e;hpb=83cfbb9fe4bcc17f6b00c8a25aa3eb8c2c850ac0;p=staging%2FHomeScreen.git diff --git a/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp b/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp index 593a882..125dba5 100644 --- a/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp +++ b/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,7 +51,7 @@ HomeScreenAppFrameworkBinderAgl::HomeScreenAppFrameworkBinderAgl(QObject *parent QJsonObject appObject = appsArray[i].toObject(); AppInfo appInfo; appInfo.read(appObject); - qDebug("name %s", appInfo.name.toStdString().c_str()); + qDebug("name %s", appInfo.name().toStdString().c_str()); m_apps.append(appInfo); } @@ -85,11 +85,7 @@ int HomeScreenAppFrameworkBinderAgl::launchApp(const QString &name) qDebug("launchApp name: %s", name.toStdString().c_str()); QString jsonLaunch = "{\"id\":\"" + name + "\", \"mode\":\"local\"}"; qDebug("jsonLaunch %s", jsonLaunch.toStdString().c_str()); - QString runIdString = mp_dBusAfmUserProxy->start(jsonLaunch); - qDebug("runIdString %s", runIdString.toStdString().c_str()); - int runid = runIdString.toInt(); - - QString stateString = mp_dBusAfmUserProxy->state(runIdString); + QString stateString = mp_dBusAfmUserProxy->once(jsonLaunch); qDebug("stateString %s", stateString.toStdString().c_str()); QJsonDocument jsonResponse = QJsonDocument::fromJson(stateString.toUtf8());