summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-09-29 21:00:25 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-02 17:07:46 +0900
commit381755e4686a08e766316aaf40e8fdfa202d48d4 (patch)
tree52cdc8421fec6f467f35489c04336c4e69a72727
parentd32141ad4cdff0c53194b90c54dc92324cd0c31c (diff)
Add homescreen-2017eel_4.99.1eel/4.99.14.99.1
Add new homescreen-2017 with agl-service-windowmanaeger-2017 and agl-service-homescreen-2017. About this information see JIRA SPEC-871. [PatchSet2] Use aglwgt make package. Delete homescreensimulator and sampleapptimedate beacuse not use them. Change-Id: I402134d0386e76b2127ca95b9b0b48c1721b4086 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
-rw-r--r--README.md42
-rw-r--r--homescreen.pro24
-rw-r--r--homescreen/LICENSE54
-rw-r--r--homescreen/README.md10
-rw-r--r--homescreen/conf/HomeScreen.service17
-rw-r--r--homescreen/docs/homescreen_api.md186
-rw-r--r--homescreen/docs/index.md31
-rw-r--r--homescreen/docs/pictures/api_getAllSurfacesOfProcess.pngbin0 -> 10485 bytes
-rw-r--r--homescreen/docs/pictures/api_getSurfaceStatus_1.pngbin0 -> 10168 bytes
-rw-r--r--homescreen/docs/pictures/api_getSurfaceStatus_2.pngbin0 -> 9794 bytes
-rw-r--r--homescreen/docs/pictures/api_getSurfaceStatus_3.pngbin0 -> 19030 bytes
-rw-r--r--homescreen/docs/pictures/api_hardKeyPressed.pngbin0 -> 9241 bytes
-rw-r--r--homescreen/docs/pictures/api_renderSurfaceToArea.pngbin0 -> 9060 bytes
-rw-r--r--homescreen/docs/pictures/api_renderSurfaceToAreaAllowed.pngbin0 -> 14910 bytes
-rw-r--r--homescreen/docs/pictures/api_requestSurfaceIdToFullScreen.pngbin0 -> 10056 bytes
-rw-r--r--homescreen/docs/pictures/api_surfaceVisibilityChanged.pngbin0 -> 8882 bytes
-rw-r--r--homescreen/docs/pictures/dashboard.pngbin0 -> 359145 bytes
-rw-r--r--homescreen/docs/pictures/full/dashboard.pngbin0 -> 1055839 bytes
-rw-r--r--homescreen/docs/pictures/full/homescreen_applauncher.pngbin0 -> 1090490 bytes
-rw-r--r--homescreen/docs/pictures/full/hvac.pngbin0 -> 921864 bytes
-rw-r--r--homescreen/docs/pictures/full/phone.pngbin0 -> 936048 bytes
-rw-r--r--homescreen/docs/pictures/full/settings.pngbin0 -> 863641 bytes
-rw-r--r--homescreen/docs/pictures/homescreen_applauncher.pngbin0 -> 399084 bytes
-rw-r--r--homescreen/docs/pictures/hvac.pngbin0 -> 338097 bytes
-rw-r--r--homescreen/docs/pictures/phone.pngbin0 -> 336318 bytes
-rw-r--r--homescreen/docs/pictures/settings.pngbin0 -> 300437 bytes
-rw-r--r--homescreen/homescreen.pro67
-rw-r--r--homescreen/qml/Home.qml97
-rw-r--r--homescreen/qml/IconItem.qml37
-rw-r--r--homescreen/qml/MediaArea.qml57
-rw-r--r--homescreen/qml/MediaAreaBlank.qml135
-rw-r--r--homescreen/qml/MediaAreaMusic.qml85
-rw-r--r--homescreen/qml/MediaAreaRadio.qml24
-rw-r--r--homescreen/qml/ShortcutArea.qml85
-rw-r--r--homescreen/qml/ShortcutIcon.qml54
-rw-r--r--homescreen/qml/StatusArea.qml105
-rw-r--r--homescreen/qml/TopArea.qml43
-rw-r--r--homescreen/qml/images/AGL_HMI_Background_NoCar-01.pngbin0 -> 944767 bytes
-rw-r--r--homescreen/qml/images/Home/AGL_HMI_Background_Car-01.pngbin0 -> 216666 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Active-01.pngbin0 -> 34136 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Inactive-01.pngbin0 -> 26878 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Active-01.pngbin0 -> 32014 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Inactive-01.pngbin0 -> 25298 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Active-01.pngbin0 -> 31650 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Inactive-01.pngbin0 -> 24398 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Active-01.pngbin0 -> 29605 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Inactive-01.pngbin0 -> 23307 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Active-01.pngbin0 -> 29104 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Inactive-01.pngbin0 -> 21878 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Active-01.pngbin0 -> 38244 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Inactive-01.pngbin0 -> 33027 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_POI_Active-01.pngbin0 -> 33356 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_POI_Inactive-01.pngbin0 -> 26924 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Phone_Active-01.pngbin0 -> 30830 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Phone_Inactive-01.pngbin0 -> 23978 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Radio_Active-01.pngbin0 -> 29028 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Radio_Inactive-01.pngbin0 -> 21186 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Settings_Active-01.pngbin0 -> 33558 bytes
-rw-r--r--homescreen/qml/images/Home/HMI_AppLauncher_Settings_Inactive-01.pngbin0 -> 26571 bytes
-rw-r--r--homescreen/qml/images/Home/home.qrc25
-rw-r--r--homescreen/qml/images/MediaMusic/AlbumArtwork.pngbin0 -> 25963 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/BackArrow.pngbin0 -> 691 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/ForwardArrow.pngbin0 -> 717 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/ShuffleIcon.pngbin0 -> 927 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/Volume_Loud.pngbin0 -> 579 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/Volume_Medium.pngbin0 -> 882 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/Volume_Off.pngbin0 -> 740 bytes
-rw-r--r--homescreen/qml/images/MediaMusic/mediamusic.qrc11
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_AlbumArtwork.pngbin0 -> 1854532 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_BackArrow.pngbin0 -> 648 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Active.pngbin0 -> 4637 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Inactive.pngbin0 -> 2790 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Active.pngbin0 -> 5581 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Inactive.pngbin0 -> 3223 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_DividingLine.pngbin0 -> 342 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.pngbin0 -> 675 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Active.pngbin0 -> 996 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Inactive.pngbin0 -> 1199 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Pause.pngbin0 -> 3959 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Play.pngbin0 -> 4078 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Active.pngbin0 -> 2061 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Inactive.pngbin0 -> 2061 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Active.pngbin0 -> 4251 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Inactive.pngbin0 -> 2547 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Active.pngbin0 -> 4673 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Inactive.pngbin0 -> 2877 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.pngbin0 -> 1139 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Inactive.pngbin0 -> 1379 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Albums_Active.pngbin0 -> 4616 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Albums_Inactive.pngbin0 -> 2965 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/DividingLine.pngbin0 -> 419 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/GreenLine.pngbin0 -> 364 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Music_Active.pngbin0 -> 2567 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Music_Inactive.pngbin0 -> 2692 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Podcasts_Active.pngbin0 -> 3687 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Podcasts_Inactive.pngbin0 -> 3014 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Popup_Highlight.pngbin0 -> 780 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Popup_PauseIcon.pngbin0 -> 1496 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Popup_PlayIcon.pngbin0 -> 2273 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/Popup_VerticalLine.pngbin0 -> 364 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/X.pngbin0 -> 640 bytes
-rw-r--r--homescreen/qml/images/MediaPlayer/mediaplayer.qrc37
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC-01.pngbin0 -> 4108 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC_Active-01.pngbin0 -> 5908 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_Home-01.pngbin0 -> 3435 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_Home_Active-01.pngbin0 -> 4924 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer-01.pngbin0 -> 4114 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer_Active-01.pngbin0 -> 5973 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation-01.pngbin0 -> 7122 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation_Active-01.pngbin0 -> 9799 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_Radio-01.pngbin0 -> 4608 bytes
-rw-r--r--homescreen/qml/images/Shortcut/HMI_Shortcut_Radio_Active-01.pngbin0 -> 6029 bytes
-rw-r--r--homescreen/qml/images/Shortcut/shortcut.qrc14
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Bluetooth_Inactive-01.pngbin0 -> 1170 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Bluetooth_On-01.pngbin0 -> 922 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Signal_1Bars-01.pngbin0 -> 570 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Signal_2Bars-01.pngbin0 -> 564 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Signal_3Bars-01.pngbin0 -> 560 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Signal_4Bars-01.pngbin0 -> 552 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Signal_Full-01.pngbin0 -> 544 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Signal_NoBars-01.pngbin0 -> 575 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Wifi_1Bar-01.pngbin0 -> 1245 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Wifi_2Bars-01.pngbin0 -> 1198 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Wifi_3Bars-01.pngbin0 -> 1120 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Wifi_Full-01.pngbin0 -> 995 bytes
-rw-r--r--homescreen/qml/images/Status/HMI_Status_Wifi_NoBars-01.pngbin0 -> 1278 bytes
-rw-r--r--homescreen/qml/images/Status/status.qrc17
-rw-r--r--homescreen/qml/images/TopSection_NoText_NoIcons-01.pngbin0 -> 2097 bytes
-rw-r--r--homescreen/qml/images/Utility_Logo_Background-01.pngbin0 -> 1150 bytes
-rw-r--r--homescreen/qml/images/Utility_Logo_Colour-01.pngbin0 -> 8638 bytes
-rw-r--r--homescreen/qml/images/Utility_Music_Background-01.pngbin0 -> 711 bytes
-rw-r--r--homescreen/qml/images/Utility_Radio_Background-01.pngbin0 -> 920 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_ALL-01.pngbin0 -> 1320 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_Cloudy-01.pngbin0 -> 715 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_Moon-01.pngbin0 -> 749 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_PartiallyCloudy-01.pngbin0 -> 900 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_Rain-01.pngbin0 -> 870 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_Snow-01.pngbin0 -> 840 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_Sun-01.pngbin0 -> 807 bytes
-rw-r--r--homescreen/qml/images/Weather/WeatherIcons_Thunderstorm-01.pngbin0 -> 886 bytes
-rw-r--r--homescreen/qml/images/Weather/weather.qrc12
-rw-r--r--homescreen/qml/images/images.qrc10
-rw-r--r--homescreen/qml/main.qml76
-rw-r--r--homescreen/qml/qml.qrc15
-rw-r--r--homescreen/src/appinfo.cpp176
-rw-r--r--homescreen/src/appinfo.h68
-rw-r--r--homescreen/src/applicationlauncher.cpp56
-rw-r--r--homescreen/src/applicationlauncher.h44
-rw-r--r--homescreen/src/applicationmodel.cpp155
-rw-r--r--homescreen/src/applicationmodel.h42
-rw-r--r--homescreen/src/homescreencontrolinterface.cpp86
-rw-r--r--homescreen/src/homescreencontrolinterface.h52
-rw-r--r--homescreen/src/homescreenhandler.cpp79
-rw-r--r--homescreen/src/homescreenhandler.h34
-rw-r--r--homescreen/src/layouthandler.cpp92
-rw-r--r--homescreen/src/layouthandler.h44
-rw-r--r--homescreen/src/main.cpp133
-rw-r--r--homescreen/src/mastervolume.cpp33
-rw-r--r--homescreen/src/mastervolume.h49
-rw-r--r--homescreen/src/popupwidget.cpp92
-rw-r--r--homescreen/src/popupwidget.h58
-rw-r--r--homescreen/src/settingswidget.cpp103
-rw-r--r--homescreen/src/settingswidget.h53
-rw-r--r--homescreen/src/statusbarmodel.cpp92
-rw-r--r--homescreen/src/statusbarmodel.h39
-rw-r--r--homescreen/src/statusbarserver.cpp91
-rw-r--r--homescreen/src/statusbarserver.h49
-rw-r--r--interfaces/LICENSE54
-rw-r--r--interfaces/README.md11
-rw-r--r--interfaces/afm_user_daemon.xml52
-rw-r--r--interfaces/appframework.xml57
-rw-r--r--interfaces/daynightmode.xml21
-rw-r--r--interfaces/homescreen.xml106
-rw-r--r--interfaces/include/afm_user_daemon.hpp21
-rw-r--r--interfaces/include/appframework.hpp66
-rw-r--r--interfaces/include/daynightmode.hpp29
-rw-r--r--interfaces/include/homescreen.hpp23
-rw-r--r--interfaces/include/inputevent.hpp30
-rw-r--r--interfaces/include/popup.hpp31
-rw-r--r--interfaces/include/proximity.hpp22
-rw-r--r--interfaces/include/statusbar.hpp22
-rw-r--r--interfaces/include/windowmanager.hpp82
-rw-r--r--interfaces/inputevent.xml22
-rw-r--r--interfaces/interfaces.pri18
-rw-r--r--interfaces/interfaces.pro68
-rw-r--r--interfaces/popup.xml26
-rw-r--r--interfaces/proximity.xml21
-rw-r--r--interfaces/src/appframework.cpp167
-rw-r--r--interfaces/src/windowmanager.cpp116
-rw-r--r--interfaces/statusbar.xml38
-rw-r--r--interfaces/windowmanager.xml209
-rw-r--r--package/config.xml17
-rw-r--r--package/icon.svg279
-rw-r--r--package/package.pro18
-rw-r--r--test/commandlinetests.txt150
195 files changed, 4866 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..792ec33
--- /dev/null
+++ b/README.md
@@ -0,0 +1,42 @@
+This project contains:
+
+HomeScreen: AGL Home Screen reference implementation
+
+AGL repo for source code:
+
+AGL repo for bitbake recipe:
+
+
+
+Quickstart:
+
+Instructions for building HomeScreen app
+----------------------------------------
+
+The HomeScreen app is part of the
+packagegroup-agl-demo-platform
+packagegroup.
+
+This also includes the following apps:
+- WindowManager
+- HomeScreen Binder
+
+And the library
+- libhomescreen
+- libwindowmanager
+
+
+To build all the above, follow the instrucions on the AGL
+documentation website:
+http://docs.automotivelinux.org/docs/getting_started/en/dev/reference/source-code.html#features-supported-by-aglsetup
+
+Please activate the "agl-demo" feature when running the aglsetup script:
+http://docs.automotivelinux.org/docs/getting_started/en/dev/reference/source-code.html#features-supported-by-aglsetup
+
+
+Launch HomeScreen App:
+
+Usage: ./HomeScreen [port] [token]
+AGL HomeScreen - see wwww... for more details
+
+QT_WAYLAND_SHELL_INTEGRATION=ivi-shell LD_PRELOAD=/usr/lib/libEGL.so.1 /home/root/HomeScreen ${port} ${token}
diff --git a/homescreen.pro b/homescreen.pro
new file mode 100644
index 0000000..1da8651
--- /dev/null
+++ b/homescreen.pro
@@ -0,0 +1,24 @@
+# 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+TEMPLATE = subdirs
+
+load(configure)
+
+SUBDIRS = interfaces \
+ homescreen \
+ package
+
+homescreen.depends = interfaces
+package.depends += homescreen
diff --git a/homescreen/LICENSE b/homescreen/LICENSE
new file mode 100644
index 0000000..31c692a
--- /dev/null
+++ b/homescreen/LICENSE
@@ -0,0 +1,54 @@
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
diff --git a/homescreen/README.md b/homescreen/README.md
new file mode 100644
index 0000000..c52a7f8
--- /dev/null
+++ b/homescreen/README.md
@@ -0,0 +1,10 @@
+AGL Home Screen reference implementation
+
+
+Build with QtCreator 3.5.1
+
+AGL repo for source code:
+https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/HomeScreen
+
+AGL repo for bitbake recipe:
+https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-demo/recipes-demo-hmi/homescreen/homescreen_git.bb
diff --git a/homescreen/conf/HomeScreen.service b/homescreen/conf/HomeScreen.service
new file mode 100644
index 0000000..3a89242
--- /dev/null
+++ b/homescreen/conf/HomeScreen.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=AGL reference HomeScreen
+Requires=dbus.service afm-user-daemon.service InputEventManager.service HomeScreenAppFrameworkBinderAGL.service
+After=dbus.service afm-user-daemon.service InputEventManager.service HomeScreenAppFrameworkBinderAGL.service WindowManager.service
+ConditionKernelCommandLine=!agl.nogfx
+
+[Service]
+Type=dbus
+BusName=org.agl.homescreen
+ExecStart=/usr/AGL/homescreen/HomeScreen
+# 4194304(= 1 << 22) is special surface id for HomeScreen
+Environment=QT_IVI_SURFACE_ID=4194304 QT_WAYLAND_SHELL_INTEGRATION=ivi-shell LD_PRELOAD=/usr/lib/libEGL.so.1
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=default.target
diff --git a/homescreen/docs/homescreen_api.md b/homescreen/docs/homescreen_api.md
new file mode 100644
index 0000000..8f7b8f4
--- /dev/null
+++ b/homescreen/docs/homescreen_api.md
@@ -0,0 +1,186 @@
+# HomeScreen API
+The HomeScreen app provides an own interface for some special use cases concerning the surfaces and user inputs.
+
+The interface is implemented as D-Bus interface.
+This is the introspection, describing the interface:
+
+```
+<node>
+ <interface name="org.agl.homescreen">
+ <method name="hardKeyPressed">
+ <arg name="key" type="i" direction="in"/>
+ </method>
+ <method name="getSurfaceStatus">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="status" type="i" direction="out"/>
+ </method>
+ <method name="requestSurfaceIdToFullScreen">
+ <arg name="surfaceId" type="i" direction="in"/>
+ </method>
+ <method name="getAllSurfacesOfProcess">
+ <arg name="pid" type="i" direction="in"/>
+ <arg name="surfaceIds" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </method>
+ <method name="getLayoutRenderAreaForSurfaceId">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="renderArea" type="(iiii)" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QRect"/>
+ </method>
+ <method name="renderSurfaceToAreaAllowed">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="layoutArea" type="i" direction="in"/>
+ <arg name="allowed" type="b" direction="out"/>
+ </method>
+ <method name="renderSurfaceToArea">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="layoutArea" type="i" direction="in"/>
+ </method>
+ </interface>
+</node>
+```
+
+These interface will change during further development, so check back frequently.
+
+## User Input Events API calls
+
+### hardKeyPressed
+
+Use hardKeyPressed to inject hard key press events into the HomeScreen app.
+This Interface call can be used by applications like the InputEventManager to inject hard keys into the HomeScreen application.
+
+#### Example
+
+if someone presses the Hard Key “NAV” on the target, this key may be injected using this interface to make the HomeScreen launch the navigation application.
+Right now, only a few keys are defined (in inputevent.hpp):
+
+```
+namespace InputEvent {
+ typedef enum HardKey
+ {
+ HARDKEY_UNDEFINED,
+ HARDKEY_NAV,
+ HARDKEY_MEDIA
+ } eHardKey;
+}
+```
+
+This will change in the future.
+
+![hardKeyPressed](pictures/api_hardKeyPressed.png)
+
+A “normal” application would not need to call this API.
+
+## Surface control API calls
+
+The normal use case when starting an application is:
+The user presses a hard key or uses the app launcher to start an app. The app is then started and is shown full screen.
+The org.agl.homescreen API provides some methods to get information about some status and some methods to show surfaces on the screen.
+
+### getSurfaceStatus
+
+A surface can be visible or invisible (please do not confuse “visible” and “visibility”). This function allows to request the current status.
+
+```
+<method name="getSurfaceStatus">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="status" type="i" direction="out"/>
+</method>
+```
+
+Right now an application has to pull this information.
+This is not optimal and will change in the future. There are two options:
+
+ - The homescreen API will provide a signal that is emitted every time the visible status of surfaces changes. This would be way more efficient, because it would save time and avoid a re-occurring API call. __UPDATE:__ There is a D-Bus signal implemented in this API
+ - For Qt, there is already a patch available that provides this information as a base class property. See https://codereview.qt-project.org/#/c/176211/ This would be optimal for Qt widget applications. But not useful for other languages, e.g. Java. __UPDATE:__ This patch got reverted in AGL!
+
+#### Current implementation
+
+![getSurfaceStatus](pictures/api_getSurfaceStatus_1.png)
+
+#### Option 1
+
+![getSurfaceStatus](pictures/api_getSurfaceStatus_2.png)
+
+#### Option 2
+
+![getSurfaceStatus](pictures/api_getSurfaceStatus_3.png)
+
+### requestSurfaceIdToFullScreen
+
+This function will set the given surface to full screen.
+
+```
+<method name="requestSurfaceIdToFullScreen">
+ <arg name="surfaceId" type="i" direction="in"/>
+</method>
+```
+
+It will hide all other surfaces.
+
+![requestSurfaceIdToFullScreen](pictures/api_requestSurfaceIdToFullScreen.png)
+
+### getAllSurfacesOfProcess
+
+This returns all surfaces that are created by the given process ID.
+
+```
+<method name="getAllSurfacesOfProcess">
+ <arg name="pid" type="i" direction="in"/>
+ <arg name="surfaceIds" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+</method>
+```
+
+A process can create more than one surface. By default, the surface with the lowest surface ID is shown on the screen. If an application wants to know all surfaces that were created by an application, this method will provide them.
+
+![getAllSurfacesOfProcess](pictures/api_getAllSurfacesOfProcess.png)
+
+### renderSurfaceToAreaAllowed
+
+Before calling renderSurfaceToArea, an application can request, if it is allowed to render the surface to this area. This makes sense for an application that would begin to allocate resources to render. But if it is not allowed to render the surface, the application could avoid allocating the resources.
+
+```
+<method name="renderSurfaceToAreaAllowed">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="layoutArea" type="i" direction="in"/>
+ <arg name="allowed" type="b" direction="out"/>
+</method>
+```
+
+The call will not affect the current setup, it will only request if it is allowed or not.
+
+![renderSurfaceToAreaAllowed](pictures/api_renderSurfaceToAreaAllowed.png)
+
+### renderSurfaceToArea
+
+By default, the HomeScreen application decides, where to render an applications surface. The concept of Layouts defines this. This API call can override the default behavior. An app can request to render a surface in a specific Layout Area.
+
+```
+<method name="renderSurfaceToArea">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="layoutArea" type="i" direction="in"/>
+</method>
+```
+
+The surface that was previously rendered in this Layout are will be hidden.
+
+![renderSurfaceToArea](pictures/api_renderSurfaceToArea.png)
+
+The homescreen interface functionality is not fully implemented, but the API is available. For example using the libhomescreen.so.
+
+### surfaceVisibilityChanged
+
+Whenever the visibility property of a surface changes, this signal is emitted.
+
+```
+<signal name="surfaceVisibilityChanged">
+ <arg name="surfaceId" type="i"/>
+ <arg name="visible" type="b"/>
+</signal>
+```
+
+Visibility here means visible. The name of the signal is from the Weston surface property “visibility”.
+See here for reference: https://github.com/ntanibata/wayland-ivi-extension/blob/master/ivi-layermanagement-api/ilmCommon/include/ilm_types.h
+
+![surfaceVisibilityChanged](pictures/api_surfaceVisibilityChanged.png)
diff --git a/homescreen/docs/index.md b/homescreen/docs/index.md
new file mode 100644
index 0000000..4322255
--- /dev/null
+++ b/homescreen/docs/index.md
@@ -0,0 +1,31 @@
+# Welcome to your AGL system!
+When booting up an AGL system, the first thing that your eyes will spot is this:
+
+![AGL HomeScreen Application Launcher](pictures/homescreen_applauncher.png)
+
+**The AGL HomeScreen!**
+
+Intended to be used with touch presses, the reference HMI provides access to all pre-installed AGL demo applications as well as in the future access to user installed apps. The list of demo apps contains some automotive applications like HVAC-control, Navigation or Dashboard, as well as some infotainment apps. Radio, Multimedia, Phone...
+This applications are already available and were presented at CES 2017.
+
+## Here are some screenshots of the pre-installed demo applications:
+
+## HVAC
+
+![AGL HVAC](pictures/hvac.png)
+
+## Phone
+
+![AGL Phone](pictures/phone.png)
+
+## Dashboard
+
+![AGL Dashboard](pictures/dashboard.png)
+
+## Settings
+
+![AGL Settings](pictures/settings.png)
+
+#### Note:
+* All current demos (including HomeScreen) are optimized for landscape full HD resolution (1080x1920).
+
diff --git a/homescreen/docs/pictures/api_getAllSurfacesOfProcess.png b/homescreen/docs/pictures/api_getAllSurfacesOfProcess.png
new file mode 100644
index 0000000..5c862d7
--- /dev/null
+++ b/homescreen/docs/pictures/api_getAllSurfacesOfProcess.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_getSurfaceStatus_1.png b/homescreen/docs/pictures/api_getSurfaceStatus_1.png
new file mode 100644
index 0000000..1e18fcf
--- /dev/null
+++ b/homescreen/docs/pictures/api_getSurfaceStatus_1.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_getSurfaceStatus_2.png b/homescreen/docs/pictures/api_getSurfaceStatus_2.png
new file mode 100644
index 0000000..e66d708
--- /dev/null
+++ b/homescreen/docs/pictures/api_getSurfaceStatus_2.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_getSurfaceStatus_3.png b/homescreen/docs/pictures/api_getSurfaceStatus_3.png
new file mode 100644
index 0000000..50a3b10
--- /dev/null
+++ b/homescreen/docs/pictures/api_getSurfaceStatus_3.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_hardKeyPressed.png b/homescreen/docs/pictures/api_hardKeyPressed.png
new file mode 100644
index 0000000..a8a3660
--- /dev/null
+++ b/homescreen/docs/pictures/api_hardKeyPressed.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_renderSurfaceToArea.png b/homescreen/docs/pictures/api_renderSurfaceToArea.png
new file mode 100644
index 0000000..a61fc2f
--- /dev/null
+++ b/homescreen/docs/pictures/api_renderSurfaceToArea.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_renderSurfaceToAreaAllowed.png b/homescreen/docs/pictures/api_renderSurfaceToAreaAllowed.png
new file mode 100644
index 0000000..35dbbcf
--- /dev/null
+++ b/homescreen/docs/pictures/api_renderSurfaceToAreaAllowed.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_requestSurfaceIdToFullScreen.png b/homescreen/docs/pictures/api_requestSurfaceIdToFullScreen.png
new file mode 100644
index 0000000..6d2f712
--- /dev/null
+++ b/homescreen/docs/pictures/api_requestSurfaceIdToFullScreen.png
Binary files differ
diff --git a/homescreen/docs/pictures/api_surfaceVisibilityChanged.png b/homescreen/docs/pictures/api_surfaceVisibilityChanged.png
new file mode 100644
index 0000000..f519757
--- /dev/null
+++ b/homescreen/docs/pictures/api_surfaceVisibilityChanged.png
Binary files differ
diff --git a/homescreen/docs/pictures/dashboard.png b/homescreen/docs/pictures/dashboard.png
new file mode 100644
index 0000000..527386d
--- /dev/null
+++ b/homescreen/docs/pictures/dashboard.png
Binary files differ
diff --git a/homescreen/docs/pictures/full/dashboard.png b/homescreen/docs/pictures/full/dashboard.png
new file mode 100644
index 0000000..e947734
--- /dev/null
+++ b/homescreen/docs/pictures/full/dashboard.png
Binary files differ
diff --git a/homescreen/docs/pictures/full/homescreen_applauncher.png b/homescreen/docs/pictures/full/homescreen_applauncher.png
new file mode 100644
index 0000000..b61884a
--- /dev/null
+++ b/homescreen/docs/pictures/full/homescreen_applauncher.png
Binary files differ
diff --git a/homescreen/docs/pictures/full/hvac.png b/homescreen/docs/pictures/full/hvac.png
new file mode 100644
index 0000000..7e0399a
--- /dev/null
+++ b/homescreen/docs/pictures/full/hvac.png
Binary files differ
diff --git a/homescreen/docs/pictures/full/phone.png b/homescreen/docs/pictures/full/phone.png
new file mode 100644
index 0000000..f4cc547
--- /dev/null
+++ b/homescreen/docs/pictures/full/phone.png
Binary files differ
diff --git a/homescreen/docs/pictures/full/settings.png b/homescreen/docs/pictures/full/settings.png
new file mode 100644
index 0000000..a115ef4
--- /dev/null
+++ b/homescreen/docs/pictures/full/settings.png
Binary files differ
diff --git a/homescreen/docs/pictures/homescreen_applauncher.png b/homescreen/docs/pictures/homescreen_applauncher.png
new file mode 100644
index 0000000..e168668
--- /dev/null
+++ b/homescreen/docs/pictures/homescreen_applauncher.png
Binary files differ
diff --git a/homescreen/docs/pictures/hvac.png b/homescreen/docs/pictures/hvac.png
new file mode 100644
index 0000000..f9a6030
--- /dev/null
+++ b/homescreen/docs/pictures/hvac.png
Binary files differ
diff --git a/homescreen/docs/pictures/phone.png b/homescreen/docs/pictures/phone.png
new file mode 100644
index 0000000..e087594
--- /dev/null
+++ b/homescreen/docs/pictures/phone.png
Binary files differ
diff --git a/homescreen/docs/pictures/settings.png b/homescreen/docs/pictures/settings.png
new file mode 100644
index 0000000..c92d835
--- /dev/null
+++ b/homescreen/docs/pictures/settings.png
Binary files differ
diff --git a/homescreen/homescreen.pro b/homescreen/homescreen.pro
new file mode 100644
index 0000000..21f742e
--- /dev/null
+++ b/homescreen/homescreen.pro
@@ -0,0 +1,67 @@
+# 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+TEMPLATE = app
+TARGET = HomeScreen
+QT = qml quick dbus
+CONFIG += c++11 link_pkgconfig
+DESTDIR = $${OUT_PWD}/../package/root/bin
+#PKGCONFIG += libpulse
+
+LIBS += -lsystemd
+LIBS += -lafbwsc
+LIBS += -ljson-c
+LIBS += -lhomescreen
+LIBS += -lwindowmanager
+
+include(../interfaces/interfaces.pri)
+
+target.path = /home/root
+INSTALLS += target
+
+SOURCES += \
+ src/main.cpp \
+ src/homescreencontrolinterface.cpp \
+ src/layouthandler.cpp \
+ src/applicationmodel.cpp \
+ src/appinfo.cpp \
+ src/statusbarmodel.cpp \
+ src/statusbarserver.cpp \
+ src/applicationlauncher.cpp \
+ src/mastervolume.cpp \
+ src/homescreenhandler.cpp
+
+HEADERS += \
+ src/homescreencontrolinterface.h \
+ src/layouthandler.h \
+ src/statusbarmodel.h \
+ src/statusbarserver.h \
+ src/applicationlauncher.h \
+ src/applicationmodel.h \
+ src/appinfo.h \
+ src/mastervolume.h \
+ src/homescreenhandler.h
+
+OTHER_FILES += \
+ README.md
+
+RESOURCES += \
+ qml/images/Home/home.qrc \
+ qml/images/MediaPlayer/mediaplayer.qrc \
+ qml/images/MediaMusic/mediamusic.qrc \
+ qml/images/Weather/weather.qrc \
+ qml/images/Shortcut/shortcut.qrc \
+ qml/images/Status/status.qrc \
+ qml/images/images.qrc \
+ qml/qml.qrc
diff --git a/homescreen/qml/Home.qml b/homescreen/qml/Home.qml
new file mode 100644
index 0000000..729ef36
--- /dev/null
+++ b/homescreen/qml/Home.qml
@@ -0,0 +1,97 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import Home 1.0
+
+Item {
+ id: root
+
+ Image {
+ y: 0
+ anchors.fill: parent
+ anchors.topMargin: -218
+ anchors.bottomMargin: -215
+ source: './images/AGL_HMI_Background_Car-01.png'
+ }
+
+ property int pid: -1
+ width: 1080
+ height: 1487
+
+ GridView {
+ id: grid
+ x: 60
+ y: 100
+ width: 960
+ height: 1280
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.verticalCenter: parent.verticalCenter
+ contentHeight: 320
+ flickableDirection: Flickable.AutoFlickDirection
+ snapMode: GridView.SnapOneRow
+ visible: true
+ cellWidth: 320
+ cellHeight: 320
+ interactive: false
+
+ model: ApplicationModel { id: applicationModel }
+ delegate: IconItem {
+ width: grid.cellWidth
+ height: grid.cellHeight
+ }
+
+ MouseArea {
+ id: loc
+ anchors.fill: parent
+ property string currentId: ''
+ property int newIndex: -1
+ property int index: grid.indexAt(loc.mouseX, loc.mouseY)
+ x: 62
+ y: 264
+ anchors.rightMargin: 0
+ anchors.bottomMargin: 0
+ anchors.leftMargin: 0
+ anchors.topMargin: 0
+ onPressAndHold: currentId = applicationModel.id(newIndex = index)
+ onReleased: {
+ if (currentId === '') {
+ pid = launcher.launch(applicationModel.id(loc.index))
+ if (1 < pid) {
+// layoutHandler.makeMeVisible(pid)
+
+ applicationArea.visible = true
+ appLauncherAreaLauncher.visible = false
+ // layoutHandler.showAppLayer(applicationModel.id(loc.index), pid)
+ }
+ else {
+ console.warn("app cannot be launched!")
+ }
+ } else {
+ currentId = ''
+ }
+ homescreenHandler.tapShortcut(applicationModel.name(loc.index))
+ }
+ onPositionChanged: {
+ if (loc.currentId === '') return
+ if (index < 0) return
+ if (index === newIndex) return
+ applicationModel.move(newIndex, newIndex = index)
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/IconItem.qml b/homescreen/qml/IconItem.qml
new file mode 100644
index 0000000..59131c0
--- /dev/null
+++ b/homescreen/qml/IconItem.qml
@@ -0,0 +1,37 @@
+import QtQuick 2.0
+
+Item {
+ id: main
+ Image {
+ id: item; parent: loc
+ x: main.x + 5; y: main.y + 5
+ width: main.width - 10; height: main.height - 10;
+ source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(loc.pressed && (loc.index === model.index || loc.currentId === model.id) ? 'Active' : 'Inactive')
+ antialiasing: item.state !== ''
+ Behavior on x { enabled: item.state !== 'active'; NumberAnimation { duration: 400; easing.type: Easing.OutCubic } }
+ Behavior on y { enabled: item.state !== 'active'; NumberAnimation { duration: 400; easing.type: Easing.OutCubic } }
+ SequentialAnimation on rotation {
+ NumberAnimation { to: 5; duration: 100 }
+ NumberAnimation { to: -5; duration: 200 }
+ NumberAnimation { to: 0; duration: 100 }
+ running: loc.currentId !== '' && item.state !== 'active'
+ loops: Animation.Infinite; alwaysRunToEnd: true
+ }
+ states: [
+ State {
+ name: 'active'
+ when: loc.currentId == model.id
+ PropertyChanges { target: item; x: loc.mouseX - width/2; y: loc.mouseY - height/2; scale: 1.15; z: 10 }
+ },
+ State {
+ when: loc.currentId !== ''
+ PropertyChanges {
+ target: item
+ scale: 0.85
+ opacity: 0.75
+ }
+ }
+ ]
+ transitions: Transition { NumberAnimation { properties: 'scale, opacity, x, y'; duration: 150; easing.type: Easing.OutCubic} }
+ }
+}
diff --git a/homescreen/qml/MediaArea.qml b/homescreen/qml/MediaArea.qml
new file mode 100644
index 0000000..d7159d2
--- /dev/null
+++ b/homescreen/qml/MediaArea.qml
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Controls 1.0
+
+StackView {
+ id: root
+ width: 1080
+ height: 215
+
+ initialItem: blank
+
+ Component {
+ id: blank
+ MediaAreaBlank {
+// MouseArea {
+// anchors.fill: parent
+// onClicked: root.push(mouse.x < 540 ? music : radio)
+// }
+ }
+ }
+
+ Component {
+ id: music
+ MediaAreaMusic {
+ MouseArea {
+ anchors.fill: parent
+ onClicked: root.pop()
+ }
+ }
+ }
+
+ Component {
+ id: radio
+ MediaAreaRadio {
+ MouseArea {
+ anchors.fill: parent
+ onClicked: root.pop()
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/MediaAreaBlank.qml b/homescreen/qml/MediaAreaBlank.qml
new file mode 100644
index 0000000..51fa657
--- /dev/null
+++ b/homescreen/qml/MediaAreaBlank.qml
@@ -0,0 +1,135 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls 2.0
+import AGL.Demo.Controls 1.0
+import MasterVolume 1.0
+
+Image {
+ width: 1080
+ height: 215
+ source: './images/Utility_Logo_Background-01.png'
+ property bool displayVolume: false;
+
+ MouseArea {
+ anchors.fill: parent
+ function enableVolumeDisplay() {
+ if (!displayVolume) {
+ displayVolume = true
+ master_volume.visible = true
+ volume_timer.restart()
+ }
+ }
+ onClicked: enableVolumeDisplay()
+ }
+
+ Image {
+ id: logo_image
+ anchors.centerIn: parent
+ source: './images/Utility_Logo_Colour-01.png'
+ }
+
+ Timer {
+ id: volume_timer
+ interval: 5000; running: false; repeat: false
+ onTriggered: displayVolume = false
+ }
+
+ states: [
+ State { when: displayVolume;
+ PropertyChanges { target: master_volume; opacity: 1.0 }
+ PropertyChanges { target: slider; enabled: true }
+ PropertyChanges { target: logo_image; opacity: 0.0 }
+ },
+ State { when: !displayVolume;
+ PropertyChanges { target: master_volume; opacity: 0.0 }
+ PropertyChanges { target: slider; enabled: false }
+ PropertyChanges { target: logo_image; opacity: 1.0 }
+ }
+ ]
+
+ transitions: Transition {
+ NumberAnimation { property: "opacity"; duration: 500}
+ }
+
+ MasterVolume {
+ id: mv
+ objectName: "mv"
+ onVolumeChanged: slider.value = volume
+ }
+
+ Item {
+ id: master_volume
+ anchors.fill: parent
+ anchors.centerIn: parent
+ visible: false
+
+ Label {
+ font.pixelSize: 36
+ anchors.horizontalCenter: parent.horizontalCenter
+ color: "white"
+ text: "Master Volume"
+ }
+
+ RowLayout {
+ anchors.fill: parent
+ anchors.centerIn: parent
+ anchors.margins: 20
+ spacing: 20
+ Label {
+ font.pixelSize: 36
+ color: "white"
+ text: "0 %"
+ }
+ Slider {
+ id: slider
+ Layout.fillWidth: true
+ from: 0
+ to: 65536
+ stepSize: 256
+ snapMode: Slider.SnapOnRelease
+ onValueChanged: mv.volume = value
+ Component.onCompleted: value = mv.volume
+ onPressedChanged: {
+ if (pressed) {volume_timer.stop()}
+ else {volume_timer.restart()}
+ }
+ background: Rectangle {
+ id: slider_bg
+ height: 16
+ color: "#59FF7F"
+ }
+ handle: Rectangle {
+ anchors.verticalCenter: slider_bg.verticalCenter
+ width: 48
+ height: 48
+ radius: 24
+ x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
+ y: slider.topPadding + slider.availableHeight / 2 - height / 2
+ color: "white"
+ }
+ }
+ Label {
+ font.pixelSize: 36
+ color: "white"
+ text: "100 %"
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/MediaAreaMusic.qml b/homescreen/qml/MediaAreaMusic.qml
new file mode 100644
index 0000000..927e82c
--- /dev/null
+++ b/homescreen/qml/MediaAreaMusic.qml
@@ -0,0 +1,85 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls 1.0
+
+Image {
+ width: 1080
+ height: 215
+ source: './images/Utility_Music_Background-01.png'
+
+ ColumnLayout {
+ anchors.fill: parent
+ spacing: 1
+ RowLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 107
+ spacing: 10
+ Image {
+ source: './images/MediaMusic/AlbumArtwork.png'
+ width: 105.298
+ height: 110.179
+ fillMode: Image.PreserveAspectFit
+ }
+ Label {
+ text: 'Come Together - The Beatles'
+ font.family: 'Roboto'
+ font.pixelSize: 32
+ color: 'white'
+ }
+ }
+
+ RowLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 107
+ Image {
+ source: './images/MediaPlayer/AGL_MediaPlayer_BackArrow.png'
+ }
+ Image {
+ source: './images/MediaPlayer/AGL_MediaPlayer_Player_Pause.png'
+ }
+ Image {
+ source: './images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.png'
+ }
+
+ ProgressBar {
+ Layout.fillWidth: true
+ Layout.preferredWidth: 2
+ }
+
+ Label {
+ text: '2:12/4:19'
+ font.family: 'Roboto'
+ font.pixelSize: 20
+ }
+ Image {
+ source: './images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png'
+ }
+ Image {
+ source: './images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png'
+ }
+ ProgressBar {
+ Layout.fillWidth: true
+ Layout.preferredWidth: 1
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/MediaAreaRadio.qml b/homescreen/qml/MediaAreaRadio.qml
new file mode 100644
index 0000000..a49f06d
--- /dev/null
+++ b/homescreen/qml/MediaAreaRadio.qml
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+
+Image {
+ width: 1080
+ height: 215
+ source: './images/Utility_Radio_Background-01.png'
+}
diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml
new file mode 100644
index 0000000..94bad5d
--- /dev/null
+++ b/homescreen/qml/ShortcutArea.qml
@@ -0,0 +1,85 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Layouts 1.1
+
+Item {
+ id: root
+ width: 785
+ height: 218
+
+
+ ListModel {
+ id: applicationModel
+ ListElement {
+ name: 'Home'
+ application: ''
+ }
+ ListElement {
+ name: 'MediaPlayer'
+ application: 'mediaplayer@0.1'
+ }
+ ListElement {
+// name: 'HVAC'
+// application: 'hvac@0.1'
+ name: 'Radio'
+ application: 'radio@0.1'
+ }
+ ListElement {
+ name: 'Navigation'
+ application: 'navigation@0.1'
+ }
+ }
+
+ property int pid: -1
+
+ RowLayout {
+ anchors.fill: parent
+ spacing: 2
+ Repeater {
+ model: applicationModel
+ delegate: ShortcutIcon {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ name: model.name
+ active: model.application === launcher.current
+ onClicked: {
+ if (0 === model.index) {
+ appLauncherAreaLauncher.visible = true
+ applicationArea.visible = false
+// layoutHandler.hideAppLayer()
+ launcher.current = ''
+ }
+ else {
+ pid = launcher.launch(model.application)
+ if (1 < pid) {
+ applicationArea.visible = true
+ appLauncherAreaLauncher.visible = false
+// layoutHandler.makeMeVisible(pid)
+// layoutHandler.showAppLayer(model.application, pid)
+ }
+ else {
+ console.warn("app cannot be launched!")
+ }
+ }
+ homescreenHandler.tapShortcut(model.name)
+ }
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/ShortcutIcon.qml b/homescreen/qml/ShortcutIcon.qml
new file mode 100644
index 0000000..6f8e05e
--- /dev/null
+++ b/homescreen/qml/ShortcutIcon.qml
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+
+MouseArea {
+ id: root
+ width: 195
+ height: 216.8
+ property string name: 'Home'
+ property bool active: false
+ Image {
+ id: icon
+ anchors.fill: parent
+ source: './images/Shortcut/HMI_Shortcut_%1-01.png'.arg(root.name)
+ }
+ Image {
+ anchors.fill: parent
+ source: './images/Shortcut/HMI_Shortcut_%1_Active-01.png'.arg(root.name)
+ opacity: 1.0 - icon.opacity
+ }
+ states: [
+ State {
+ when: root.active
+ PropertyChanges {
+ target: icon
+ opacity: 0.0
+ }
+ }
+ ]
+
+ transitions: [
+ Transition {
+ NumberAnimation {
+ properties: 'opacity'
+ easing.type: Easing.OutExpo
+ }
+ }
+ ]
+}
diff --git a/homescreen/qml/StatusArea.qml b/homescreen/qml/StatusArea.qml
new file mode 100644
index 0000000..3fc3079
--- /dev/null
+++ b/homescreen/qml/StatusArea.qml
@@ -0,0 +1,105 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Layouts 1.1
+import QtQuick.Controls 1.0
+import HomeScreen 1.0
+
+Item {
+ id: root
+ width: 295
+ height: 218
+
+ property date now: new Date
+ Timer {
+ interval: 100; running: true; repeat: true;
+ onTriggered: root.now = new Date
+ }
+
+ RowLayout {
+ anchors.fill: parent
+ spacing: 0
+ Item {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredWidth: 295 - 76
+ ColumnLayout {
+ anchors.fill: parent
+ anchors.margins: 40
+ spacing: 0
+ Text {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ text: Qt.formatDate(now, 'dddd').toUpperCase()
+ font.family: 'Roboto'
+ font.pixelSize: 13
+ color: 'white'
+ verticalAlignment: Text.AlignVCenter
+// Rectangle {
+// anchors.fill: parent
+// anchors.margins: 5
+// color: 'red'
+// border.color: 'blue'
+// border.width: 1
+// z: -1
+// }
+ }
+ Text {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ text: Qt.formatTime(now, 'h:mm ap').toUpperCase()
+ font.family: 'Roboto'
+ font.pixelSize: 40
+ color: 'white'
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ }
+ RowLayout {
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 20
+ Image {
+ source: './images/Weather/WeatherIcons_Rain-01.png'
+ }
+ Text {
+ text: '64°F'
+ color: 'white'
+ font.family: 'Helvetica'
+ font.pixelSize: 32
+ }
+ }
+ }
+ }
+ ColumnLayout {
+ id: icons
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredWidth: 76
+ spacing: -10
+ Repeater {
+ model: StatusBarModel {}
+ delegate: Image {
+ Layout.preferredWidth: 77
+ Layout.preferredHeight: 73
+ source: model.modelData
+ fillMode: Image.PreserveAspectFit
+ }
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/TopArea.qml b/homescreen/qml/TopArea.qml
new file mode 100644
index 0000000..922742d
--- /dev/null
+++ b/homescreen/qml/TopArea.qml
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Layouts 1.1
+
+Image {
+ width: 1920
+ height: 218
+ source: './images/TopSection_NoText_NoIcons-01.png'
+ fillMode: Image.PreserveAspectCrop
+
+ RowLayout {
+ anchors.fill: parent
+ spacing: 0
+ ShortcutArea {
+ id: shortcutArea
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredWidth: 785
+ }
+ StatusArea {
+ id: statusArea
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredWidth: 295
+ }
+ }
+}
diff --git a/homescreen/qml/images/AGL_HMI_Background_NoCar-01.png b/homescreen/qml/images/AGL_HMI_Background_NoCar-01.png
new file mode 100644
index 0000000..595f742
--- /dev/null
+++ b/homescreen/qml/images/AGL_HMI_Background_NoCar-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/AGL_HMI_Background_Car-01.png b/homescreen/qml/images/Home/AGL_HMI_Background_Car-01.png
new file mode 100644
index 0000000..b0072d8
--- /dev/null
+++ b/homescreen/qml/images/Home/AGL_HMI_Background_Car-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Active-01.png
new file mode 100644
index 0000000..888d0bd
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Inactive-01.png
new file mode 100644
index 0000000..ab83b0e
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Connectivity_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Active-01.png
new file mode 100644
index 0000000..11d39e5
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Inactive-01.png
new file mode 100644
index 0000000..6c0b914
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Dashboard_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Active-01.png
new file mode 100644
index 0000000..efc11e9
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Inactive-01.png
new file mode 100644
index 0000000..b528376
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_HVAC_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Active-01.png
new file mode 100644
index 0000000..1c99ac4
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Inactive-01.png
new file mode 100644
index 0000000..0bed61d
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_MediaPlayer_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Active-01.png
new file mode 100644
index 0000000..41c499d
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Inactive-01.png
new file mode 100644
index 0000000..93f81af
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Mixer_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Active-01.png
new file mode 100644
index 0000000..e7ad085
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Inactive-01.png
new file mode 100644
index 0000000..dd40750
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Navigation_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_POI_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_POI_Active-01.png
new file mode 100644
index 0000000..2df01d3
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_POI_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_POI_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_POI_Inactive-01.png
new file mode 100644
index 0000000..ec62b87
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_POI_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Phone_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Phone_Active-01.png
new file mode 100644
index 0000000..2150581
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Phone_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Phone_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Phone_Inactive-01.png
new file mode 100644
index 0000000..61dcedc
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Phone_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Radio_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Radio_Active-01.png
new file mode 100644
index 0000000..1aa5a01
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Radio_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Radio_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Radio_Inactive-01.png
new file mode 100644
index 0000000..616983e
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Radio_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Settings_Active-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Settings_Active-01.png
new file mode 100644
index 0000000..1d13fd6
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Settings_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/HMI_AppLauncher_Settings_Inactive-01.png b/homescreen/qml/images/Home/HMI_AppLauncher_Settings_Inactive-01.png
new file mode 100644
index 0000000..027f1fe
--- /dev/null
+++ b/homescreen/qml/images/Home/HMI_AppLauncher_Settings_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Home/home.qrc b/homescreen/qml/images/Home/home.qrc
new file mode 100644
index 0000000..49d19d8
--- /dev/null
+++ b/homescreen/qml/images/Home/home.qrc
@@ -0,0 +1,25 @@
+<RCC>
+ <qresource prefix="/images">
+ <file>AGL_HMI_Background_Car-01.png</file>
+ <file>HMI_AppLauncher_Connectivity_Active-01.png</file>
+ <file>HMI_AppLauncher_Connectivity_Inactive-01.png</file>
+ <file>HMI_AppLauncher_Dashboard_Active-01.png</file>
+ <file>HMI_AppLauncher_Dashboard_Inactive-01.png</file>
+ <file>HMI_AppLauncher_HVAC_Active-01.png</file>
+ <file>HMI_AppLauncher_HVAC_Inactive-01.png</file>
+ <file>HMI_AppLauncher_Mixer_Active-01.png</file>
+ <file>HMI_AppLauncher_Mixer_Inactive-01.png</file>
+ <file>HMI_AppLauncher_MediaPlayer_Active-01.png</file>
+ <file>HMI_AppLauncher_MediaPlayer_Inactive-01.png</file>
+ <file>HMI_AppLauncher_Navigation_Active-01.png</file>
+ <file>HMI_AppLauncher_Navigation_Inactive-01.png</file>
+ <file>HMI_AppLauncher_Phone_Active-01.png</file>
+ <file>HMI_AppLauncher_Phone_Inactive-01.png</file>
+ <file>HMI_AppLauncher_POI_Active-01.png</file>
+ <file>HMI_AppLauncher_POI_Inactive-01.png</file>
+ <file>HMI_AppLauncher_Radio_Active-01.png</file>
+ <file>HMI_AppLauncher_Radio_Inactive-01.png</file>
+ <file>HMI_AppLauncher_Settings_Active-01.png</file>
+ <file>HMI_AppLauncher_Settings_Inactive-01.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/images/MediaMusic/AlbumArtwork.png b/homescreen/qml/images/MediaMusic/AlbumArtwork.png
new file mode 100644
index 0000000..3716ab3
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/AlbumArtwork.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/BackArrow.png b/homescreen/qml/images/MediaMusic/BackArrow.png
new file mode 100644
index 0000000..63e38d9
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/BackArrow.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/ForwardArrow.png b/homescreen/qml/images/MediaMusic/ForwardArrow.png
new file mode 100644
index 0000000..a513705
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/ForwardArrow.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/ShuffleIcon.png b/homescreen/qml/images/MediaMusic/ShuffleIcon.png
new file mode 100644
index 0000000..30f75c5
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/ShuffleIcon.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/Volume_Loud.png b/homescreen/qml/images/MediaMusic/Volume_Loud.png
new file mode 100644
index 0000000..8ea4402
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/Volume_Loud.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/Volume_Medium.png b/homescreen/qml/images/MediaMusic/Volume_Medium.png
new file mode 100644
index 0000000..ae5c82e
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/Volume_Medium.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/Volume_Off.png b/homescreen/qml/images/MediaMusic/Volume_Off.png
new file mode 100644
index 0000000..07e3353
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/Volume_Off.png
Binary files differ
diff --git a/homescreen/qml/images/MediaMusic/mediamusic.qrc b/homescreen/qml/images/MediaMusic/mediamusic.qrc
new file mode 100644
index 0000000..b1138c0
--- /dev/null
+++ b/homescreen/qml/images/MediaMusic/mediamusic.qrc
@@ -0,0 +1,11 @@
+<RCC>
+ <qresource prefix="/images/MediaMusic">
+ <file>AlbumArtwork.png</file>
+ <file>BackArrow.png</file>
+ <file>ForwardArrow.png</file>
+ <file>ShuffleIcon.png</file>
+ <file>Volume_Loud.png</file>
+ <file>Volume_Medium.png</file>
+ <file>Volume_Off.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_AlbumArtwork.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_AlbumArtwork.png
new file mode 100644
index 0000000..14a52b2
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_AlbumArtwork.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_BackArrow.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_BackArrow.png
new file mode 100644
index 0000000..0ec1f67
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_BackArrow.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Active.png
new file mode 100644
index 0000000..bc2df1d
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Inactive.png
new file mode 100644
index 0000000..8d8fc02
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Bluetooth_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Active.png
new file mode 100644
index 0000000..94fe38f
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Inactive.png
new file mode 100644
index 0000000..12609e1
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_CD_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_DividingLine.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_DividingLine.png
new file mode 100644
index 0000000..299903e
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_DividingLine.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.png
new file mode 100644
index 0000000..33cc700
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Active.png
new file mode 100644
index 0000000..9bdb14d
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Inactive.png
new file mode 100644
index 0000000..76b0fc9
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Loop_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Pause.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Pause.png
new file mode 100644
index 0000000..c423005
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Pause.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Play.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Play.png
new file mode 100644
index 0000000..beece66
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Player_Play.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Active.png
new file mode 100644
index 0000000..eec608f
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Inactive.png
new file mode 100644
index 0000000..d392a90
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_PlaylistToggle_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Active.png
new file mode 100644
index 0000000..22319c9
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Inactive.png
new file mode 100644
index 0000000..9fd42e2
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Playlist_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Active.png
new file mode 100644
index 0000000..eb61b39
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Inactive.png
new file mode 100644
index 0000000..de305f0
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Radio_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png
new file mode 100644
index 0000000..d97feec
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Inactive.png b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Inactive.png
new file mode 100644
index 0000000..7f6445d
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Albums_Active.png b/homescreen/qml/images/MediaPlayer/Albums_Active.png
new file mode 100644
index 0000000..1f66e23
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Albums_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Albums_Inactive.png b/homescreen/qml/images/MediaPlayer/Albums_Inactive.png
new file mode 100644
index 0000000..e0e7f00
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Albums_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/DividingLine.png b/homescreen/qml/images/MediaPlayer/DividingLine.png
new file mode 100644
index 0000000..87f2122
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/DividingLine.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/GreenLine.png b/homescreen/qml/images/MediaPlayer/GreenLine.png
new file mode 100644
index 0000000..0210b83
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/GreenLine.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Music_Active.png b/homescreen/qml/images/MediaPlayer/Music_Active.png
new file mode 100644
index 0000000..36afac7
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Music_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Music_Inactive.png b/homescreen/qml/images/MediaPlayer/Music_Inactive.png
new file mode 100644
index 0000000..9dae353
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Music_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Podcasts_Active.png b/homescreen/qml/images/MediaPlayer/Podcasts_Active.png
new file mode 100644
index 0000000..fd2d2c0
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Podcasts_Active.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Podcasts_Inactive.png b/homescreen/qml/images/MediaPlayer/Podcasts_Inactive.png
new file mode 100644
index 0000000..b76b04c
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Podcasts_Inactive.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Popup_Highlight.png b/homescreen/qml/images/MediaPlayer/Popup_Highlight.png
new file mode 100644
index 0000000..ac63673
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Popup_Highlight.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Popup_PauseIcon.png b/homescreen/qml/images/MediaPlayer/Popup_PauseIcon.png
new file mode 100644
index 0000000..2627add
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Popup_PauseIcon.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Popup_PlayIcon.png b/homescreen/qml/images/MediaPlayer/Popup_PlayIcon.png
new file mode 100644
index 0000000..0483e07
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Popup_PlayIcon.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/Popup_VerticalLine.png b/homescreen/qml/images/MediaPlayer/Popup_VerticalLine.png
new file mode 100644
index 0000000..6a9db00
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/Popup_VerticalLine.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/X.png b/homescreen/qml/images/MediaPlayer/X.png
new file mode 100644
index 0000000..ab392cb
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/X.png
Binary files differ
diff --git a/homescreen/qml/images/MediaPlayer/mediaplayer.qrc b/homescreen/qml/images/MediaPlayer/mediaplayer.qrc
new file mode 100644
index 0000000..1cb17ab
--- /dev/null
+++ b/homescreen/qml/images/MediaPlayer/mediaplayer.qrc
@@ -0,0 +1,37 @@
+<RCC>
+ <qresource prefix="/images/MediaPlayer">
+ <file>AGL_MediaPlayer_AlbumArtwork.png</file>
+ <file>AGL_MediaPlayer_BackArrow.png</file>
+ <file>AGL_MediaPlayer_Bluetooth_Active.png</file>
+ <file>AGL_MediaPlayer_Bluetooth_Inactive.png</file>
+ <file>AGL_MediaPlayer_CD_Active.png</file>
+ <file>AGL_MediaPlayer_CD_Inactive.png</file>
+ <file>AGL_MediaPlayer_DividingLine.png</file>
+ <file>AGL_MediaPlayer_ForwardArrow.png</file>
+ <file>AGL_MediaPlayer_Loop_Active.png</file>
+ <file>AGL_MediaPlayer_Loop_Inactive.png</file>
+ <file>AGL_MediaPlayer_Player_Pause.png</file>
+ <file>AGL_MediaPlayer_Player_Play.png</file>
+ <file>AGL_MediaPlayer_Playlist_Active.png</file>
+ <file>AGL_MediaPlayer_Playlist_Inactive.png</file>
+ <file>AGL_MediaPlayer_PlaylistToggle_Active.png</file>
+ <file>AGL_MediaPlayer_PlaylistToggle_Inactive.png</file>
+ <file>AGL_MediaPlayer_Radio_Active.png</file>
+ <file>AGL_MediaPlayer_Radio_Inactive.png</file>
+ <file>AGL_MediaPlayer_Shuffle_Active.png</file>
+ <file>AGL_MediaPlayer_Shuffle_Inactive.png</file>
+ <file>Albums_Active.png</file>
+ <file>Albums_Inactive.png</file>
+ <file>DividingLine.png</file>
+ <file>GreenLine.png</file>
+ <file>Music_Active.png</file>
+ <file>Music_Inactive.png</file>
+ <file>Podcasts_Active.png</file>
+ <file>Podcasts_Inactive.png</file>
+ <file>Popup_Highlight.png</file>
+ <file>Popup_PauseIcon.png</file>
+ <file>Popup_PlayIcon.png</file>
+ <file>Popup_VerticalLine.png</file>
+ <file>X.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC-01.png
new file mode 100644
index 0000000..f5188f5
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC_Active-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC_Active-01.png
new file mode 100644
index 0000000..abe92d2
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_HVAC_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_Home-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_Home-01.png
new file mode 100644
index 0000000..9aca151
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_Home-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_Home_Active-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_Home_Active-01.png
new file mode 100644
index 0000000..696168f
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_Home_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer-01.png
new file mode 100644
index 0000000..229860c
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer_Active-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer_Active-01.png
new file mode 100644
index 0000000..b0a023c
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_MediaPlayer_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation-01.png
new file mode 100644
index 0000000..34b0671
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation_Active-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation_Active-01.png
new file mode 100644
index 0000000..98e6146
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_Navigation_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_Radio-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_Radio-01.png
new file mode 100644
index 0000000..278bc2a
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_Radio-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/HMI_Shortcut_Radio_Active-01.png b/homescreen/qml/images/Shortcut/HMI_Shortcut_Radio_Active-01.png
new file mode 100644
index 0000000..037e1b5
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/HMI_Shortcut_Radio_Active-01.png
Binary files differ
diff --git a/homescreen/qml/images/Shortcut/shortcut.qrc b/homescreen/qml/images/Shortcut/shortcut.qrc
new file mode 100644
index 0000000..1b4d424
--- /dev/null
+++ b/homescreen/qml/images/Shortcut/shortcut.qrc
@@ -0,0 +1,14 @@
+<RCC>
+ <qresource prefix="/images/Shortcut">
+ <file>HMI_Shortcut_Home_Active-01.png</file>
+ <file>HMI_Shortcut_Home-01.png</file>
+ <file>HMI_Shortcut_HVAC_Active-01.png</file>
+ <file>HMI_Shortcut_HVAC-01.png</file>
+ <file>HMI_Shortcut_MediaPlayer_Active-01.png</file>
+ <file>HMI_Shortcut_MediaPlayer-01.png</file>
+ <file>HMI_Shortcut_Navigation_Active-01.png</file>
+ <file>HMI_Shortcut_Navigation-01.png</file>
+ <file>HMI_Shortcut_Radio_Active-01.png</file>
+ <file>HMI_Shortcut_Radio-01.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/images/Status/HMI_Status_Bluetooth_Inactive-01.png b/homescreen/qml/images/Status/HMI_Status_Bluetooth_Inactive-01.png
new file mode 100644
index 0000000..10bd5a5
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Bluetooth_Inactive-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Bluetooth_On-01.png b/homescreen/qml/images/Status/HMI_Status_Bluetooth_On-01.png
new file mode 100644
index 0000000..1ff96e1
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Bluetooth_On-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Signal_1Bars-01.png b/homescreen/qml/images/Status/HMI_Status_Signal_1Bars-01.png
new file mode 100644
index 0000000..44ef700
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Signal_1Bars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Signal_2Bars-01.png b/homescreen/qml/images/Status/HMI_Status_Signal_2Bars-01.png
new file mode 100644
index 0000000..fe4e776
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Signal_2Bars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Signal_3Bars-01.png b/homescreen/qml/images/Status/HMI_Status_Signal_3Bars-01.png
new file mode 100644
index 0000000..892c6ec
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Signal_3Bars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Signal_4Bars-01.png b/homescreen/qml/images/Status/HMI_Status_Signal_4Bars-01.png
new file mode 100644
index 0000000..f4f033b
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Signal_4Bars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Signal_Full-01.png b/homescreen/qml/images/Status/HMI_Status_Signal_Full-01.png
new file mode 100644
index 0000000..18070b9
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Signal_Full-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Signal_NoBars-01.png b/homescreen/qml/images/Status/HMI_Status_Signal_NoBars-01.png
new file mode 100644
index 0000000..1b77207
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Signal_NoBars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Wifi_1Bar-01.png b/homescreen/qml/images/Status/HMI_Status_Wifi_1Bar-01.png
new file mode 100644
index 0000000..c72461f
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Wifi_1Bar-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Wifi_2Bars-01.png b/homescreen/qml/images/Status/HMI_Status_Wifi_2Bars-01.png
new file mode 100644
index 0000000..448dd36
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Wifi_2Bars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Wifi_3Bars-01.png b/homescreen/qml/images/Status/HMI_Status_Wifi_3Bars-01.png
new file mode 100644
index 0000000..3e407ad
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Wifi_3Bars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Wifi_Full-01.png b/homescreen/qml/images/Status/HMI_Status_Wifi_Full-01.png
new file mode 100644
index 0000000..6f95e97
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Wifi_Full-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/HMI_Status_Wifi_NoBars-01.png b/homescreen/qml/images/Status/HMI_Status_Wifi_NoBars-01.png
new file mode 100644
index 0000000..07f4f09
--- /dev/null
+++ b/homescreen/qml/images/Status/HMI_Status_Wifi_NoBars-01.png
Binary files differ
diff --git a/homescreen/qml/images/Status/status.qrc b/homescreen/qml/images/Status/status.qrc
new file mode 100644
index 0000000..d29c91a
--- /dev/null
+++ b/homescreen/qml/images/Status/status.qrc
@@ -0,0 +1,17 @@
+<RCC>
+ <qresource prefix="/images/Status">
+ <file>HMI_Status_Wifi_NoBars-01.png</file>
+ <file>HMI_Status_Bluetooth_Inactive-01.png</file>
+ <file>HMI_Status_Bluetooth_On-01.png</file>
+ <file>HMI_Status_Signal_1Bars-01.png</file>
+ <file>HMI_Status_Signal_2Bars-01.png</file>
+ <file>HMI_Status_Signal_3Bars-01.png</file>
+ <file>HMI_Status_Signal_4Bars-01.png</file>
+ <file>HMI_Status_Signal_Full-01.png</file>
+ <file>HMI_Status_Signal_NoBars-01.png</file>
+ <file>HMI_Status_Wifi_1Bar-01.png</file>
+ <file>HMI_Status_Wifi_2Bars-01.png</file>
+ <file>HMI_Status_Wifi_3Bars-01.png</file>
+ <file>HMI_Status_Wifi_Full-01.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/images/TopSection_NoText_NoIcons-01.png b/homescreen/qml/images/TopSection_NoText_NoIcons-01.png
new file mode 100644
index 0000000..cf9ec4e
--- /dev/null
+++ b/homescreen/qml/images/TopSection_NoText_NoIcons-01.png
Binary files differ
diff --git a/homescreen/qml/images/Utility_Logo_Background-01.png b/homescreen/qml/images/Utility_Logo_Background-01.png
new file mode 100644
index 0000000..21a602d
--- /dev/null
+++ b/homescreen/qml/images/Utility_Logo_Background-01.png
Binary files differ
diff --git a/homescreen/qml/images/Utility_Logo_Colour-01.png b/homescreen/qml/images/Utility_Logo_Colour-01.png
new file mode 100644
index 0000000..6519a2d
--- /dev/null
+++ b/homescreen/qml/images/Utility_Logo_Colour-01.png
Binary files differ
diff --git a/homescreen/qml/images/Utility_Music_Background-01.png b/homescreen/qml/images/Utility_Music_Background-01.png
new file mode 100644
index 0000000..c3e9f91
--- /dev/null
+++ b/homescreen/qml/images/Utility_Music_Background-01.png
Binary files differ
diff --git a/homescreen/qml/images/Utility_Radio_Background-01.png b/homescreen/qml/images/Utility_Radio_Background-01.png
new file mode 100644
index 0000000..b755843
--- /dev/null
+++ b/homescreen/qml/images/Utility_Radio_Background-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_ALL-01.png b/homescreen/qml/images/Weather/WeatherIcons_ALL-01.png
new file mode 100644
index 0000000..f5f8b19
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_ALL-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_Cloudy-01.png b/homescreen/qml/images/Weather/WeatherIcons_Cloudy-01.png
new file mode 100644
index 0000000..3603a55
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_Cloudy-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_Moon-01.png b/homescreen/qml/images/Weather/WeatherIcons_Moon-01.png
new file mode 100644
index 0000000..8fe1e18
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_Moon-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_PartiallyCloudy-01.png b/homescreen/qml/images/Weather/WeatherIcons_PartiallyCloudy-01.png
new file mode 100644
index 0000000..09cd84f
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_PartiallyCloudy-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_Rain-01.png b/homescreen/qml/images/Weather/WeatherIcons_Rain-01.png
new file mode 100644
index 0000000..125b413
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_Rain-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_Snow-01.png b/homescreen/qml/images/Weather/WeatherIcons_Snow-01.png
new file mode 100644
index 0000000..d0a9520
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_Snow-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_Sun-01.png b/homescreen/qml/images/Weather/WeatherIcons_Sun-01.png
new file mode 100644
index 0000000..ee3a744
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_Sun-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/WeatherIcons_Thunderstorm-01.png b/homescreen/qml/images/Weather/WeatherIcons_Thunderstorm-01.png
new file mode 100644
index 0000000..f6959f4
--- /dev/null
+++ b/homescreen/qml/images/Weather/WeatherIcons_Thunderstorm-01.png
Binary files differ
diff --git a/homescreen/qml/images/Weather/weather.qrc b/homescreen/qml/images/Weather/weather.qrc
new file mode 100644
index 0000000..2668fec
--- /dev/null
+++ b/homescreen/qml/images/Weather/weather.qrc
@@ -0,0 +1,12 @@
+<RCC>
+ <qresource prefix="/images/Weather">
+ <file>WeatherIcons_ALL-01.png</file>
+ <file>WeatherIcons_Cloudy-01.png</file>
+ <file>WeatherIcons_Moon-01.png</file>
+ <file>WeatherIcons_PartiallyCloudy-01.png</file>
+ <file>WeatherIcons_Rain-01.png</file>
+ <file>WeatherIcons_Snow-01.png</file>
+ <file>WeatherIcons_Sun-01.png</file>
+ <file>WeatherIcons_Thunderstorm-01.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/images/images.qrc b/homescreen/qml/images/images.qrc
new file mode 100644
index 0000000..2d8e902
--- /dev/null
+++ b/homescreen/qml/images/images.qrc
@@ -0,0 +1,10 @@
+<RCC>
+ <qresource prefix="/images">
+ <file>TopSection_NoText_NoIcons-01.png</file>
+ <file>Utility_Logo_Background-01.png</file>
+ <file>Utility_Logo_Colour-01.png</file>
+ <file>Utility_Music_Background-01.png</file>
+ <file>Utility_Radio_Background-01.png</file>
+ <file>AGL_HMI_Background_NoCar-01.png</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/qml/main.qml b/homescreen/qml/main.qml
new file mode 100644
index 0000000..11bd9d5
--- /dev/null
+++ b/homescreen/qml/main.qml
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import QtQuick 2.2
+import QtQuick.Window 2.1
+import QtQuick.Layouts 1.1
+import HomeScreen 1.0
+
+Window {
+ visible: true
+ flags: Qt.FramelessWindowHint
+ width: container.width * container.scale
+ height: container.height * container.scale
+ title: 'HomeScreen'
+
+ ApplicationLauncher {
+ id: launcher
+ }
+
+ Image {
+ id: container
+ anchors.centerIn: parent
+ width: 1080
+ height: 1920
+ scale: 1.0
+ source: './images/AGL_HMI_Background_NoCar-01.png'
+
+ ColumnLayout {
+ anchors.fill: parent
+ spacing: 0
+ TopArea {
+ id: topArea
+ Layout.fillWidth: true
+ Layout.preferredHeight: 218
+ }
+
+ Item {
+ id: applicationArea
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 1920 - 218 - 215
+
+ visible: false
+ }
+
+ Home {
+ id: appLauncherAreaLauncher
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 1920 - 218 - 215
+ visible: true
+ }
+
+ MediaArea {
+ id: mediaArea
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 215
+ }
+ }
+ }
+}
diff --git a/homescreen/qml/qml.qrc b/homescreen/qml/qml.qrc
new file mode 100644
index 0000000..c25e266
--- /dev/null
+++ b/homescreen/qml/qml.qrc
@@ -0,0 +1,15 @@
+<RCC>
+ <qresource prefix="/">
+ <file>Home.qml</file>
+ <file>main.qml</file>
+ <file>MediaArea.qml</file>
+ <file>MediaAreaBlank.qml</file>
+ <file>MediaAreaMusic.qml</file>
+ <file>MediaAreaRadio.qml</file>
+ <file>ShortcutArea.qml</file>
+ <file>ShortcutIcon.qml</file>
+ <file>StatusArea.qml</file>
+ <file>TopArea.qml</file>
+ <file>IconItem.qml</file>
+ </qresource>
+</RCC>
diff --git a/homescreen/src/appinfo.cpp b/homescreen/src/appinfo.cpp
new file mode 100644
index 0000000..fd9a585
--- /dev/null
+++ b/homescreen/src/appinfo.cpp
@@ -0,0 +1,176 @@
+/*
+ * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "appinfo.h"
+
+#include <QtCore/QJsonObject>
+
+class AppInfo::Private : public QSharedData
+{
+public:
+ Private();
+ Private(const Private &other);
+
+ QString id;
+ QString version;
+ int width;
+ int height;
+ QString name;
+ QString description;
+ QString shortname;
+ QString author;
+ QString iconPath;
+};
+
+AppInfo::Private::Private()
+ : width(-1)
+ , height(-1)
+{
+}
+
+AppInfo::Private::Private(const Private &other)
+ : QSharedData(other)
+ , id(other.id)
+ , version(other.version)
+ , width(other.width)
+ , height(other.height)
+ , name(other.name)
+ , description(other.description)
+ , shortname(other.shortname)
+ , author(other.author)
+ , iconPath(other.iconPath)
+{
+}
+
+AppInfo::AppInfo()
+ : d(new Private)
+{
+}
+
+AppInfo::AppInfo(const QString &icon, const QString &name, const QString &id)
+ : d(new Private)
+{
+ d->iconPath = icon;
+ d->name = name;
+ d->id = id;
+}
+
+AppInfo::AppInfo(const AppInfo &other)
+ : d(other.d)
+{
+}
+
+AppInfo::~AppInfo()
+{
+}
+
+AppInfo &AppInfo::operator =(const AppInfo &other)
+{
+ d = other.d;
+ return *this;
+}
+
+QString AppInfo::id() const
+{
+ return d->id;
+}
+
+QString AppInfo::version() const
+{
+ return d->version;
+}
+
+int AppInfo::width() const
+{
+ return d->width;
+}
+
+int AppInfo::height() const
+{
+ return d->height;
+}
+
+QString AppInfo::name() const
+{
+ return d->name;
+}
+
+QString AppInfo::description() const
+{
+ return d->description;
+}
+
+QString AppInfo::shortname() const
+{
+ return d->shortname;
+}
+
+QString AppInfo::author() const
+{
+ return d->author;
+}
+
+QString AppInfo::iconPath() const
+{
+ return d->iconPath;
+}
+
+void AppInfo::read(const QJsonObject &json)
+{
+ d->id = json["id"].toString();
+ d->version = json["version"].toString();
+ d->width = json["width"].toInt();
+ d->height = json["height"].toInt();
+ d->name = json["name"].toString();
+ d->description = json["description"].toString();
+ d->shortname = json["shortname"].toString();
+ d->author = json["author"].toString();
+ d->iconPath = json["iconPath"].toString();
+}
+
+QDBusArgument &operator <<(QDBusArgument &argument, const AppInfo &appInfo)
+{
+ argument.beginStructure();
+ argument << appInfo.d->id;
+ argument << appInfo.d->version;
+ argument << appInfo.d->width;
+ argument << appInfo.d->height;
+ argument << appInfo.d->name;
+ argument << appInfo.d->description;
+ argument << appInfo.d->shortname;
+ argument << appInfo.d->author;
+ argument << appInfo.d->iconPath;
+ argument.endStructure();
+
+ return argument;
+}
+
+const QDBusArgument &operator >>(const QDBusArgument &argument, AppInfo &appInfo)
+{
+ argument.beginStructure();
+ argument >> appInfo.d->id;
+ argument >> appInfo.d->version;
+ argument >> appInfo.d->width;
+ argument >> appInfo.d->height;
+ argument >> appInfo.d->name;
+ argument >> appInfo.d->description;
+ argument >> appInfo.d->shortname;
+ argument >> appInfo.d->author;
+ argument >> appInfo.d->iconPath;
+ argument.endStructure();
+ return argument;
+}
diff --git a/homescreen/src/appinfo.h b/homescreen/src/appinfo.h
new file mode 100644
index 0000000..0d98b10
--- /dev/null
+++ b/homescreen/src/appinfo.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef APPINFO_H
+#define APPINFO_H
+
+#include <QtCore/QSharedDataPointer>
+#include <QtDBus/QDBusArgument>
+
+class AppInfo
+{
+ Q_GADGET
+ Q_PROPERTY(QString id READ id)
+ Q_PROPERTY(QString version READ version)
+ Q_PROPERTY(int width READ width)
+ Q_PROPERTY(int height READ height)
+ Q_PROPERTY(QString name READ name)
+ Q_PROPERTY(QString description READ description)
+ Q_PROPERTY(QString shortname READ shortname)
+ Q_PROPERTY(QString author READ author)
+ Q_PROPERTY(QString iconPath READ iconPath)
+public:
+ AppInfo();
+ AppInfo(const QString &icon, const QString &name, const QString &id);
+ AppInfo(const AppInfo &other);
+ virtual ~AppInfo();
+ AppInfo &operator =(const AppInfo &other);
+ void swap(AppInfo &other) { qSwap(d, other.d); }
+
+ QString id() const;
+ QString version() const;
+ int width() const;
+ int height() const;
+ QString name() const;
+ QString description() const;
+ QString shortname() const;
+ QString author() const;
+ QString iconPath() const;
+
+ void read(const QJsonObject &json);
+
+ friend QDBusArgument &operator <<(QDBusArgument &argument, const AppInfo &appInfo);
+ friend const QDBusArgument &operator >>(const QDBusArgument &argument, AppInfo &appInfo);
+
+private:
+ class Private;
+ QSharedDataPointer<Private> d;
+};
+
+Q_DECLARE_SHARED(AppInfo)
+Q_DECLARE_METATYPE(AppInfo)
+Q_DECLARE_METATYPE(QList<AppInfo>)
+
+#endif // APPINFO_H
diff --git a/homescreen/src/applicationlauncher.cpp b/homescreen/src/applicationlauncher.cpp
new file mode 100644
index 0000000..8358107
--- /dev/null
+++ b/homescreen/src/applicationlauncher.cpp
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "applicationlauncher.h"
+
+#include "afm_user_daemon_proxy.h"
+
+#include <QtCore/QDebug>
+
+extern org::AGL::afm::user *afm_user_daemon_proxy;
+
+ApplicationLauncher::ApplicationLauncher(QObject *parent)
+ : QObject(parent)
+{
+}
+
+int ApplicationLauncher::launch(const QString &application)
+{
+ int result = -1;
+ qDebug() << "ApplicationLauncher launch" << application;
+
+ result = afm_user_daemon_proxy->start(application).value().toInt();
+ qDebug() << "ApplicationLauncher pid:" << result;
+
+ if (result > 1) {
+ setCurrent(application);
+ }
+
+ return result;
+}
+
+QString ApplicationLauncher::current() const
+{
+ return m_current;
+}
+
+void ApplicationLauncher::setCurrent(const QString &current)
+{
+ if (m_current == current) return;
+ m_current = current;
+ emit currentChanged(current);
+}
diff --git a/homescreen/src/applicationlauncher.h b/homescreen/src/applicationlauncher.h
new file mode 100644
index 0000000..a31e663
--- /dev/null
+++ b/homescreen/src/applicationlauncher.h
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef APPLICATIONLAUNCHER_H
+#define APPLICATIONLAUNCHER_H
+
+#include <QtCore/QObject>
+
+class ApplicationLauncher : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QString current READ current WRITE setCurrent NOTIFY currentChanged)
+public:
+ explicit ApplicationLauncher(QObject *parent = NULL);
+
+ QString current() const;
+
+signals:
+ void newAppRequestsToBeVisible(int pid);
+ void currentChanged(const QString &current);
+
+public slots:
+ int launch(const QString &application);
+ void setCurrent(const QString &current);
+
+private:
+ QString m_current;
+};
+
+#endif // APPLICATIONLAUNCHER_H
diff --git a/homescreen/src/applicationmodel.cpp b/homescreen/src/applicationmodel.cpp
new file mode 100644
index 0000000..2c51b98
--- /dev/null
+++ b/homescreen/src/applicationmodel.cpp
@@ -0,0 +1,155 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "applicationmodel.h"
+#include "appinfo.h"
+
+#include <QtCore/QDebug>
+
+#include <QtDBus/QDBusInterface>
+#include <QtDBus/QDBusReply>
+
+#include "afm_user_daemon_proxy.h"
+
+extern org::AGL::afm::user *afm_user_daemon_proxy;
+
+class ApplicationModel::Private
+{
+public:
+ Private();
+
+ QList<AppInfo> data;
+};
+
+namespace {
+ QString get_icon_name(QJsonObject const &i)
+ {
+ QString icon = i["id"].toString().split("@").front();
+ if (icon == "hvac" || icon == "poi") {
+ icon = icon.toUpper();
+ } else if (icon == "mediaplayer") {
+// icon = "Multimedia";
+ icon = "MediaPlayer";
+ } else {
+ icon[0] = icon[0].toUpper();
+ }
+ return icon;
+ }
+}
+
+ApplicationModel::Private::Private()
+{
+ QString apps = afm_user_daemon_proxy->runnables(QStringLiteral(""));
+ QJsonDocument japps = QJsonDocument::fromJson(apps.toUtf8());
+ for (auto const &app : japps.array()) {
+ QJsonObject const &jso = app.toObject();
+ auto const name = jso["name"].toString();
+ auto const id = jso["id"].toString();
+ auto const icon = get_icon_name(jso);
+
+ // HomeScreenは除外する
+ if (name != "homescreen-2017") {
+ this->data.append(AppInfo(icon, name, id));
+ }
+
+ qDebug() << "name:" << name << "icon:" << icon << "id:" << id;
+ }
+}
+
+ApplicationModel::ApplicationModel(QObject *parent)
+ : QAbstractListModel(parent)
+ , d(new Private())
+{
+}
+
+ApplicationModel::~ApplicationModel()
+{
+ delete this->d;
+}
+
+int ApplicationModel::rowCount(const QModelIndex &parent) const
+{
+ if (parent.isValid())
+ return 0;
+
+ return this->d->data.count();
+}
+
+QVariant ApplicationModel::data(const QModelIndex &index, int role) const
+{
+ QVariant ret;
+ if (!index.isValid())
+ return ret;
+
+ switch (role) {
+ case Qt::DecorationRole:
+ ret = this->d->data[index.row()].iconPath();
+ break;
+ case Qt::DisplayRole:
+ ret = this->d->data[index.row()].name();
+ break;
+ case Qt::UserRole:
+ ret = this->d->data[index.row()].id();
+ break;
+ default:
+ break;
+ }
+
+ return ret;
+}
+
+QHash<int, QByteArray> ApplicationModel::roleNames() const
+{
+ QHash<int, QByteArray> roles;
+ roles[Qt::DecorationRole] = "icon";
+ roles[Qt::DisplayRole] = "name";
+ roles[Qt::UserRole] = "id";
+ return roles;
+}
+
+QString ApplicationModel::id(int i) const
+{
+ return data(index(i), Qt::UserRole).toString();
+}
+
+QString ApplicationModel::name(int i) const
+{
+ return data(index(i), Qt::DisplayRole).toString();
+}
+
+void ApplicationModel::move(int from, int to)
+{
+ QModelIndex parent;
+ if (to < 0 || to > rowCount()) return;
+ if (from < to) {
+ if (!beginMoveRows(parent, from, from, parent, to + 1)) {
+ qDebug() << from << to << false;
+ return;
+ }
+ d->data.move(from, to);
+ endMoveRows();
+ } else if (from > to) {
+ if (!beginMoveRows(parent, from, from, parent, to)) {
+ qDebug() << from << to << false;
+ return;
+ }
+ d->data.move(from, to);
+ endMoveRows();
+ } else {
+ qDebug() << from << to << false;
+ }
+}
diff --git a/homescreen/src/applicationmodel.h b/homescreen/src/applicationmodel.h
new file mode 100644
index 0000000..64f9c53
--- /dev/null
+++ b/homescreen/src/applicationmodel.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef APPLICATIONMODEL_H
+#define APPLICATIONMODEL_H
+
+#include <QtCore/QAbstractListModel>
+
+class ApplicationModel : public QAbstractListModel
+{
+ Q_OBJECT
+public:
+ explicit ApplicationModel(QObject *parent = nullptr);
+ ~ApplicationModel();
+
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ QHash<int, QByteArray> roleNames() const override;
+ Q_INVOKABLE QString id(int index) const;
+ Q_INVOKABLE QString name(int index) const;
+ Q_INVOKABLE void move(int from, int to);
+
+private:
+ class Private;
+ Private *d;
+};
+
+#endif // APPLICATIONMODEL_H
diff --git a/homescreen/src/homescreencontrolinterface.cpp b/homescreen/src/homescreencontrolinterface.cpp
new file mode 100644
index 0000000..ecbe8e4
--- /dev/null
+++ b/homescreen/src/homescreencontrolinterface.cpp
@@ -0,0 +1,86 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "afm_user_daemon_proxy.h"
+#include "homescreencontrolinterface.h"
+
+extern org::AGL::afm::user *afm_user_daemon_proxy;
+
+HomeScreenControlInterface::HomeScreenControlInterface(QObject *parent) :
+ QObject(parent),
+ mp_homeScreenAdaptor(0)
+{
+ // publish dbus homescreen interface
+ mp_homeScreenAdaptor = new HomescreenAdaptor((QObject*)this);
+
+ QDBusConnection dbus = QDBusConnection::sessionBus();
+ dbus.registerObject("/HomeScreen", this);
+ dbus.registerService("org.agl.homescreen");
+}
+
+QList<int> HomeScreenControlInterface::getAllSurfacesOfProcess(int pid)
+{
+ qDebug("getAllSurfacesOfProcess %d", pid);
+ return newRequestGetAllSurfacesOfProcess(pid);
+}
+
+int HomeScreenControlInterface::getSurfaceStatus(int surfaceId)
+{
+ qDebug("getSurfaceStatus %d", surfaceId);
+ return newRequestGetSurfaceStatus(surfaceId);
+}
+
+void HomeScreenControlInterface::hardKeyPressed(int key)
+{
+ int pid = -1;
+
+ switch (key)
+ {
+ case InputEvent::HARDKEY_NAV:
+ qDebug("hardKeyPressed NAV key pressed!");
+ pid = afm_user_daemon_proxy->start("navigation@0.1").value().toInt();
+ qDebug("pid: %d", pid);
+ emit newRequestsToBeVisibleApp(pid);
+ break;
+ case InputEvent::HARDKEY_MEDIA:
+ qDebug("hardKeyPressed MEDIA key pressed!");
+ pid = afm_user_daemon_proxy->start("media@0.1").value().toInt();
+ qDebug("pid: %d", pid);
+ emit newRequestsToBeVisibleApp(pid);
+ break;
+ default:
+ qDebug("hardKeyPressed %d", key);
+ break;
+ }
+}
+
+void HomeScreenControlInterface::renderSurfaceToArea(int surfaceId, int layoutArea)
+{
+ qDebug("renderSurfaceToArea %d %d", surfaceId, layoutArea);
+ emit newRequestRenderSurfaceToArea(surfaceId, layoutArea);
+}
+
+bool HomeScreenControlInterface::renderAppToAreaAllowed(int appCategory, int layoutArea)
+{
+ qDebug("renderAppToAreaAllowed %d %d", appCategory, layoutArea);
+ return true; //TODO: ask policy manager
+}
+
+void HomeScreenControlInterface::requestSurfaceIdToFullScreen(int surfaceId)
+{
+ qDebug("requestSurfaceIdToFullScreen %d", surfaceId);
+ emit newRequestSurfaceIdToFullScreen(surfaceId);
+}
diff --git a/homescreen/src/homescreencontrolinterface.h b/homescreen/src/homescreencontrolinterface.h
new file mode 100644
index 0000000..b68a2b2
--- /dev/null
+++ b/homescreen/src/homescreencontrolinterface.h
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef HOMESCREENCONTROLINTERFACE_H
+#define HOMESCREENCONTROLINTERFACE_H
+
+#include <QObject>
+#include "include/homescreen.hpp"
+#include "homescreen_adaptor.h"
+
+class HomeScreenControlInterface : public QObject
+{
+ Q_OBJECT
+public:
+ explicit HomeScreenControlInterface(QObject *parent = 0);
+
+signals:
+ void newRequestsToBeVisibleApp(int pid);
+
+ QList<int> newRequestGetAllSurfacesOfProcess(int pid);
+ int newRequestGetSurfaceStatus(int surfaceId);
+ void newRequestRenderSurfaceToArea(int surfaceId, int layoutArea);
+ bool newRequestRenderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
+ void newRequestSurfaceIdToFullScreen(int surfaceId);
+
+//from homescreen_adaptor.h
+public Q_SLOTS: // METHODS
+ QList<int> getAllSurfacesOfProcess(int pid);
+ int getSurfaceStatus(int surfaceId);
+ void hardKeyPressed(int key);
+ void renderSurfaceToArea(int surfaceId, int layoutArea);
+ bool renderAppToAreaAllowed(int appCategory, int layoutArea);
+ void requestSurfaceIdToFullScreen(int surfaceId);
+
+private:
+ HomescreenAdaptor *mp_homeScreenAdaptor;
+};
+
+#endif // HOMESCREENCONTROLINTERFACE_H
diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp
new file mode 100644
index 0000000..2a69034
--- /dev/null
+++ b/homescreen/src/homescreenhandler.cpp
@@ -0,0 +1,79 @@
+#include "homescreenhandler.h"
+#include <functional>
+
+void* HomescreenHandler::myThis = 0;
+
+HomescreenHandler::HomescreenHandler(QObject *parent) :
+ QObject(parent),
+ mp_hs(NULL)
+{
+
+}
+
+HomescreenHandler::~HomescreenHandler()
+{
+ if (mp_hs != NULL) {
+ delete mp_hs;
+ }
+}
+
+void HomescreenHandler::init(int port, const char *token)
+{
+ mp_hs = new LibHomeScreen();
+ mp_hs->init(port, token);
+
+ myThis = this;
+
+// mp_hs->registerCallback(HomescreenHandler::onEv_static, HomescreenHandler::onRep_static);
+// mp_hs->subscribe(LibHomeScreen::event_list[0]);
+// mp_hs->subscribe(LibHomeScreen::event_list[1]);
+
+ mp_hs->registerCallback(nullptr, HomescreenHandler::onRep_static);
+
+ mp_hs->set_event_handler(LibHomeScreen::Event_OnScreenMessage, [this](const char* display_message){
+ qDebug("set_event_handler Event_OnScreenMessage display_message = %s", display_message);
+ });
+
+ mp_hs->set_event_handler(LibHomeScreen::Event_TapShortcut, [this](const char* application_name){
+ if(strcmp(application_name, "Home") == 0){
+ emit this->homeButton();
+ }
+ });
+
+}
+
+void HomescreenHandler::tapShortcut(QString application_name)
+{
+ qDebug("tapShortcut %s", qPrintable(application_name));
+ mp_hs->tapShortcut(application_name.toStdString().c_str());
+}
+
+void HomescreenHandler::onRep_static(struct json_object* reply_contents)
+{
+ static_cast<HomescreenHandler*>(HomescreenHandler::myThis)->onRep(reply_contents);
+}
+
+void HomescreenHandler::onEv_static(const string& event, struct json_object* event_contents)
+{
+ static_cast<HomescreenHandler*>(HomescreenHandler::myThis)->onEv(event, event_contents);
+}
+
+void HomescreenHandler::onRep(struct json_object* reply_contents)
+{
+ const char* str = json_object_to_json_string(reply_contents);
+ qDebug("HomeScreen onReply %s", str);
+}
+
+void HomescreenHandler::onEv(const string& event, struct json_object* event_contents)
+{
+ const char* str = json_object_to_json_string(event_contents);
+ qDebug("HomeScreen onEv %s, contents: %s", event.c_str(), str);
+
+ if (event.compare("homescreen/on_screen_message") == 0) {
+ struct json_object *json_data = json_object_object_get(event_contents, "data");
+ struct json_object *json_display_message = json_object_object_get(json_data, "display_message");
+ const char* display_message = json_object_get_string(json_display_message);
+
+ qDebug("display_message = %s", display_message);
+ }
+}
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h
new file mode 100644
index 0000000..55d14fd
--- /dev/null
+++ b/homescreen/src/homescreenhandler.h
@@ -0,0 +1,34 @@
+#ifndef HOMESCREENHANDLER_H
+#define HOMESCREENHANDLER_H
+
+#include <QObject>
+#include <libhomescreen.hpp>
+#include <string>
+
+using namespace std;
+
+class HomescreenHandler : public QObject
+{
+ Q_OBJECT
+public:
+ explicit HomescreenHandler(QObject *parent = 0);
+ ~HomescreenHandler();
+
+ void init(int port, const char* token);
+
+ Q_INVOKABLE void tapShortcut(QString application_name);
+
+ void onRep(struct json_object* reply_contents);
+ void onEv(const string& event, struct json_object* event_contents);
+
+ static void* myThis;
+ static void onRep_static(struct json_object* reply_contents);
+ static void onEv_static(const string& event, struct json_object* event_contents);
+signals:
+ void homeButton();
+
+private:
+ LibHomeScreen *mp_hs;
+};
+
+#endif // HOMESCREENHANDLER_H
diff --git a/homescreen/src/layouthandler.cpp b/homescreen/src/layouthandler.cpp
new file mode 100644
index 0000000..d16b5e7
--- /dev/null
+++ b/homescreen/src/layouthandler.cpp
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <QDebug>
+#include "layouthandler.h"
+
+#define HOMESCREEN "HomeScreen"
+
+LayoutHandler::LayoutHandler(QObject *parent) :
+ QObject(parent),
+ mp_wm(NULL)
+{
+ isActived = false;
+}
+
+LayoutHandler::~LayoutHandler()
+{
+}
+
+void LayoutHandler::init(int port, const char* token)
+{
+ if (mp_wm != NULL) exit(EXIT_FAILURE);
+
+ mp_wm = new LibWindowmanager();
+
+ if (mp_wm->init(port, token) != 0) {
+ exit(EXIT_FAILURE);
+ }
+
+ mp_wm->requestSurface(HOMESCREEN);
+
+ mp_wm->set_event_handler(LibWindowmanager::Event_Active, [this](const char* label) {
+ this->isActived = true;
+ qDebug("Surface %s got activated!", label);
+ });
+
+ mp_wm->set_event_handler(LibWindowmanager::Event_Inactive, [this](const char* label) {
+ this->isActived = false;
+ qDebug("Surface %s got deactivated!", label);
+ });
+
+ mp_wm->set_event_handler(LibWindowmanager::Event_Visible, [](char const *label) {
+ qDebug("Surface %s got visibled!", label);
+ });
+
+ mp_wm->set_event_handler(LibWindowmanager::Event_Invisible, [](char const *label) {
+ qDebug("Surface %s got invisibled!", label);
+ });
+
+ mp_wm->set_event_handler(LibWindowmanager::Event_SyncDraw, [this](const char* label) {
+ qDebug("Surface %s got syncDraw!", label);
+ qDebug("Try to endDraw Surface %s Start!", label);
+ this->mp_wm->endDraw(HOMESCREEN);
+ qDebug("Try to endDraw Surface %s End!", label);
+ });
+
+ mp_wm->set_event_handler(LibWindowmanager::Event_FlushDraw, [](char const *label) {
+ qDebug("Surface %s got flushDraw!", label);
+ });
+}
+
+void LayoutHandler::activateSurface()
+{
+ mp_wm->activateSurface(HOMESCREEN);
+}
+
+void LayoutHandler::slotActivateSurface()
+{
+ if(isActived)
+ return;
+ qDebug(__FUNCTION__);
+ this->activateSurface();
+}
+
+void LayoutHandler::slotHomeButton()
+{
+ qDebug(__FUNCTION__);
+ this->activateSurface();
+}
diff --git a/homescreen/src/layouthandler.h b/homescreen/src/layouthandler.h
new file mode 100644
index 0000000..4b9e510
--- /dev/null
+++ b/homescreen/src/layouthandler.h
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef LAYOUTHANDLER_H
+#define LAYOUTHANDLER_H
+
+#include <QObject>
+#include <libwindowmanager.h>
+
+class LayoutHandler : public QObject
+{
+ Q_OBJECT
+public:
+ explicit LayoutHandler(QObject *parent = 0);
+ ~LayoutHandler();
+
+ void init(int port, const char* token);
+ void activateSurface();
+
+signals:
+
+public slots:
+ void slotActivateSurface();
+ void slotHomeButton();
+
+private:
+ LibWindowmanager* mp_wm;
+ bool isActived;
+};
+
+#endif // LAYOUTHANDLER_H
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
new file mode 100644
index 0000000..7c78166
--- /dev/null
+++ b/homescreen/src/main.cpp
@@ -0,0 +1,133 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <QGuiApplication>
+#include <QCommandLineParser>
+#include <QtGui/QGuiApplication>
+#include <QtQml/QQmlApplicationEngine>
+#include <QtQml/QQmlContext>
+#include <QtQml/qqml.h>
+#include <QQuickWindow>
+
+#include "layouthandler.h"
+#include "homescreencontrolinterface.h"
+#include "applicationlauncher.h"
+#include "statusbarmodel.h"
+#include "applicationmodel.h"
+#include "appinfo.h"
+#include "afm_user_daemon_proxy.h"
+#include "mastervolume.h"
+#include "homescreenhandler.h"
+
+// XXX: We want this DBus connection to be shared across the different
+// QML objects, is there another way to do this, a nice way, perhaps?
+org::AGL::afm::user *afm_user_daemon_proxy;
+
+namespace {
+
+struct Cleanup {
+ static inline void cleanup(org::AGL::afm::user *p) {
+ delete p;
+ afm_user_daemon_proxy = Q_NULLPTR;
+ }
+};
+
+void noOutput(QtMsgType, const QMessageLogContext &, const QString &)
+{
+}
+
+}
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication a(argc, argv);
+
+ // use launch process
+ QScopedPointer<org::AGL::afm::user, Cleanup> afm_user_daemon_proxy(new org::AGL::afm::user("org.AGL.afm.user",
+ "/org/AGL/afm/user",
+ QDBusConnection::sessionBus(),
+ 0));
+ ::afm_user_daemon_proxy = afm_user_daemon_proxy.data();
+
+ QCoreApplication::setOrganizationDomain("LinuxFoundation");
+ QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
+ QCoreApplication::setApplicationName("HomeScreen");
+ QCoreApplication::setApplicationVersion("0.7.0");
+
+ QCommandLineParser parser;
+ parser.addPositionalArgument("port", a.translate("main", "port for binding"));
+ parser.addPositionalArgument("secret", a.translate("main", "secret for binding"));
+ parser.addHelpOption();
+ parser.addVersionOption();
+ parser.process(a);
+ QStringList positionalArguments = parser.positionalArguments();
+
+ int port = 1700;
+ QString token = "wm";
+
+ if (positionalArguments.length() == 2) {
+ port = positionalArguments.takeFirst().toInt();
+ token = positionalArguments.takeFirst();
+ }
+
+ qDebug("HomeScreen port = %d, token = %s", port, token.toStdString().c_str());
+
+ // import C++ class to QML
+ qmlRegisterType<ApplicationLauncher>("HomeScreen", 1, 0, "ApplicationLauncher");
+ qmlRegisterType<ApplicationModel>("Home", 1, 0, "ApplicationModel");
+ qmlRegisterType<StatusBarModel>("HomeScreen", 1, 0, "StatusBarModel");
+ qmlRegisterType<MasterVolume>("MasterVolume", 1, 0, "MasterVolume");
+
+ // DBus
+ qDBusRegisterMetaType<AppInfo>();
+ qDBusRegisterMetaType<QList<AppInfo> >();
+
+ LayoutHandler* layoutHandler = new LayoutHandler();
+ layoutHandler->init(port, token.toStdString().c_str());
+
+ HomescreenHandler* homescreenHandler = new HomescreenHandler();
+ homescreenHandler->init(port, token.toStdString().c_str());
+
+// HomeScreenControlInterface* hsci = new HomeScreenControlInterface();
+
+// QObject::connect(hsci, SIGNAL(newRequestGetSurfaceStatus(int)), layoutHandler, SLOT(requestGetSurfaceStatus(int)));
+// QObject::connect(hsci, SIGNAL(newRequestsToBeVisibleApp(int)), layoutHandler, SLOT(makeMeVisible(int)));
+// QObject::connect(hsci, SIGNAL(newRequestRenderSurfaceToArea(int, int)), layoutHandler, SLOT(requestRenderSurfaceToArea(int,int)));
+// QObject::connect(hsci, SIGNAL(newRequestRenderSurfaceToAreaAllowed(int, int)), layoutHandler, SLOT(requestRenderSurfaceToAreaAllowed(int,int)));
+// QObject::connect(hsci, SIGNAL(newRequestSurfaceIdToFullScreen(int)), layoutHandler, SLOT(requestSurfaceIdToFullScreen(int)));
+
+ // mail.qml loading
+ QQmlApplicationEngine engine;
+ engine.rootContext()->setContextProperty("layoutHandler", layoutHandler);
+ engine.rootContext()->setContextProperty("homescreenHandler", homescreenHandler);
+ engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+
+ QObject *root = engine.rootObjects().first();
+ QQuickWindow *window = qobject_cast<QQuickWindow *>(root);
+ QObject::connect(window, SIGNAL(frameSwapped()), layoutHandler, SLOT(slotActivateSurface()));
+ QObject::connect(homescreenHandler, SIGNAL(homeButton()), layoutHandler, SLOT(slotHomeButton()));
+
+// layoutHandler->activateSurface();
+
+ // Connect C++ / QML
+// QList<QObject *> mobjs = engine.rootObjects();
+// MasterVolume *mv = mobjs.first()->findChild<MasterVolume *>("mv");
+// engine.rootContext()->setContextProperty("MasterVolume", mv);
+// QObject::connect(mv, SIGNAL(sliderVolumeChanged(int)), client, SLOT(incDecVolume(int)));
+// QObject::connect(client, SIGNAL(volumeExternallyChanged(int)), mv, SLOT(changeExternalVolume(int)));
+
+ return a.exec();
+}
diff --git a/homescreen/src/mastervolume.cpp b/homescreen/src/mastervolume.cpp
new file mode 100644
index 0000000..46985ee
--- /dev/null
+++ b/homescreen/src/mastervolume.cpp
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2017 Konsulko Group
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "mastervolume.h"
+
+#include <QtCore/QDebug>
+
+void MasterVolume::setVolume(pa_volume_t volume)
+{
+ int volume_delta = volume - m_volume;
+ m_volume = volume;
+ emit sliderVolumeChanged(volume_delta);
+
+}
+
+void MasterVolume::changeExternalVolume(int volume)
+{
+ m_volume = volume;
+ emit volumeChanged();
+}
diff --git a/homescreen/src/mastervolume.h b/homescreen/src/mastervolume.h
new file mode 100644
index 0000000..edcdd8c
--- /dev/null
+++ b/homescreen/src/mastervolume.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2017 Konsulko Group
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <QtCore/QObject>
+#include <QQmlEngine>
+#include <QDebug>
+
+#include <pulse/pulseaudio.h>
+
+class MasterVolume : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY (uint32_t volume READ getVolume WRITE setVolume NOTIFY volumeChanged)
+
+ public:
+ MasterVolume(QObject *parent = 0)
+ : QObject(parent), m_volume(32768)
+ {
+ }
+
+ ~MasterVolume() {}
+
+ uint32_t getVolume() const { return m_volume; }
+ void setVolume(pa_volume_t volume);
+
+ public slots:
+ void changeExternalVolume(int volume);
+
+ signals:
+ void volumeChanged(void);
+ void sliderVolumeChanged(int volume_delta);
+ void externalVolumeChanged(uint32_t volume);
+
+ private:
+ uint32_t m_volume;
+};
diff --git a/homescreen/src/popupwidget.cpp b/homescreen/src/popupwidget.cpp
new file mode 100644
index 0000000..1f062f1
--- /dev/null
+++ b/homescreen/src/popupwidget.cpp
@@ -0,0 +1,92 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "popupwidget.h"
+#include "ui_popupwidget.h"
+#include <include/daynightmode.hpp>
+
+PopupWidget::PopupWidget(QWidget *parent) :
+ QWidget(parent),
+ mp_ui(new Ui::PopupWidget),
+ mp_popupAdaptor(0),
+ m_sendComboBoxChoice(false)
+{
+ // publish dbus popup interface
+ mp_popupAdaptor = new PopupAdaptor((QObject*)this);
+ QDBusConnection dbus = QDBusConnection::sessionBus();
+ dbus.registerObject("/Popup", this);
+ dbus.registerService("org.agl.homescreen");
+
+ // no window decoration
+ setWindowFlags(Qt::FramelessWindowHint);
+
+ mp_ui->setupUi(this);
+
+ this->close();
+}
+
+PopupWidget::~PopupWidget()
+{
+ delete mp_popupAdaptor;
+ delete mp_ui;
+}
+
+void PopupWidget::updateColorScheme()
+{
+ QSettings settings;
+ QSettings settings_cs(QApplication::applicationDirPath() +
+ "/colorschemes/" +
+ settings.value("systemsettings/colorscheme", "default").toString() +
+ "/" +
+ QString::number(settings.value("systemsettings/proximityobjectdetected", false).toBool()) +
+ "/" +
+ QString::number(settings.value("systemsettings/daynightmode", SystemDayNight::DAYNIGHTMODE_DAY).toInt()) +
+ ".ini",
+ QSettings::IniFormat);
+
+ mp_ui->widget_popup->setStyleSheet(settings_cs.value(QString("PopupWidget/widget_popup_css")).toString());
+ mp_ui->label_text->setStyleSheet(settings_cs.value(QString("PopupWidget/label_text_css")).toString());
+}
+
+void PopupWidget::showPopup(int /*type*/, const QString &text)
+{
+ m_sendComboBoxChoice = false;
+ mp_ui->comboBox_choice->hide();
+ this->show();
+ this->raise();
+ mp_ui->label_text->setText(text);
+}
+
+void PopupWidget::showPopupComboBox(const QString &text, const QStringList &choices)
+{
+ mp_ui->comboBox_choice->clear();
+ m_sendComboBoxChoice = true;
+ mp_ui->comboBox_choice->addItems(choices);
+ mp_ui->comboBox_choice->show();
+ this->show();
+ this->raise();
+ mp_ui->label_text->setText(text);
+}
+
+void PopupWidget::on_pushButton_OK_clicked()
+{
+ if (m_sendComboBoxChoice)
+ {
+ emit comboBoxResult(mp_ui->comboBox_choice->currentText());
+ m_sendComboBoxChoice = false;
+ }
+ this->close();
+}
diff --git a/homescreen/src/popupwidget.h b/homescreen/src/popupwidget.h
new file mode 100644
index 0000000..7f3aaa8
--- /dev/null
+++ b/homescreen/src/popupwidget.h
@@ -0,0 +1,58 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef POPUPWIDGET_H
+#define POPUPWIDGET_H
+
+#include <QWidget>
+#include <include/popup.hpp>
+#include "popup_adaptor.h"
+
+namespace Ui {
+class PopupWidget;
+}
+
+class PopupWidget : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit PopupWidget(QWidget *parent = 0);
+ ~PopupWidget();
+public slots:
+ void updateColorScheme();
+
+ // from popup_adaptor.h
+public Q_SLOTS: // METHODS
+ void showPopup(int /*type*/, const QString &text);
+ void showPopupComboBox(const QString &text, const QStringList &choices);
+
+private slots:
+ void on_pushButton_OK_clicked();
+
+signals:
+ void comboBoxResult(QString choice);
+
+private:
+ Ui::PopupWidget *mp_ui;
+
+ PopupAdaptor *mp_popupAdaptor;
+ bool m_sendComboBoxChoice;
+ // for showPupupFor LayoutSelection
+ //QList<QPushButton> m_pushButtons;
+};
+
+#endif // POPUPWIDGET_H
diff --git a/homescreen/src/settingswidget.cpp b/homescreen/src/settingswidget.cpp
new file mode 100644
index 0000000..1629bf0
--- /dev/null
+++ b/homescreen/src/settingswidget.cpp
@@ -0,0 +1,103 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "settingswidget.h"
+#include "ui_settingswidget.h"
+#include <QSettings>
+#include <include/daynightmode.hpp>
+
+SettingsWidget::SettingsWidget(QWidget *parent) :
+ QWidget(parent),
+ mp_ui(new Ui::SettingsWidget),
+ mp_translator(0)
+{
+ // no window decoration
+ setWindowFlags(Qt::FramelessWindowHint);
+
+ // multi-language support
+ mp_translator = new QTranslator();
+ mp_translator->load("homescreen_en_US.qm", ":/translations"); // TODO: read from system
+ QApplication::instance()->installTranslator(mp_translator);
+
+ mp_ui->setupUi(this);
+
+ mp_ui->comboBox_language->addItem(QString("English"), QVariant("homescreen_en_US.qm")); // TODO: make this configurable
+ mp_ui->comboBox_language->addItem(QString("Deutsch"), QVariant("homescreen_de_DE.qm"));
+ mp_ui->comboBox_language->addItem(QString("日本語"), QVariant("homescreen_ja_JP.qm"));
+
+ mp_ui->comboBox_colorScheme->addItem(QString("Default"), QVariant("default")); // TODO: make this configurable
+ mp_ui->comboBox_colorScheme->addItem(QString("Demo 1"), QVariant("demo1"));
+ mp_ui->comboBox_colorScheme->addItem(QString("Demo 2"), QVariant("demo2"));
+
+ QSettings settings;
+ mp_ui->comboBox_language->setCurrentIndex(settings.value("systemsettings/language", 0).toInt());
+ mp_ui->comboBox_colorScheme->setCurrentIndex(settings.value("systemsettings/colorschemeindex", 0).toInt());
+}
+
+SettingsWidget::~SettingsWidget()
+{
+ delete mp_translator;
+ delete mp_ui;
+}
+
+void SettingsWidget::updateColorScheme()
+{
+ QSettings settings;
+ QSettings settings_cs(QApplication::applicationDirPath() +
+ "/colorschemes/" +
+ settings.value("systemsettings/colorscheme", "default").toString() +
+ "/" +
+ QString::number(settings.value("systemsettings/proximityobjectdetected", false).toBool()) +
+ "/" +
+ QString::number(settings.value("systemsettings/daynightmode", SystemDayNight::DAYNIGHTMODE_DAY).toInt()) +
+ ".ini",
+ QSettings::IniFormat);
+
+ mp_ui->widget_background->setStyleSheet(settings_cs.value("SettingsWidget/widget_background_css").toString());
+ mp_ui->comboBox_language->setStyleSheet(settings_cs.value("SettingsWidget/comboBox_language_css").toString());
+ mp_ui->comboBox_colorScheme->setStyleSheet(settings_cs.value("SettingsWidget/comboBox_colorScheme_css").toString());
+ mp_ui->widget_settingsIcon->setStyleSheet(settings_cs.value("SettingsWidget/widget_settingsIcon_css").toString());
+}
+
+void SettingsWidget::changeEvent(QEvent* event)
+{
+ if (QEvent::LanguageChange == event->type())
+ {
+ mp_ui->retranslateUi(this);
+ }
+
+ QWidget::changeEvent(event);
+}
+
+void SettingsWidget::on_comboBox_language_currentIndexChanged(const QString &)
+{
+ if (0 != mp_translator)
+ mp_translator->load(mp_ui->comboBox_language->currentData().toString(), ":/translations");
+
+ QSettings settings;
+ settings.setValue("systemsettings/language", mp_ui->comboBox_language->currentIndex());
+}
+
+void SettingsWidget::on_comboBox_colorScheme_currentIndexChanged(const QString &)
+{
+ QSettings settings;
+ settings.setValue("systemsettings/colorscheme", mp_ui->comboBox_colorScheme->currentData().toString());
+ settings.setValue("systemsettings/colorschemeindex", mp_ui->comboBox_colorScheme->currentIndex());
+ // make sure that everything is written to the settings file before continuing
+ settings.sync();
+
+ emit colorSchemeChanged();
+}
diff --git a/homescreen/src/settingswidget.h b/homescreen/src/settingswidget.h
new file mode 100644
index 0000000..75bb383
--- /dev/null
+++ b/homescreen/src/settingswidget.h
@@ -0,0 +1,53 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef SETTINGSWIDGET_H
+#define SETTINGSWIDGET_H
+
+#include <QWidget>
+#include <QTranslator>
+
+namespace Ui {
+class SettingsWidget;
+}
+
+class SettingsWidget : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit SettingsWidget(QWidget *parent = 0);
+ ~SettingsWidget();
+public slots:
+ void updateColorScheme();
+
+protected:
+ // called when the translator loaded a new language set
+ void changeEvent(QEvent* event);
+
+private slots:
+ void on_comboBox_language_currentIndexChanged(const QString &);
+ void on_comboBox_colorScheme_currentIndexChanged(const QString &);
+
+signals:
+ void colorSchemeChanged(void);
+
+private:
+ Ui::SettingsWidget *mp_ui;
+ QTranslator *mp_translator;
+};
+
+#endif // SETTINGSWIDGET_H
diff --git a/homescreen/src/statusbarmodel.cpp b/homescreen/src/statusbarmodel.cpp
new file mode 100644
index 0000000..5438e89
--- /dev/null
+++ b/homescreen/src/statusbarmodel.cpp
@@ -0,0 +1,92 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "statusbarmodel.h"
+#include "statusbarserver.h"
+
+#include <QtDBus/QDBusConnection>
+
+class StatusBarModel::Private
+{
+public:
+ Private(StatusBarModel *parent);
+
+private:
+ StatusBarModel *q;
+public:
+ StatusBarServer server;
+ QString iconList[StatusBarServer::SupportedCount];
+};
+
+StatusBarModel::Private::Private(StatusBarModel *parent)
+ : q(parent)
+{
+ QDBusConnection dbus = QDBusConnection::sessionBus();
+ dbus.registerObject("/StatusBar", &server);
+ dbus.registerService("org.agl.homescreen");
+ connect(&server, &StatusBarServer::statusIconChanged, [&](int placeholderIndex, const QString &icon) {
+ if (placeholderIndex < 0 || StatusBarServer::SupportedCount <= placeholderIndex) return;
+ if (iconList[placeholderIndex] == icon) return;
+ iconList[placeholderIndex] = icon;
+ emit q->dataChanged(q->index(placeholderIndex), q->index(placeholderIndex));
+ });
+ for (int i = 0; i < StatusBarServer::SupportedCount; i++) {
+ iconList[i] = server.getStatusIcon(i);
+ }
+}
+
+StatusBarModel::StatusBarModel(QObject *parent)
+ : QAbstractListModel(parent)
+ , d(new Private(this))
+{
+}
+
+StatusBarModel::~StatusBarModel()
+{
+ delete d;
+}
+
+int StatusBarModel::rowCount(const QModelIndex &parent) const
+{
+ if (parent.isValid())
+ return 0;
+
+ return StatusBarServer::SupportedCount;
+}
+
+QVariant StatusBarModel::data(const QModelIndex &index, int role) const
+{
+ QVariant ret;
+ if (!index.isValid())
+ return ret;
+
+ switch (role) {
+ case Qt::DisplayRole:
+ ret = d->iconList[index.row()];
+ break;
+ default:
+ break;
+ }
+
+ return ret;
+}
+
+QHash<int, QByteArray> StatusBarModel::roleNames() const
+{
+ QHash<int, QByteArray> roles;
+ roles[Qt::DisplayRole] = "icon";
+ return roles;
+}
diff --git a/homescreen/src/statusbarmodel.h b/homescreen/src/statusbarmodel.h
new file mode 100644
index 0000000..8d6a70b
--- /dev/null
+++ b/homescreen/src/statusbarmodel.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef STATUSBARMODEL_H
+#define STATUSBARMODEL_H
+
+#include <QtCore/QAbstractListModel>
+
+class StatusBarModel : public QAbstractListModel
+{
+ Q_OBJECT
+public:
+ explicit StatusBarModel(QObject *parent = NULL);
+ ~StatusBarModel();
+
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ QHash<int, QByteArray> roleNames() const override;
+
+private:
+ class Private;
+ Private *d;
+};
+
+#endif // STATUSBARMODEL_H
diff --git a/homescreen/src/statusbarserver.cpp b/homescreen/src/statusbarserver.cpp
new file mode 100644
index 0000000..805c582
--- /dev/null
+++ b/homescreen/src/statusbarserver.cpp
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "statusbarserver.h"
+#include "statusbar_adaptor.h"
+
+class StatusBarServer::Private
+{
+public:
+ Private(StatusBarServer *parent);
+ QString texts[SupportedCount];
+ QString icons[SupportedCount];
+ StatusbarAdaptor adaptor;
+};
+
+StatusBarServer::Private::Private(StatusBarServer *parent)
+ : adaptor(parent)
+{
+ icons[0] = QStringLiteral("qrc:/images/Status/HMI_Status_Wifi_NoBars-01.png");
+ icons[1] = QStringLiteral("qrc:/images/Status/HMI_Status_Bluetooth_Inactive-01.png");
+ icons[2] = QStringLiteral("qrc:/images/Status/HMI_Status_Signal_NoBars-01.png");
+}
+
+StatusBarServer::StatusBarServer(QObject *parent)
+ : QObject(parent)
+ , d(new Private(this))
+{
+}
+
+StatusBarServer::~StatusBarServer()
+{
+ delete d;
+}
+
+QList<int> StatusBarServer::getAvailablePlaceholders() const
+{
+ QList<int> ret;
+ for (int i = 0; i < SupportedCount; ++i) {
+ ret.append(i);
+ }
+ return ret;
+}
+
+QString StatusBarServer::getStatusIcon(int placeholderIndex) const
+{
+ QString ret;
+ if (-1 < placeholderIndex && placeholderIndex < SupportedCount)
+ ret = d->icons[placeholderIndex];
+ return ret;
+}
+
+void StatusBarServer::setStatusIcon(int placeholderIndex, const QString &icon)
+{
+ if (-1 < placeholderIndex && placeholderIndex < SupportedCount) {
+ if (d->icons[placeholderIndex] == icon) return;
+ d->icons[placeholderIndex] = icon;
+ emit statusIconChanged(placeholderIndex, icon);
+ }
+}
+
+QString StatusBarServer::getStatusText(int placeholderIndex) const
+{
+ QString ret;
+ if (-1 < placeholderIndex && placeholderIndex < SupportedCount) {
+ ret = d->texts[placeholderIndex];
+ }
+ return ret;
+}
+
+void StatusBarServer::setStatusText(int placeholderIndex, const QString &text)
+{
+ if (-1 < placeholderIndex && placeholderIndex < SupportedCount) {
+ if (d->texts[placeholderIndex] == text) return;
+ d->texts[placeholderIndex] = text;
+ emit statusTextChanged(placeholderIndex, text);
+ }
+}
diff --git a/homescreen/src/statusbarserver.h b/homescreen/src/statusbarserver.h
new file mode 100644
index 0000000..a5b89e5
--- /dev/null
+++ b/homescreen/src/statusbarserver.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2016 The Qt Company Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef STATUSBARSERVER_H
+#define STATUSBARSERVER_H
+
+#include <QtCore/QObject>
+
+class StatusBarServer : public QObject
+{
+ Q_OBJECT
+public:
+ enum {
+ SupportedCount = 3,
+ };
+ explicit StatusBarServer(QObject *parent = NULL);
+ ~StatusBarServer();
+
+ Q_INVOKABLE QList<int> getAvailablePlaceholders() const;
+ Q_INVOKABLE QString getStatusIcon(int placeholderIndex) const;
+ Q_INVOKABLE QString getStatusText(int placeholderIndex) const;
+
+public slots:
+ void setStatusIcon(int placeholderIndex, const QString &icon);
+ void setStatusText(int placeholderIndex, const QString &text);
+
+signals:
+ void statusIconChanged(int placeholderIndex, const QString &icon);
+ void statusTextChanged(int placeholderIndex, const QString &text);
+
+private:
+ class Private;
+ Private *d;
+};
+
+#endif // STATUSBARSERVER_H
diff --git a/interfaces/LICENSE b/interfaces/LICENSE
new file mode 100644
index 0000000..31c692a
--- /dev/null
+++ b/interfaces/LICENSE
@@ -0,0 +1,54 @@
+Apache License
+
+Version 2.0, January 2004
+
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
diff --git a/interfaces/README.md b/interfaces/README.md
new file mode 100644
index 0000000..15dfaa9
--- /dev/null
+++ b/interfaces/README.md
@@ -0,0 +1,11 @@
+AGL Home Screen reference implementation
+This lib provides the needed D-Bus interfaces
+
+Build with QtCreator 3.0.1
+
+AGL repo for source code:
+https://gerrit.automotivelinux.org/gerrit/#/admin/projects/staging/HomeScreen
+
+AGL repo for bitbake recipe:
+https://gerrit.automotivelinux.org/gerrit/#/admin/projects/AGL/meta-agl-demo/recipes-demo-hmi/HomeScreen/HomeScreen_?.bb
+
diff --git a/interfaces/afm_user_daemon.xml b/interfaces/afm_user_daemon.xml
new file mode 100644
index 0000000..17b7d63
--- /dev/null
+++ b/interfaces/afm_user_daemon.xml
@@ -0,0 +1,52 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node path="/org/AGL/afm/user">
+ <interface name="org.AGL.afm.user">
+ <method name="runnables">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="detail">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="start">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="once">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="terminate">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="pause">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="resume">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="runners">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="state">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="install">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <method name="uninstall">
+ <arg name="in" type="s" direction="in"/>
+ <arg name="out" type="s" direction="out"/>
+ </method>
+ <signal name="changed">
+ <arg name="out" type="s" direction="out"/>
+ </signal>
+ </interface>
+</node>
diff --git a/interfaces/appframework.xml b/interfaces/appframework.xml
new file mode 100644
index 0000000..f10b3ae
--- /dev/null
+++ b/interfaces/appframework.xml
@@ -0,0 +1,57 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <!--
+ org.agl.appframework:
+ @short_description: The interface of the app framework binder.
+
+ The app framework has to provide some basic functionality like
+ getting a list of applications and start them. In further versions,
+ also pausing or stopping, .
+ -->
+ <interface name="org.agl.appframework">
+ <!--
+ getAvailableApps:
+ @apps: A list of applications that can be launched.
+
+ The application info consists of:
+ string id;
+ string version;
+ int width;
+ int height;
+ string name;
+ string description;
+ string shortname;
+ string author;
+ string iconPath;
+ -->
+ <method name="getAvailableApps">
+ <arg name="apps" type="{ssiisssss}" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;AppInfo&gt;"/>
+ </method>
+ <!--
+ launchApp:
+ @name: The name of the application that shall be launched.
+ @pid: Returns the pid of the process.
+
+ Use the id of the application info to launch the app.
+ -->
+ <method name="launchApp">
+ <arg name="name" type="s" direction="in"/>
+ <arg name="pid" type="i" direction="out"/>
+ </method>
+ </interface>
+</node>
+
diff --git a/interfaces/daynightmode.xml b/interfaces/daynightmode.xml
new file mode 100644
index 0000000..fb77045
--- /dev/null
+++ b/interfaces/daynightmode.xml
@@ -0,0 +1,21 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <interface name="org.agl.daynightmode">
+ <signal name="dayNightMode">
+ <arg name="mode" type="i" direction="out"/>
+ </signal>
+ </interface>
+</node>
diff --git a/interfaces/homescreen.xml b/interfaces/homescreen.xml
new file mode 100644
index 0000000..378ff54
--- /dev/null
+++ b/interfaces/homescreen.xml
@@ -0,0 +1,106 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+<!--
+ org.agl.homescreen:
+ @short_description: A generic interface for the HomeScreen app.
+
+ This interface is a collection of methods from different functional areas to control the HomeScreen app.
+-->
+ <interface name="org.agl.homescreen">
+ <!--
+ hardKeyPressed:
+ @key: The key that was pressed using the inputevent.hpp InputEvent::HardKey type.
+
+ This is used to inject hard keys into the HomeScreen app.
+ -->
+ <method name="hardKeyPressed">
+ <arg name="key" type="i" direction="in"/>
+ </method>
+ <!--
+ getSurfaceStatus:
+ @surfaceId: The given surface.
+ @status: The status can be unknown (-1), visible (0), invisible (1)
+
+ A surface can have three states. It can be visible, then it is shown on the screen.
+ It can be invisible, then it is not shown on the screen. Or the state is unknown.
+ -->
+ <method name="getSurfaceStatus">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="status" type="i" direction="out"/>
+ </method>
+ <!--
+ requestSurfaceIdToFullScreen:
+ @surfaceId: The surface that request to be shown fullscreen.
+
+ This allows an application to set a surface to full screen.
+ -->
+ <method name="requestSurfaceIdToFullScreen">
+ <arg name="surfaceId" type="i" direction="in"/>
+ </method>
+ <!--
+ getAllSurfacesOfProcess:
+ @pid: The PID of the process.
+ @surfaceIds: A list of surfaces that were created by the process.
+
+ The surface IDs can for example be used to assign them to a layout render area.
+ -->
+ <method name="getAllSurfacesOfProcess">
+ <arg name="pid" type="i" direction="in"/>
+ <arg name="surfaceIds" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </method>
+ <!--
+ renderAppToAreaAllowed:
+ @appCategory: The application category that is requested. Use enum AppCategory for this!
+ @layoutArea: The layout area where the application shall be rendered. Find the layoutArea ids in the layout definition!
+ @allowed: Returns true, if the application is allowed to be rendered in the area
+
+ This function can be used to request, if it is allowed to render an application of a specific category
+ in a layout area. The idea is to decide from an application point of view to allocate recources or not.
+ Example: an application will decide to render video based on this call. This call will not change anything, it is only a request.
+ -->
+ <method name="renderAppToAreaAllowed">
+ <arg name="appCategory" type="i" direction="in"/>
+ <arg name="layoutArea" type="i" direction="in"/>
+ <arg name="allowed" type="b" direction="out"/>
+ </method>
+ <!--
+ renderSurfaceToArea:
+ @surfaceId: The surface that is requested.
+ @layoutArea: The layout area where the surface shall be rendered. Find the layoutArea ids in the layout definition!
+
+ This is a special case. In the normal use case, one layout area is always filled completely
+ with the first surface, that the process creates (more precise: the surface with the lowest id).
+ By using this function, an app can request to position a different surface in the layout area.
+ -->
+ <method name="renderSurfaceToArea">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="layoutArea" type="i" direction="in"/>
+ </method>
+ <!--
+ surfaceVisibilityChanged:
+ @surfaceId: The surface that changed.
+ @visible: True, if the surface is visible.
+
+ This is emitted when the visible property of the surfaces changes.
+ -->
+ <signal name="surfaceVisibilityChanged">
+ <arg name="surfaceId" type="i"/>
+ <arg name="visible" type="b"/>
+ </signal>
+ </interface>
+</node>
+
diff --git a/interfaces/include/afm_user_daemon.hpp b/interfaces/include/afm_user_daemon.hpp
new file mode 100644
index 0000000..b9a5321
--- /dev/null
+++ b/interfaces/include/afm_user_daemon.hpp
@@ -0,0 +1,21 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AFM_USER_DAEMON_HPP
+#define AFM_USER_DAEMON_HPP
+
+
+#endif // AFM_USER_DAEMON_HPP
diff --git a/interfaces/include/appframework.hpp b/interfaces/include/appframework.hpp
new file mode 100644
index 0000000..98ec317
--- /dev/null
+++ b/interfaces/include/appframework.hpp
@@ -0,0 +1,66 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef APPFRAMEWORK_HPP
+#define APPFRAMEWORK_HPP
+
+#include <QtCore/QSharedDataPointer>
+#include <QtDBus/QDBusArgument>
+
+class AppInfo
+{
+ Q_GADGET
+ Q_PROPERTY(QString id READ id)
+ Q_PROPERTY(QString version READ version)
+ Q_PROPERTY(int width READ width)
+ Q_PROPERTY(int height READ height)
+ Q_PROPERTY(QString name READ name)
+ Q_PROPERTY(QString description READ description)
+ Q_PROPERTY(QString shortname READ shortname)
+ Q_PROPERTY(QString author READ author)
+ Q_PROPERTY(QString iconPath READ iconPath)
+public:
+ AppInfo();
+ AppInfo(const AppInfo &other);
+ virtual ~AppInfo();
+ AppInfo &operator =(const AppInfo &other);
+ void swap(AppInfo &other) { qSwap(d, other.d); }
+
+ QString id() const;
+ QString version() const;
+ int width() const;
+ int height() const;
+ QString name() const;
+ QString description() const;
+ QString shortname() const;
+ QString author() const;
+ QString iconPath() const;
+
+ void read(const QJsonObject &json);
+
+ friend QDBusArgument &operator <<(QDBusArgument &argument, const AppInfo &appInfo);
+ friend const QDBusArgument &operator >>(const QDBusArgument &argument, AppInfo &appInfo);
+
+private:
+ class Private;
+ QSharedDataPointer<Private> d;
+};
+
+Q_DECLARE_SHARED(AppInfo)
+Q_DECLARE_METATYPE(AppInfo)
+Q_DECLARE_METATYPE(QList<AppInfo>)
+
+#endif // APPFRAMEWORK_HPP
diff --git a/interfaces/include/daynightmode.hpp b/interfaces/include/daynightmode.hpp
new file mode 100644
index 0000000..2d858bb
--- /dev/null
+++ b/interfaces/include/daynightmode.hpp
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef DAYNIGHTMODE_H
+#define DAYNIGHTMODE_H
+
+namespace SystemDayNight {
+ typedef enum DayNightMode
+ {
+ DAYNIGHTMODE_UNDEFINED = -1,
+ DAYNIGHTMODE_DAY = 0,
+ DAYNIGHTMODE_NIGHT = 1
+ } eDayNightMode;
+}
+
+#endif // DAYNIGHTMODE_H
diff --git a/interfaces/include/homescreen.hpp b/interfaces/include/homescreen.hpp
new file mode 100644
index 0000000..728962b
--- /dev/null
+++ b/interfaces/include/homescreen.hpp
@@ -0,0 +1,23 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef HOMESCREEN_H
+#define HOMESCREEN_H
+
+#include "inputevent.hpp"
+
+#endif // HOMESCREEN_H
+
diff --git a/interfaces/include/inputevent.hpp b/interfaces/include/inputevent.hpp
new file mode 100644
index 0000000..8c6bf58
--- /dev/null
+++ b/interfaces/include/inputevent.hpp
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef INPUTEVENT_H
+#define INPUTEVENT_H
+
+namespace InputEvent {
+ typedef enum HardKey
+ {
+ HARDKEY_UNDEFINED,
+ HARDKEY_NAV,
+ HARDKEY_MEDIA
+ } eHardKey;
+}
+
+#endif // INPUTEVENT_H
+
diff --git a/interfaces/include/popup.hpp b/interfaces/include/popup.hpp
new file mode 100644
index 0000000..9caa837
--- /dev/null
+++ b/interfaces/include/popup.hpp
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef POPUP_H
+#define POPUP_H
+
+namespace SystemPopup {
+ typedef enum PopupType
+ {
+ POPUPTYPE_UNDEFINED,
+ POPUPTYPE_INFO,
+ POPUPTYPE_WARNING,
+ POPUPTYPE_ERROR
+ } ePopupType;
+}
+
+#endif // POPUP_H
+
diff --git a/interfaces/include/proximity.hpp b/interfaces/include/proximity.hpp
new file mode 100644
index 0000000..898217f
--- /dev/null
+++ b/interfaces/include/proximity.hpp
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef PROXIMITY_H
+#define PROXIMITY_H
+
+
+#endif // PROXIMITY_H
+
diff --git a/interfaces/include/statusbar.hpp b/interfaces/include/statusbar.hpp
new file mode 100644
index 0000000..ecdcede
--- /dev/null
+++ b/interfaces/include/statusbar.hpp
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef STATUSBAR_H
+#define STATUSBAR_H
+
+
+
+#endif // STATUSBAR_H
diff --git a/interfaces/include/windowmanager.hpp b/interfaces/include/windowmanager.hpp
new file mode 100644
index 0000000..dd268dd
--- /dev/null
+++ b/interfaces/include/windowmanager.hpp
@@ -0,0 +1,82 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef WINDOWMANAGER_H
+#define WINDOWMANAGER_H
+
+#include <QtDBus>
+
+#define WINDOWMANAGER_NO_ERROR 0
+#define WINDOWMANAGER_ERROR_ID_ALREADY_DEFINED 1
+#define WINDOWMANAGER_ERROR_NAME_ALREADY_DEFINED 2
+#define WINDOWMANAGER_ERROR_ID_NOT_FOUND 3
+#define WINDOWMANAGER_ERROR_NAME_NOT_FOUND 4
+#define WINDOWMANAGER_ERROR_ID_IN_USE 5
+
+class SimplePoint
+{
+public:
+ SimplePoint();
+ virtual ~SimplePoint();
+
+ int x;
+ int y;
+
+ friend QDBusArgument &operator <<(QDBusArgument &argument, const SimplePoint &mSimplePoint);
+ friend const QDBusArgument &operator >>(const QDBusArgument &argument, SimplePoint &mSimplePoint);
+};
+
+
+class LayoutArea
+{
+public:
+ LayoutArea();
+ virtual ~LayoutArea();
+
+ int x;
+ int y;
+ int width;
+ int height;
+
+ friend QDBusArgument &operator <<(QDBusArgument &argument, const LayoutArea &mLayoutArea);
+ friend const QDBusArgument &operator >>(const QDBusArgument &argument, LayoutArea &mLayoutArea);
+};
+
+class Layout
+{
+public:
+ Layout();
+ Layout(int layoutId, const QString &layoutName, const QList<LayoutArea> &surfaceAreas);
+ virtual ~Layout();
+
+ int id;
+ QString name;
+ QList<LayoutArea> layoutAreas;
+
+ friend QDBusArgument &operator <<(QDBusArgument &argument, const Layout &mLayout);
+ friend const QDBusArgument &operator >>(const QDBusArgument &argument, Layout &mLayout);
+};
+
+Q_DECLARE_METATYPE(SimplePoint)
+Q_DECLARE_METATYPE(QList<SimplePoint>)
+
+Q_DECLARE_METATYPE(LayoutArea)
+Q_DECLARE_METATYPE(QList<LayoutArea>)
+
+Q_DECLARE_METATYPE(Layout)
+Q_DECLARE_METATYPE(QList<Layout>)
+
+#endif // WINDOWMANAGER_H
diff --git a/interfaces/inputevent.xml b/interfaces/inputevent.xml
new file mode 100644
index 0000000..74c698e
--- /dev/null
+++ b/interfaces/inputevent.xml
@@ -0,0 +1,22 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <interface name="org.agl.inputevent">
+ <method name="hardKeyPressed">
+ <arg name="key" type="i" direction="in"/>
+ </method>
+ </interface>
+</node>
+
diff --git a/interfaces/interfaces.pri b/interfaces/interfaces.pri
new file mode 100644
index 0000000..07b9e6a
--- /dev/null
+++ b/interfaces/interfaces.pri
@@ -0,0 +1,18 @@
+# Copyright (C) 2016 The Qt Company Ltd.
+# 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+INCLUDEPATH += $$PWD $$OUT_PWD/../interfaces/
+
+LIBS += -L$$OUT_PWD/../interfaces/ -linterfaces
diff --git a/interfaces/interfaces.pro b/interfaces/interfaces.pro
new file mode 100644
index 0000000..53324b2
--- /dev/null
+++ b/interfaces/interfaces.pro
@@ -0,0 +1,68 @@
+# 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+TEMPLATE = lib
+TARGET = interfaces
+QT = dbus
+CONFIG += staticlib
+
+HEADERS += \
+ include/appframework.hpp \
+ include/windowmanager.hpp
+
+SOURCES += src/appframework.cpp \
+ src/windowmanager.cpp
+
+XMLSOURCES = \
+ afm_user_daemon.xml \
+ appframework.xml \
+ daynightmode.xml \
+ homescreen.xml \
+ inputevent.xml \
+ popup.xml \
+ proximity.xml \
+ statusbar.xml \
+ windowmanager.xml
+
+gen_adaptor_cpp.input = XMLSOURCES
+gen_adaptor_cpp.commands = \
+ qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -a ${QMAKE_FILE_IN_BASE}_adaptor ${QMAKE_FILE_IN}; \
+ moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.moc
+gen_adaptor_cpp.output = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
+gen_adaptor_cpp.variable_out = SOURCES
+gen_adaptor_cpp.clean = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
+
+gen_proxy_cpp.input = XMLSOURCES
+gen_proxy_cpp.commands = \
+ qdbusxml2cpp -i include/${QMAKE_FILE_IN_BASE}.hpp -m -p ${QMAKE_FILE_IN_BASE}_proxy ${QMAKE_FILE_IN}; \
+ moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_proxy.moc
+gen_proxy_cpp.output = ${QMAKE_FILE_IN_BASE}_proxy.cpp
+gen_proxy_cpp.variable_out = SOURCES
+gen_proxy_cpp.clean = ${QMAKE_FILE_IN_BASE}_proxy.cpp
+
+gen_adaptor_h.input = XMLSOURCES
+gen_adaptor_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
+gen_adaptor_h.depends = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
+gen_adaptor_h.output = ${QMAKE_FILE_IN_BASE}_adaptor.h
+gen_adaptor_h.clean = ${QMAKE_FILE_IN_BASE}_adaptor.h
+
+gen_proxy_h.input = XMLSOURCES
+gen_proxy_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
+gen_proxy_h.depends = ${QMAKE_FILE_IN_BASE}_proxy.cpp
+gen_proxy_h.output = ${QMAKE_FILE_IN_BASE}_proxy.h
+gen_proxy_h.clean = ${QMAKE_FILE_IN_BASE}_proxy.h
+
+QMAKE_EXTRA_COMPILERS += gen_adaptor_cpp gen_proxy_cpp gen_adaptor_h gen_proxy_h
+
+DISTFILES +=
diff --git a/interfaces/popup.xml b/interfaces/popup.xml
new file mode 100644
index 0000000..113ced9
--- /dev/null
+++ b/interfaces/popup.xml
@@ -0,0 +1,26 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <interface name="org.agl.popup">
+ <method name="showPopup">
+ <arg name="type" type="i" direction="in"/>
+ <arg name="text" type="s" direction="in"/>
+ </method>
+ <method name="showPopupComboBox">
+ <arg name="text" type="s" direction="in"/>
+ <arg name="choices" type="as" direction="in"/>
+ </method>
+ </interface>
+</node>
diff --git a/interfaces/proximity.xml b/interfaces/proximity.xml
new file mode 100644
index 0000000..c581254
--- /dev/null
+++ b/interfaces/proximity.xml
@@ -0,0 +1,21 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <interface name="org.agl.proximity">
+ <method name="setObjectDetected">
+ <arg name="detected" type="b" direction="in"/>
+ </method>
+ </interface>
+</node>
diff --git a/interfaces/src/appframework.cpp b/interfaces/src/appframework.cpp
new file mode 100644
index 0000000..7420642
--- /dev/null
+++ b/interfaces/src/appframework.cpp
@@ -0,0 +1,167 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "include/appframework.hpp"
+
+#include <QtCore/QJsonObject>
+
+class AppInfo::Private : public QSharedData
+{
+public:
+ Private();
+ Private(const Private &other);
+
+ QString id;
+ QString version;
+ int width;
+ int height;
+ QString name;
+ QString description;
+ QString shortname;
+ QString author;
+ QString iconPath;
+};
+
+AppInfo::Private::Private()
+ : width(-1)
+ , height(-1)
+{
+}
+
+AppInfo::Private::Private(const Private &other)
+ : QSharedData(other)
+ , id(other.id)
+ , version(other.version)
+ , width(other.width)
+ , height(other.height)
+ , name(other.name)
+ , description(other.description)
+ , shortname(other.shortname)
+ , author(other.author)
+ , iconPath(other.iconPath)
+{
+}
+
+AppInfo::AppInfo()
+ : d(new Private)
+{
+}
+
+AppInfo::AppInfo(const AppInfo &other)
+ : d(other.d)
+{
+}
+
+AppInfo::~AppInfo()
+{
+}
+
+AppInfo &AppInfo::operator =(const AppInfo &other)
+{
+ d = other.d;
+ return *this;
+}
+
+QString AppInfo::id() const
+{
+ return d->id;
+}
+
+QString AppInfo::version() const
+{
+ return d->version;
+}
+
+int AppInfo::width() const
+{
+ return d->width;
+}
+
+int AppInfo::height() const
+{
+ return d->height;
+}
+
+QString AppInfo::name() const
+{
+ return d->name;
+}
+
+QString AppInfo::description() const
+{
+ return d->description;
+}
+
+QString AppInfo::shortname() const
+{
+ return d->shortname;
+}
+
+QString AppInfo::author() const
+{
+ return d->author;
+}
+
+QString AppInfo::iconPath() const
+{
+ return d->iconPath;
+}
+
+void AppInfo::read(const QJsonObject &json)
+{
+ d->id = json["id"].toString();
+ d->version = json["version"].toString();
+ d->width = json["width"].toInt();
+ d->height = json["height"].toInt();
+ d->name = json["name"].toString();
+ d->description = json["description"].toString();
+ d->shortname = json["shortname"].toString();
+ d->author = json["author"].toString();
+ d->iconPath = json["iconPath"].toString();
+}
+
+QDBusArgument &operator <<(QDBusArgument &argument, const AppInfo &appInfo)
+{
+ argument.beginStructure();
+ argument << appInfo.d->id;
+ argument << appInfo.d->version;
+ argument << appInfo.d->width;
+ argument << appInfo.d->height;
+ argument << appInfo.d->name;
+ argument << appInfo.d->description;
+ argument << appInfo.d->shortname;
+ argument << appInfo.d->author;
+ argument << appInfo.d->iconPath;
+ argument.endStructure();
+
+ return argument;
+}
+
+const QDBusArgument &operator >>(const QDBusArgument &argument, AppInfo &appInfo)
+{
+ argument.beginStructure();
+ argument >> appInfo.d->id;
+ argument >> appInfo.d->version;
+ argument >> appInfo.d->width;
+ argument >> appInfo.d->height;
+ argument >> appInfo.d->name;
+ argument >> appInfo.d->description;
+ argument >> appInfo.d->shortname;
+ argument >> appInfo.d->author;
+ argument >> appInfo.d->iconPath;
+ argument.endStructure();
+ return argument;
+}
diff --git a/interfaces/src/windowmanager.cpp b/interfaces/src/windowmanager.cpp
new file mode 100644
index 0000000..0811a57
--- /dev/null
+++ b/interfaces/src/windowmanager.cpp
@@ -0,0 +1,116 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "include/windowmanager.hpp"
+
+SimplePoint::SimplePoint()
+{
+}
+
+SimplePoint::~SimplePoint()
+{
+}
+
+
+LayoutArea::LayoutArea()
+{
+}
+
+LayoutArea::~LayoutArea()
+{
+}
+
+
+Layout::Layout():
+ id(-1),
+ name("N/A"),
+ layoutAreas()
+{
+}
+
+Layout::Layout(int layoutId, const QString &layoutName, const QList<LayoutArea> &surfaceAreas):
+ id(layoutId),
+ name(layoutName),
+ layoutAreas(surfaceAreas)
+{
+}
+
+Layout::~Layout()
+{
+}
+
+QDBusArgument &operator <<(QDBusArgument &argument, const SimplePoint &mSimplePoint)
+{
+ argument.beginStructure();
+ argument << mSimplePoint.x;
+ argument << mSimplePoint.y;
+ argument.endStructure();
+
+ return argument;
+}
+
+const QDBusArgument &operator >>(const QDBusArgument &argument, SimplePoint &mSimplePoint)
+{
+ argument.beginStructure();
+ argument >> mSimplePoint.x;
+ argument >> mSimplePoint.y;
+ argument.endStructure();
+ return argument;
+}
+
+QDBusArgument &operator <<(QDBusArgument &argument, const LayoutArea &mLayoutArea)
+{
+ argument.beginStructure();
+ argument << mLayoutArea.x;
+ argument << mLayoutArea.y;
+ argument << mLayoutArea.width;
+ argument << mLayoutArea.height;
+ argument.endStructure();
+
+ return argument;
+}
+
+const QDBusArgument &operator >>(const QDBusArgument &argument, LayoutArea &mLayoutArea)
+{
+ argument.beginStructure();
+ argument >> mLayoutArea.x;
+ argument >> mLayoutArea.y;
+ argument >> mLayoutArea.width;
+ argument >> mLayoutArea.height;
+ argument.endStructure();
+ return argument;
+}
+
+QDBusArgument &operator <<(QDBusArgument &argument, const Layout &mLayout)
+{
+ argument.beginStructure();
+ argument << mLayout.id;
+ argument << mLayout.name;
+ argument << mLayout.layoutAreas;
+ argument.endStructure();
+
+ return argument;
+}
+
+const QDBusArgument &operator >>(const QDBusArgument &argument, Layout &mLayout)
+{
+ argument.beginStructure();
+ argument >> mLayout.id;
+ argument >> mLayout.name;
+ argument >> mLayout.layoutAreas;
+ argument.endStructure();
+ return argument;
+}
diff --git a/interfaces/statusbar.xml b/interfaces/statusbar.xml
new file mode 100644
index 0000000..ec51be2
--- /dev/null
+++ b/interfaces/statusbar.xml
@@ -0,0 +1,38 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <interface name="org.agl.statusbar">
+ <method name="getAvailablePlaceholders">
+ <arg name="placeholderIndexes" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </method>
+ <method name="getStatusText">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="text" type="s" direction="out"/>
+ </method>
+ <method name="getStatusIcon">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="iconURI" type="s" direction="out"/>
+ </method>
+ <method name="setStatusText">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="text" type="s" direction="in"/>
+ </method>
+ <method name="setStatusIcon">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="iconURI" type="s" direction="in"/>
+ </method>
+ </interface>
+</node>
diff --git a/interfaces/windowmanager.xml b/interfaces/windowmanager.xml
new file mode 100644
index 0000000..f288b32
--- /dev/null
+++ b/interfaces/windowmanager.xml
@@ -0,0 +1,209 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<!-- 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. -->
+<node>
+ <!--
+ org.agl.windowmanager:
+ @short_description: A Layout-based interface for the WindowManager.
+
+ A Layout defines a list of surfaces areas.
+ -->
+ <interface name="org.agl.windowmanager">
+ <!--
+ addLayout:
+ @layoutId: A unique ID that represents this layout. If the ID is already in use WINDOWMANAGER_ERROR_ID_ALREADY_DEFINED will be returned.
+ @layoutName: A user readable string for the layout. If the string is already in use WINDOWMANAGER_ERROR_NAME_ALREADY_DEFINED will be returned.
+ @surfaceAreas: A list of surface areas.
+ @error: WINDOWMANAGER_NO_ERROR or the first error that occurred.
+
+ Add a layout definition to the WindowManayer layout database.
+ The layout database is temoprary and not stored persistently. It has to be recreated by the client after
+ a WindowManager restart.
+ -->
+ <method name="addLayout">
+ <arg name="layoutId" type="i" direction="in"/>
+ <arg name="layoutName" type="s" direction="in"/>
+ <arg name="surfaceAreas" type="a(iiii)" direction="in"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;LayoutArea&gt;"/>
+ <arg name="error" type="i" direction="out"/>
+ </method>
+
+ <!--
+ deleteLayoutById:
+ @layoutId: The ID of the layout to delete.
+ @error: WINDOWMANAGER_NO_ERROR or the first error that occurred.
+
+ Deletes the layout with the given ID. This cannot be the current active layout!
+ -->
+ <method name="deleteLayoutById">
+ <arg name="layoutId" type="i" direction="in"/>
+ <arg name="error" type="i" direction="out"/>
+ </method>
+
+ <!--
+ setLayoutById:
+ @layoutId: The ID of the layout to activate.
+ @error: WINDOWMANAGER_NO_ERROR or the first error that occurred.
+
+ Switch to the layout with the given ID.
+ -->
+ <method name="setLayoutById">
+ <arg name="layoutId" type="i" direction="in"/>
+ <arg name="error" type="i" direction="out"/>
+ </method>
+ <!--
+ setLayoutByName:
+ @layoutName: The name of the layout to activate.
+ @error: WINDOWMANAGER_NO_ERROR or the first error that occurred.
+
+ Switch to the layout with the given name.
+ -->
+ <method name="setLayoutByName">
+ <arg name="layoutName" type="s" direction="in"/>
+ <arg name="error" type="i" direction="out"/>
+ </method>
+
+ <!--
+ getLayoutName:
+ @layoutId: The ID of the requested layout name.
+ @layoutName: The name of the layout with the given ID.
+
+ Request the name of the layout with the given ID. This does not set or activate a layout.
+ It is just returning the name of the given layout.
+ -->
+ <method name="getLayoutName">
+ <arg name="layoutId" type="i" direction="in"/>
+ <arg name="layoutName" type="s" direction="out"/>
+ </method>
+
+ <!--
+ layout:
+ The current active layout with all its information.
+ -->
+ <property>
+ <arg name="layout" type="(isa(iiii))" access="read"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName" value="Layout"/>
+ </property>
+ <!--
+ layoutId:
+ The current active layout id. This property is redundant, since its info is already available
+ in the property layout. But this property is more lightweight.
+ -->
+ <property name="layoutId" type="i" access="read"/>
+ <!--
+ layoutName:
+ The name of the current active layout. This property is redundant, since its info is already available
+ in the property layout. But this property is more lightweight.
+ -->
+ <property name="layoutName" type="s" access="read"/>
+
+ <!--
+ getAllLayouts:
+ @layouts: A list of all layouts.
+
+ Returns a list of all layouts that were added to the WindowManager.
+ -->
+ <method name="getAllLayouts">
+ <arg name="layoutIds" type="a(isa(iiii))" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;Layout&gt;"/>
+ </method>
+
+ <!--
+ getAvailableLayouts:
+ @numberOfAppSurfaces: The ID of the requested layout name.
+ @layoutIds: A list of layouts that offer the exact requested ammount of surface render areas.
+
+ Returns a list of layouts that offer the exact requested ammount of surface render areas.
+ If the list is empty, no layout fits the exact ammount.
+ -->
+
+ <method name="getAvailableLayouts">
+ <arg name="numberOfAppSurfaces" type="i" direction="in"/>
+ <arg name="layoutIds" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </method>
+
+ <!--
+ setSurfaceToLayoutArea:
+ @surfaceId: The ID of the surface that shall be positioned.
+ @layoutAreaId: The ID of the layout area where the surface shall be rendered.
+ @error: WINDOWMANAGER_NO_ERROR or the first error that occurred.
+
+ The surface will be scaled to the size of the layout area.
+ The surface will be made visible with this call.
+ -->
+ <method name="setSurfaceToLayoutArea">
+ <arg name="surfaceId" type="i" direction="in"/>
+ <arg name="layoutAreaId" type="i" direction="in"/>
+ <arg name="error" type="i" direction="out"/>
+ </method>
+
+ <!--
+ getAvailableSurfaces:
+ @surfaceIds: A list of all known surfaceIds except for the surfaces created by the Home Screen app.
+
+ If no surfaces are available, the returned list is empty.
+ -->
+ <method name="getAvailableSurfaces">
+ <arg name="surfaceIds" type="a(i)" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </method>
+
+ <!--
+ surfaceVisibilityChanged:
+ @surfaceId: The surface that changed.
+ @visible: True, if the surface is visible.
+
+ This is emitted when the visible property of the surfaces changes.
+ -->
+ <signal name="surfaceVisibilityChanged">
+ <arg name="surfaceId" type="i"/>
+ <arg name="visible" type="b"/>
+ </signal>
+
+ <!--
+ showLayer:
+ @layer: The ID of the layer to show. POPUP=0, HOMESCREEN_OVERLAY=1, APPS=2, HOMESCREEN=3
+ @pid: The PID of the app to show. (used only when layer is APPS=2)
+
+ Show complete layers.
+ By default, all layers are shown.
+ -->
+ <method name="showLayer">
+ <arg name="layer" type="i" direction="in"/>
+ <arg name="pid" type="i" direction="in"/>
+ </method>
+ <!--
+ showAppLayer:
+ @pid: The PID of the app to show.
+
+ Show layer for application .
+ -->
+ <method name="showAppLayer">
+ <arg name="name" type="s" direction="in"/>
+ <arg name="pid" type="i" direction="in"/>
+ </method>
+ <!--
+ hideLayer:
+ @layer: The ID of the layer to hide. POPUP=0, HOMESCREEN_OVERLAY=1, APPS=2, HOMESCREEN=3
+
+ Hide complete layers.
+ By default, all layers are shown.
+ -->
+ <method name="hideLayer">
+ <arg name="layer" type="i" direction="in"/>
+ </method>
+ </interface>
+</node>
+
diff --git a/package/config.xml b/package/config.xml
new file mode 100644
index 0000000..8e4ec14
--- /dev/null
+++ b/package/config.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<widget xmlns="http://www.w3.org/ns/widgets" id="homescreen-2017" version="0.1">
+ <name>homescreen-2017</name>
+ <icon src="icon.svg"/>
+ <content src="bin/HomeScreen" type="application/vnd.agl.native"/>
+ <description>This is a demo application for homescreen</description>
+ <author>TOYOTA</author>
+ <license>APL 2.0</license>
+ <feature name="urn:AGL:widget:required-api">
+ <param name="homescreen" value="ws" />
+ <param name="windowmanager" value="ws" />
+ </feature>
+ <feature name="urn:AGL:widget:required-permission">
+ <param name="urn:AGL:permission::public:no-htdocs" value="required" />
+ <param name="http://tizen.org/privilege/internal/dbus" value="required" />
+ </feature>
+</widget>
diff --git a/package/icon.svg b/package/icon.svg
new file mode 100644
index 0000000..91661a7
--- /dev/null
+++ b/package/icon.svg
@@ -0,0 +1,279 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+
+<svg
+ xmlns:i="&amp;ns_ai;"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ x="0px"
+ y="0px"
+ viewBox="0 0 320 320"
+ style="enable-background:new 0 0 320 320;"
+ xml:space="preserve"
+ id="svg2"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="icon.svg"><metadata
+ id="metadata1292"><rdf:RDF><cc:Work
+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
+ id="defs1290" /><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="2560"
+ inkscape:window-height="1464"
+ id="namedview1288"
+ showgrid="false"
+ inkscape:zoom="0.7375"
+ inkscape:cx="-572.20339"
+ inkscape:cy="160"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" /><style
+ type="text/css"
+ id="style4">
+ .st0{display:none;}
+ .st1{display:inline;}
+ .st2{opacity:0.4;fill:url(#SVGID_1_);}
+ .st3{fill:url(#SVGID_2_);}
+ .st4{fill:#FFFFFF;}
+ .st5{font-family:'Roboto-Regular';}
+ .st6{font-size:25px;}
+ .st7{letter-spacing:6;}
+ .st8{fill:url(#SVGID_3_);}
+ .st9{fill:url(#SVGID_4_);}
+ .st10{fill:url(#SVGID_5_);}
+ .st11{fill:url(#SVGID_6_);}
+ .st12{fill:url(#SVGID_7_);}
+ .st13{fill:url(#SVGID_8_);}
+ .st14{fill:url(#SVGID_9_);}
+ .st15{fill:url(#SVGID_10_);}
+ .st16{fill:url(#SVGID_11_);}
+ .st17{fill:url(#SVGID_12_);}
+ .st18{fill:url(#SVGID_13_);}
+ .st19{fill:url(#SVGID_14_);}
+ .st20{fill:url(#SVGID_15_);}
+ .st21{fill:url(#SVGID_16_);}
+ .st22{fill:url(#SVGID_17_);}
+ .st23{fill:url(#SVGID_18_);}
+ .st24{opacity:0.29;}
+ .st25{fill:url(#SVGID_19_);}
+ .st26{fill:url(#SVGID_20_);}
+ .st27{fill:url(#SVGID_21_);}
+ .st28{fill:url(#SVGID_22_);}
+ .st29{fill:url(#SVGID_23_);}
+ .st30{fill:url(#SVGID_24_);}
+ .st31{fill:url(#SVGID_25_);}
+ .st32{fill:url(#SVGID_26_);}
+ .st33{fill:url(#SVGID_27_);}
+ .st34{fill:url(#SVGID_28_);}
+ .st35{fill:url(#SVGID_29_);}
+ .st36{fill:url(#SVGID_30_);}
+ .st37{fill:url(#SVGID_31_);}
+ .st38{fill:url(#SVGID_32_);}
+ .st39{fill:url(#SVGID_33_);}
+ .st40{fill:url(#SVGID_34_);}
+ .st41{fill:url(#SVGID_35_);}
+ .st42{fill:url(#SVGID_36_);}
+ .st43{opacity:0.4;fill:url(#SVGID_37_);}
+ .st44{fill:url(#SVGID_38_);}
+ .st45{fill:url(#SVGID_39_);}
+ .st46{fill:url(#SVGID_40_);}
+ .st47{fill:url(#SVGID_41_);}
+ .st48{fill:url(#SVGID_42_);}
+ .st49{fill:url(#SVGID_43_);}
+ .st50{fill:url(#SVGID_44_);}
+ .st51{display:inline;opacity:0.29;}
+ .st52{display:inline;fill:url(#SVGID_45_);}
+ .st53{display:inline;fill:url(#SVGID_46_);}
+ .st54{display:inline;fill:#FFFFFF;}
+ .st55{display:inline;fill:url(#SVGID_47_);}
+ .st56{display:inline;fill:url(#SVGID_48_);}
+ .st57{display:inline;fill:url(#SVGID_49_);}
+ .st58{display:inline;fill:url(#SVGID_50_);}
+ .st59{display:inline;fill:url(#SVGID_51_);}
+ .st60{display:inline;fill:url(#SVGID_52_);}
+ .st61{opacity:0.4;fill:url(#SVGID_53_);}
+ .st62{fill:url(#SVGID_54_);}
+ .st63{fill:url(#SVGID_55_);}
+ .st64{fill:url(#SVGID_56_);}
+ .st65{fill:url(#SVGID_57_);}
+ .st66{fill:url(#SVGID_58_);}
+ .st67{opacity:0.4;fill:url(#SVGID_59_);}
+ .st68{fill:url(#SVGID_60_);}
+ .st69{fill:url(#SVGID_61_);}
+ .st70{fill:url(#SVGID_62_);}
+ .st71{fill:url(#SVGID_63_);}
+ .st72{fill:url(#SVGID_64_);}
+ .st73{fill:url(#SVGID_65_);}
+ .st74{fill:url(#SVGID_66_);}
+ .st75{fill:url(#SVGID_67_);}
+ .st76{fill:url(#SVGID_68_);}
+ .st77{fill:url(#SVGID_69_);}
+ .st78{fill:url(#SVGID_70_);}
+ .st79{fill:url(#SVGID_71_);}
+ .st80{fill:url(#SVGID_72_);}
+ .st81{fill:url(#SVGID_73_);}
+ .st82{fill:url(#SVGID_74_);}
+ .st83{fill:url(#SVGID_75_);}
+ .st84{fill:url(#SVGID_76_);}
+ .st85{fill:url(#SVGID_77_);}
+ .st86{fill:url(#SVGID_78_);}
+ .st87{fill:url(#SVGID_79_);}
+ .st88{fill:url(#SVGID_80_);}
+ .st89{fill:url(#SVGID_81_);}
+ .st90{fill:url(#SVGID_82_);}
+ .st91{fill:url(#SVGID_83_);}
+ .st92{fill:url(#SVGID_84_);}
+ .st93{fill:url(#SVGID_85_);}
+ .st94{fill:url(#SVGID_86_);}
+ .st95{opacity:0.4;fill:url(#SVGID_87_);}
+ .st96{fill:url(#SVGID_88_);}
+ .st97{fill:url(#SVGID_89_);}
+ .st98{fill:url(#SVGID_90_);}
+ .st99{fill:url(#SVGID_91_);}
+ .st100{fill:url(#SVGID_92_);}
+ .st101{fill:url(#SVGID_93_);}
+ .st102{fill:url(#SVGID_94_);}
+ .st103{opacity:0.4;fill:url(#SVGID_95_);}
+ .st104{fill:url(#SVGID_96_);}
+ .st105{fill:url(#SVGID_97_);}
+ .st106{fill:url(#SVGID_98_);}
+ .st107{fill:url(#SVGID_99_);}
+ .st108{fill:url(#SVGID_100_);}
+ .st109{fill:url(#SVGID_101_);}
+ .st110{display:inline;fill:url(#SVGID_102_);}
+ .st111{display:inline;fill:url(#SVGID_103_);}
+ .st112{fill:url(#SVGID_104_);}
+ .st113{fill:url(#SVGID_105_);}
+ .st114{fill:url(#SVGID_106_);}
+ .st115{fill:url(#SVGID_107_);}
+ .st116{fill:url(#SVGID_108_);}
+ .st117{opacity:0.4;fill:url(#SVGID_109_);}
+ .st118{fill:url(#SVGID_110_);}
+ .st119{fill:url(#SVGID_111_);}
+ .st120{fill:url(#SVGID_112_);}
+ .st121{fill:url(#SVGID_113_);}
+ .st122{fill:url(#SVGID_114_);}
+ .st123{opacity:0.4;fill:url(#SVGID_115_);}
+ .st124{fill:url(#SVGID_116_);}
+ .st125{fill:url(#SVGID_117_);}
+ .st126{fill:url(#SVGID_118_);}
+ .st127{display:inline;fill:url(#SVGID_119_);}
+ .st128{display:inline;fill:url(#SVGID_120_);}
+ .st129{fill:url(#SVGID_121_);}
+ .st130{fill:url(#SVGID_122_);}
+</style><switch
+ id="switch6"><g
+ i:extraneous="self"
+ id="g8"><g
+ id="Multimedia_Inactive_copy"><circle
+ class="st24"
+ cx="159.7"
+ cy="133.4"
+ r="101.9"
+ id="circle884" /><linearGradient
+ id="SVGID_91_"
+ gradientUnits="userSpaceOnUse"
+ x1="115.9317"
+ y1="254.1836"
+ x2="256.3852"
+ y2="-133.5267"><stop
+ offset="0"
+ style="stop-color:#8BC53F"
+ id="stop887" /><stop
+ offset="2.015080e-02"
+ style="stop-color:#7CCB56;stop-opacity:0.9678"
+ id="stop889" /><stop
+ offset="6.089833e-02"
+ style="stop-color:#62D67D;stop-opacity:0.9028"
+ id="stop891" /><stop
+ offset="0.1057"
+ style="stop-color:#4BDFA0;stop-opacity:0.8312"
+ id="stop893" /><stop
+ offset="0.1543"
+ style="stop-color:#38E7BE;stop-opacity:0.7537"
+ id="stop895" /><stop
+ offset="0.2077"
+ style="stop-color:#28EED6;stop-opacity:0.6684"
+ id="stop897" /><stop
+ offset="0.2681"
+ style="stop-color:#1CF3E8;stop-opacity:0.572"
+ id="stop899" /><stop
+ offset="0.3394"
+ style="stop-color:#13F6F5;stop-opacity:0.4581"
+ id="stop901" /><stop
+ offset="0.4323"
+ style="stop-color:#0EF8FD;stop-opacity:0.3098"
+ id="stop903" /><stop
+ offset="0.6264"
+ style="stop-color:#0DF9FF;stop-opacity:0"
+ id="stop905" /></linearGradient><circle
+ class="st99"
+ cx="159.7"
+ cy="133.4"
+ r="101.9"
+ id="circle907" /><linearGradient
+ id="SVGID_92_"
+ gradientUnits="userSpaceOnUse"
+ x1="4.0481"
+ y1="287.9492"
+ x2="320.4859"
+ y2="-15.4029"
+ gradientTransform="matrix(1 5.464556e-03 -5.464556e-03 1 -2.0192 -3.0212)"><stop
+ offset="0"
+ style="stop-color:#59FF7F"
+ id="stop910" /><stop
+ offset="1"
+ style="stop-color:#6BFBFF"
+ id="stop912" /></linearGradient><path
+ class="st100"
+ d="M160,238.8c-0.2,0-0.4,0-0.6,0c-58-0.3-104.9-47.7-104.6-105.7C55.2,75.3,102.3,28.5,160,28.5 c0.2,0,0.4,0,0.6,0c58,0.3,104.9,47.7,104.6,105.7l0,0C264.8,192,217.7,238.8,160,238.8z M160,32.2 c-55.7,0-101.2,45.2-101.5,100.9c-0.3,55.9,45,101.7,100.9,102c0.2,0,0.4,0,0.6,0c55.7,0,101.2-45.2,101.5-100.9 c0.3-55.9-45-101.7-100.9-102C160.4,32.2,160.2,32.2,160,32.2z"
+ id="path914" /><g
+ id="g916"><text
+ transform="matrix(1 0 0 1 53.5841 284.7119)"
+ class="st4 st5 st6 st7"
+ id="text918">MULTIMEDIA</text>
+<linearGradient
+ id="SVGID_93_"
+ gradientUnits="userSpaceOnUse"
+ x1="140.5445"
+ y1="202.2363"
+ x2="186.8444"
+ y2="68.7049"><stop
+ offset="0"
+ style="stop-color:#59FF7F"
+ id="stop921" /><stop
+ offset="1"
+ style="stop-color:#6BFBFF"
+ id="stop923" /></linearGradient><path
+ class="st101"
+ d="M114.5,190.9c-6.4,0-12-2.6-14.8-7.5c-2.9-4.9-5.4-14.5,9.6-23.2c4.8-2.8,17.1-3.9,20.8-4l0.1,3.6 c-4.6,0.1-15.5,1.4-19.1,3.5c-9.4,5.4-12.1,11.5-8.3,18.3c3.8,6.6,14.6,7.6,24,2.2c6.6-3.8,10.6-10.5,10.7-17.9l-0.1-0.7V95.4 l71.9-14.2l0.1,71.3c0,6.7-3.3,16.4-12.5,21.8c-11.1,6.4-24.1,4.8-28.9-3.5c-2.9-4.9-5.4-14.5,9.6-23.2 c4.4-2.5,14.4-3.8,18.8-3.9l0.1,3.6c-4.2,0.1-13.5,1.4-17.1,3.5c-6.4,3.7-13.1,9.9-8.3,18.3c3.8,6.6,14.6,7.6,24,2.2 c7.9-4.5,10.7-12.8,10.7-18.5l-0.1-0.8V85.6l-64.7,12.7v66.8l0.1,0.7c0,8.7-4.7,16.6-12.5,21.1 C123.9,189.6,119,190.9,114.5,190.9z"
+ id="path925" /><linearGradient
+ id="SVGID_94_"
+ gradientUnits="userSpaceOnUse"
+ x1="145.3286"
+ y1="203.8951"
+ x2="191.6285"
+ y2="70.3637"><stop
+ offset="0"
+ style="stop-color:#59FF7F"
+ id="stop928" /><stop
+ offset="1"
+ style="stop-color:#6BFBFF"
+ id="stop930" /></linearGradient><polygon
+ class="st102"
+ points="155.6,123.3 154.8,119.8 195.5,110.2 196.3,113.7 "
+ id="polygon932" /></g></g></g></switch></svg> \ No newline at end of file
diff --git a/package/package.pro b/package/package.pro
new file mode 100644
index 0000000..9203104
--- /dev/null
+++ b/package/package.pro
@@ -0,0 +1,18 @@
+DISTFILES = icon.svg config.xml
+
+copy_icon.target = $$OUT_PWD/root/icon.svg
+copy_icon.depends = $$_PRO_FILE_PWD_/icon.svg
+copy_icon.commands = $(COPY_FILE) \"$$replace(copy_icon.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_icon.target, /, $$QMAKE_DIR_SEP)\"
+QMAKE_EXTRA_TARGETS += copy_icon
+PRE_TARGETDEPS += $$copy_icon.target
+
+copy_config.target = $$OUT_PWD/root/config.xml
+copy_config.depends = $$_PRO_FILE_PWD_/config.xml
+copy_config.commands = $(COPY_FILE) \"$$replace(copy_config.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_config.target, /, $$QMAKE_DIR_SEP)\"
+QMAKE_EXTRA_TARGETS += copy_config
+PRE_TARGETDEPS += $$copy_config.target
+
+wgt.target = package
+wgt.commands = wgtpkg-pack -f -o homescreen-2017.wgt root
+
+QMAKE_EXTRA_TARGETS += wgt
diff --git a/test/commandlinetests.txt b/test/commandlinetests.txt
new file mode 100644
index 0000000..428b1ca
--- /dev/null
+++ b/test/commandlinetests.txt
@@ -0,0 +1,150 @@
+Command line tests
+
+Precondition for all test is, that the D-Bus session is launched:
+$export `dbus-launch`
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.daynightmode
+
+Signal:
+ <signal name="dayNightMode">
+ <arg name="mode" type="i" direction="out"/>
+ </signal>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+no command line test available right now
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.homescreen
+
+Method:
+ <method name="hardKeyPressed">
+ <arg name="key" type="i" direction="in"/> <!-- using the inputevent.hpp InputEvent::HardKey type -->
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.hardKeyPressed int32:0
+
+Method:
+ <method name="setToFullscreen">
+ <arg name="pid" type="i" direction="in"/>
+ </method>
+
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.setToFullscreen int32:0
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.popup
+
+Method:
+ <method name="showPopup">
+ <arg name="type" type="i" direction="in"/>
+ <arg name="text" type="s" direction="in"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST"
+
+Method:
+ <method name="showPopupComboBox">
+ <arg name="text" type="s" direction="in"/>
+ <arg name="choices" type="as" direction="in"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopupComboBox string:"TEST" array:string:"test1","test2"
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.proximity
+
+Method:
+ <method name="setObjectDetected">
+ <arg name="detected" type="b" direction="in"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --dest=org.agl.homescreen /Proximity org.agl.proximity.setObjectDetected boolean:true
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.statusbar
+
+Method:
+ <method name="getAvailablePlaceholders">
+ <arg name="placeholderIndexes" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders
+
+Method:
+ <method name="getStatusText">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="text" type="s" direction="out"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1
+
+Method:
+ <method name="getStatusIcon">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="iconURI" type="s" direction="out"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1
+
+Method:
+ <method name="setStatusText">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="text" type="s" direction="in"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"Test1"
+
+Method:
+ <method name="setStatusIcon">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="iconURI" type="s" direction="in"/>
+ </method>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusIcon int32:1 string:"<path to png file here>"
+
+