summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-06-24Remove windowmanager depsMarius Vlad1-6/+7
Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Iad417b60fc3b2c4639396d5ed5aaddbd7018e10e
2019-02-12Clean up of Mixer main.cppsupriyasirbi1-106/+9
This commit is for clean up of Mixer main.cpp to remove the dependencies of homescreen and qtwindowmanager. It adds AGLExtras to the list of dependencies and simplifies main.cpp. Bug-AGL: SPEC-2002 Change-Id: I18f974223e4bf45876e5dac045105597f55dd7c6 Signed-off-by: supriyasirbi <supriya.sirbi@gmail.com>
2018-12-20Use Event_ShowWindow instead of Event_TapShortcutguppy_6.99.3guppy/6.99.36.99.3wang_zhiqiang1-3/+3
The interface of homescreen service will be changed then, use Event_ShowWindow instead of Event_TapShortcut. Related changes: agl-service-homescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17929/ libhomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17931/ libqthomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17933/ BUG-AGL: SPEC-1931 Change-Id: I939d25ea1ca3f78cc18d3c8b4d119c76a77a1ef6 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2018-12-19Reworked the way qml create slidersLoïc Collignon1-3/+6
Use the qml MVC to populate a ListView with components based on a template VolumeSlider. Should now handle potential disconnections, volume changes by third-party and also fix the issue where sliders are set to 0 at startup. Change-Id: I2961d5a1584a121c473ece253faa90a747c64445 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-13Handle the volume_changed eventLoïc Collignon1-20/+21
4A's High Level API now raises event when volume of a role is changed. This handles it by subscribing to the event and update the corresponding slider. Bug: SPEC-2054 Change-Id: I137eaa461f0baa9206ee714c91e3ac998b9b2bf2 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-11-15Modify graphic roleKazumasa Mitsunari1-8/+8
Window Manager set role name as lower_case, then change role as lower_case. Bug-AGL: SPEC-1754 Change-Id: Iac8d9dce808e4683d2541d1ef1ec6e14202c363a Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
2018-10-30delete application_name check in tap_shortcut eventwang_zhiqiang1-10/+2
because of now homescreen-service emit event to one application, delete the applciation_name check. Bug-AGL: SPEC-1764 Change-Id: I0c02ae85a718dadf228033e5861c6abf62788a82 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2018-08-24App's name is in lowercase on TapShortcut eventguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4Loïc Collignon1-1/+1
Even if the requested surface is 'Mixer', it is 'mixer' in the TapShortcut's event argument. So that it doesn't call the activateWindow to restore it-self if the comparison is not case insensitive. Bug: SPEC-1653 Change-Id: I086a7bbc92fa1b877aec02c445299015539d6b89 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-08-24Revert "Use appid between homescreen-service and apps"Tadao Tanikawa1-2/+10
This reverts commit 6495b735f39eb8b219deb5d711307869c279e3be. Bug-AGL: SPEC-1685 Change-Id: If24e4416f9a90dcd53102ee721f00ce193c4fbda Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-08-06Use appid between homescreen-service and appsflounder_5.99.3flounder/5.99.35.99.3zheng_wenlong1-10/+2
Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Change-Id: I79802e624cb420ae400ba8348ad631a11d4157e2 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2018-08-02Improve output of multiple screen resolutionsandbox/ruke47/flounder_RPi3Tadao Tanikawa1-0/+2
To improve output on various monitor with various resolution, use scale_factor from WM to fit various screen resolution. Change-Id: I5ef4d54712e405744a9c9d2a369fbb2d0d31716d Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-07-10WIP better handling for slider creationLoïc Collignon1-1/+3
The creation of sliders is now using a template instead of a string computation. Also fixed some indentation and trailing spaces issues. Change-Id: Ieb1d9f953d61fa1bac46bf1ab6904e67d09a3fa9 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-07-10Allow to build and run on native linux hostLoïc Collignon1-5/+26
Make libhomescreen and libmanager dependencies optional so that you can build, run and debug on a native linux host, to allow faster development. Change-Id: Ice0b7e196e9a88dc7f0f8e9894eb9091c6ba566e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-27Merge 'eel' into 'master'Loïc Collignon1-23/+4
Replace content from 'master' by content from 'eel' as it's the new version based on 4a on which new development will be done. Change-Id: I2966af7dcee59701ff3a344487c008d7e65e68ed Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2017-12-21mixer: add clearer pulseaudio control namingMatt Ranostay1-2/+2
Use the role name for the control name in the Mixer UI instead of overall vague control description Bug-AGL: SPEC-1196 Change-Id: I34b5c3378fa3bca7464067490907f9ae0adb6364 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-11-14Porting to new HMI Frameworkeel_4.99.3eel/4.99.34.99.3Scott Murray1-25/+78
Changes following guidelines given in "Kickstart: New HMI Framework" document at: https://wiki.automotivelinux.org/_media/kickstart_apps_migration_guide.pdf Change-Id: Iacfb8ad1a6851d0ca9bbcc1815ef5f0822b3836c Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2017-04-21Add support for handling external sink/source volume change eventsMatt Porter1-0/+2
Subscribes to PA volume change events, updating the local cached volume levels, and propagating the change to the UI. This allows changes to sink/source volumes levels from the command line (pactl) or a master volume control to be reflected in the mixer UI controls. Change-Id: I1d570dffeab9fcf4b6ba51e4792852b44a6149ca AGL-Bug: SPEC-549 Signed-off-by: Matt Porter <mporter@konsulko.com>
2017-04-20Rewrite PulseAudio backend into a threaded classMatt Porter1-2/+23
Converts the Mixer PulseAudio backend from a C library to a PaClient class which runs in its own QThread. This faciliates isolation of PaControlModel updates to the QML thread where they belong. It also provides the foundation for runtime updates of the model and reuse of the PaClient class in other apps. AGL-Bug: SPEC-548 Change-Id: I13c4c220fde2fd4bc4aea2e04f39152a963b5fa0 Signed-off-by: Matt Porter <mporter@konsulko.com>
2016-12-21AGL-style PulseAudio mixer appMatt Porter1-0/+56
Change-Id: I566050a1a8f241f140523df236de81ab951c1394 Signed-off-by: Matt Porter <mporter@konsulko.com>