summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHolger Behrens <holger.behrens@windriver.com>2015-02-13 12:13:58 +0100
committerHolger Behrens <holger.behrens@windriver.com>2015-02-13 12:13:58 +0100
commit1faf63f8a7a557450bac238ddc1fb95593eadd08 (patch)
tree4c9909c63b44d310acdb66106d654ad18f98bd81 /include
parentb35fcff59281e81b9fdb64448c5a9d011e0d9a28 (diff)
downloadgenivi-demo-platform-hmi-1faf63f8a7a557450bac238ddc1fb95593eadd08.tar.gz
genivi-demo-platform-hmi: uprev to version 0.3
Signed-off-by: Holger Behrens <holger.behrens@windriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/gdp-dbus-service.h42
-rw-r--r--include/gdp-dbus-systemd.h53
-rw-r--r--include/gdp-hmi-apps.h60
-rw-r--r--include/gdp-hmi-surfaces.h90
4 files changed, 245 insertions, 0 deletions
diff --git a/include/gdp-dbus-service.h b/include/gdp-dbus-service.h
new file mode 100644
index 0000000..ccb7fe2
--- /dev/null
+++ b/include/gdp-dbus-service.h
@@ -0,0 +1,42 @@
+/**
+ * SPDX license identifier: MPL-2.0
+ *
+ * Copyright (C) 2015, GENIVI Alliance
+ *
+ * This file is part of GENIVI Demo Platform HMI.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License (MPL), v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For further information see http://www.genivi.org/.
+ *
+ * List of changes:
+ * 10.Feb.2014, Holger Behrens, written
+ */
+
+#ifndef GDP_HMI_SERVICE_H
+#define GDP_HMI_SERVICE_H
+
+#include <dbus-c++/dbus.h>
+#include <dbus-c++/glib-integration.h>
+#include <systemd/sd-journal.h>
+
+#include "gdp-hmi-server-glue.h"
+
+static const char *GDP_DBUS_SERVICE_NAME = "org.genivi.gdp.hmi.controller";
+static const char *GDP_DBUS_SERVICE_PATH = "/org/genivi/gdp/hmi/controller";
+
+class HmiService : public org::genivi::gdp::HMI_Controller_adaptor,
+ public DBus::IntrospectableAdaptor,
+ public DBus::ObjectAdaptor
+{
+public:
+ HmiService(DBus::Connection &connection);
+
+ int64_t GetId();
+
+ std::string Show(const std::string &name);
+};
+
+#endif // GDP_HMI_SERVICE_H \ No newline at end of file
diff --git a/include/gdp-dbus-systemd.h b/include/gdp-dbus-systemd.h
new file mode 100644
index 0000000..9ae835e
--- /dev/null
+++ b/include/gdp-dbus-systemd.h
@@ -0,0 +1,53 @@
+/**
+ * SPDX license identifier: MPL-2.0
+ *
+ * Copyright (C) 2015, GENIVI Alliance
+ *
+ * This file is part of GENIVI Demo Platform HMI.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License (MPL), v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For further information see http://www.genivi.org/.
+ *
+ * List of changes:
+ * 11.Feb.2014, Holger Behrens, written
+ */
+
+#ifndef GDP_SYSTEMD_SERVICE_H
+#define GDP_SYSTEMD_SERVICE_H
+
+#include <dbus-c++/dbus.h>
+#include <dbus-c++/glib-integration.h>
+#include <systemd/sd-journal.h>
+
+#include "systemd1-client-glue.h"
+
+static const char *SYSTEMD_DBUS_SERVICE_NAME = "org.freedesktop.systemd1";
+static const char *SYSTEMD_DBUS_SERVICE_PATH = "/org/freedesktop/systemd1";
+
+class SystemdService : public org::freedesktop::systemd1::Manager_proxy,
+ public DBus::IntrospectableProxy,
+ public DBus::ObjectProxy
+{
+public:
+ SystemdService(DBus::Connection &connection,
+ const char *path, const char *service);
+
+private:
+ // make virtual functions dirty no-op's
+ void UnitNew(const std::string& argin0, const ::DBus::Path& argin1){}
+ void UnitRemoved(const std::string& argin0, const ::DBus::Path& argin1) {}
+ void JobNew(const uint32_t& argin0, const ::DBus::Path& argin1,
+ const std::string& argin2) {}
+ void JobRemoved(const uint32_t& argin0, const ::DBus::Path& argin1,
+ const std::string& argin2, const std::string& argin3) {}
+ void StartupFinished(const uint64_t& argin0, const uint64_t& argin1,
+ const uint64_t& argin2, const uint64_t& argin3,
+ const uint64_t& argin4, const uint64_t& argin5) {}
+ void UnitFilesChanged() {}
+ void Reloading(const bool& argin0) {}
+};
+
+#endif // GDP_SYSTEMD_SERVICE_H \ No newline at end of file
diff --git a/include/gdp-hmi-apps.h b/include/gdp-hmi-apps.h
new file mode 100644
index 0000000..1618650
--- /dev/null
+++ b/include/gdp-hmi-apps.h
@@ -0,0 +1,60 @@
+/**
+ * SPDX license identifier: MPL-2.0
+ *
+ * Copyright (C) 2015, GENIVI Alliance
+ *
+ * This file is part of GENIVI Demo Platform HMI.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License (MPL), v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For further information see http://www.genivi.org/.
+ *
+ * List of changes:
+ * 11.Feb.2014, Holger Behrens, written
+ */
+
+#ifndef GDP_HMI_APP_H
+#define GDP_HMI_APP_H
+
+#define GDP_PANEL_SURFACE_ID 0
+#define GDP_PANEL_LAYER_ID 0
+#define GDP_PANEL_UNIT "gdp-hmi-panel.service"
+
+#define GDP_LAUNCHER_SURFACE_ID 1
+#define GDP_LAUNCHER_LAYER_ID 100
+#define GDP_LAUNCHER_UNIT "gdp-hmi-launcher.service"
+
+#define GDP_BACKGROUND_SURFACE_ID 2
+#define GDP_BACKGROUND_LAYER_ID 200
+#define GDP_BACKGROUND_UNIT "gdp-hmi-background.service"
+
+#define QML_EXAMPLE_SURFACE_ID 3
+#define QML_EXAMPLE_LAYER_ID 300
+#define QML_EXAMPLE_UNIT "qml-example.service"
+
+#define AM_DEMO_SURFACE_ID 20
+#define AM_DEMO_LAYER_ID 300
+#define AM_DEMO_UNIT "AudioManager_PoC.service"
+
+#define BROWSER_POC_SURFACE_ID 30
+#define BROWSER_POC_LAYER_ID 400
+#define BROWSER_POC_UNIT "browser.service"
+
+#define FSA_SURFACE_ID 40
+#define FSA_LAYER_ID 500
+#define FSA_UNIT "fsa.service"
+
+#define MOCK_NAVIGATION_SURFACE_ID 10
+#define MOCK_NAVIGATION_LAYER_ID 600
+#define MOCK_NAVIGATION_UNIT "EGLWLMockNavigation.service"
+
+#define INPUT_EVENT_EXAMPLE_SURFACE_ID 5100
+#define INPUT_EVENT_EXAMPLE_LAYER_ID 700
+#define INPUT_EVENT_EXAMPLE_UNIT "EGLWLInputEventExample.service"
+
+#define GDP_MAX_LAYER_ID 800
+#define GDP_LAYER_ID_INCR 100
+
+#endif // GDP_HMI_APP_H \ No newline at end of file
diff --git a/include/gdp-hmi-surfaces.h b/include/gdp-hmi-surfaces.h
new file mode 100644
index 0000000..11f3e50
--- /dev/null
+++ b/include/gdp-hmi-surfaces.h
@@ -0,0 +1,90 @@
+/**
+ * SPDX license identifier: MPL-2.0
+ *
+ * Copyright (C) 2015, GENIVI Alliance
+ *
+ * This file is part of GENIVI Demo Platform HMI.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License (MPL), v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For further information see http://www.genivi.org/.
+ *
+ * List of changes:
+ * 11.Feb.2014, Holger Behrens, written
+ */
+
+#ifndef GDP_HMI_SURFACES_H
+#define GDP_HMI_SURFACES_H
+
+#include <string>
+#include <ilm/ilm_types.h>
+
+#include "gdp-hmi-apps.h"
+
+struct gdp_surface_context {
+ t_ilm_bool created;
+ const t_ilm_uint id_surface;
+ const t_ilm_uint id_layer;
+ const std::string unit;
+};
+
+static struct gdp_surface_context gdp_surfaces[] = {
+ {
+ ILM_FALSE,
+ GDP_PANEL_SURFACE_ID,
+ GDP_PANEL_LAYER_ID,
+ GDP_PANEL_UNIT
+ },
+ {
+ ILM_FALSE,
+ GDP_LAUNCHER_SURFACE_ID,
+ GDP_LAUNCHER_LAYER_ID,
+ GDP_LAUNCHER_UNIT
+ },
+ {
+ ILM_FALSE,
+ GDP_BACKGROUND_SURFACE_ID,
+ GDP_BACKGROUND_LAYER_ID,
+ GDP_BACKGROUND_UNIT
+ },
+ {
+ ILM_FALSE,
+ QML_EXAMPLE_SURFACE_ID,
+ QML_EXAMPLE_LAYER_ID,
+ QML_EXAMPLE_UNIT
+ },
+ {
+ ILM_FALSE,
+ AM_DEMO_SURFACE_ID,
+ AM_DEMO_LAYER_ID,
+ AM_DEMO_UNIT
+ },
+ {
+ ILM_FALSE,
+ BROWSER_POC_SURFACE_ID,
+ BROWSER_POC_LAYER_ID,
+ BROWSER_POC_UNIT
+ },
+ {
+ ILM_FALSE,
+ FSA_SURFACE_ID,
+ FSA_LAYER_ID,
+ FSA_UNIT
+ },
+ {
+ ILM_FALSE,
+ MOCK_NAVIGATION_SURFACE_ID,
+ MOCK_NAVIGATION_LAYER_ID,
+ MOCK_NAVIGATION_UNIT
+ },
+ {
+ ILM_FALSE,
+ INPUT_EVENT_EXAMPLE_SURFACE_ID,
+ INPUT_EVENT_EXAMPLE_LAYER_ID,
+ INPUT_EVENT_EXAMPLE_UNIT
+ },
+};
+
+#endif // GDP_HMI_SURFACES_H \ No newline at end of file