X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2FHomeScreen.git;a=blobdiff_plain;f=HomeScreenAppFrameworkBinderAGL%2Fsrc%2Fhomescreenappframeworkbinderagl.cpp;h=593a882d20ff55fa276e7be3f8fdbe05118e663e;hp=91df6f7530018a5900f8b7d2a70b69544b1c119d;hb=83cfbb9fe4bcc17f6b00c8a25aa3eb8c2c850ac0;hpb=c15499baf78f777de62899a376b0f3cd6b651920 diff --git a/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp b/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp index 91df6f7..593a882 100644 --- a/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp +++ b/HomeScreenAppFrameworkBinderAGL/src/homescreenappframeworkbinderagl.cpp @@ -39,7 +39,7 @@ HomeScreenAppFrameworkBinderAgl::HomeScreenAppFrameworkBinderAgl(QObject *parent QDBusConnection::sessionBus(), 0); -#ifdef __arm__ +#ifdef HAVE_IVI_LAYERMANAGEMENT_API QString runnables = mp_dBusAfmUserProxy->runnables("{\"dummy\": \"entry\"}"); qDebug("runnables: %s", runnables.toStdString().c_str()); @@ -55,8 +55,7 @@ HomeScreenAppFrameworkBinderAgl::HomeScreenAppFrameworkBinderAgl(QObject *parent m_apps.append(appInfo); } -#endif -#ifdef __i386__ +#else // for the simulation /*AppInfo ai; ai.setName("org.test.app1"); @@ -82,7 +81,7 @@ QList HomeScreenAppFrameworkBinderAgl::getAvailableApps() int HomeScreenAppFrameworkBinderAgl::launchApp(const QString &name) { int pid = -1; -#ifdef __arm__ +#ifdef HAVE_IVI_LAYERMANAGEMENT_API qDebug("launchApp name: %s", name.toStdString().c_str()); QString jsonLaunch = "{\"id\":\"" + name + "\", \"mode\":\"local\"}"; qDebug("jsonLaunch %s", jsonLaunch.toStdString().c_str()); @@ -110,8 +109,7 @@ int HomeScreenAppFrameworkBinderAgl::launchApp(const QString &name) } qDebug("launchApp pid: %d", pid); -#endif -#ifdef __i386__ +#else qDebug("launchApp name: %s", name.toStdString().c_str()); pid = qrand(); #endif