From aee1b69e8e207081a3d8b2670980671a9fbc78b8 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Wed, 13 Feb 2019 18:10:20 +0800 Subject: Add onscreenapp Onscreenapp is a qt application for showing onscreens. Applications can show/hide onscreen by calling homescreen-service's showWindow/hideWindow verb. Applications also can customize onscreen's title,type, display contents and buttons. Some images about onscreen pattern had uploaded in JIRA SPEC-1967. Bug-AGL: SPEC-1967 Change-Id: I421193f7d089584a26db629be27414d050a74337 Signed-off-by: wang_zhiqiang --- doc/parts/showOnscreen.svg | 84 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 doc/parts/showOnscreen.svg (limited to 'doc/parts') diff --git a/doc/parts/showOnscreen.svg b/doc/parts/showOnscreen.svg new file mode 100644 index 0000000..6f4d3ea --- /dev/null +++ b/doc/parts/showOnscreen.svg @@ -0,0 +1,84 @@ +show/hide onscreen phaseuseruserhomescreen-servicehomescreen-serviceAppApponscreenapponscreenappwindowmanagerwindowmanagershow onscreenthe operation request onscreenshowWindow(){"application_id": "onscreenapp","parameter": {"title": "onscreen title","type": "critical,exclamation,question,information","contents": "message contents","buttons": ["button_name1", "button_name2", "button_name3"]}}push showWindow event{"application_id": "onscreenapp","parameter": {"title": "onscreen title","type": "critical,exclamation,question,information","contents": "message contents","buttons": ["button_name1", "button_name2", "button_name3"],"replyto":"caller application id"}}get and save parameteractivateWindow("onscreeapp", "on_screen")alt[can show]push syncDraw eventendDraw("onscreeapp")show onscreen as request pattern[can't show]do nothinghide onscreentap onscreen's buttondeactivateWindow("onscreenapp");hide windowreplyShowWindow(){"application_id":"the application who called onscreenapp","parameter": {"buttonName": "VOLUME_UP"}}push replyShowWindow eventcall reply function \ No newline at end of file -- cgit 1.2.3-korg