change qml folder to
[apps/onscreenapp.git] / doc / parts / show_hide_onscreen.pu
1 @startuml
2
3 title Show/Hide Onscreenapp Sequence
4
5 actor User
6 entity HomeScreen_Service as HSS
7 entity App
8 entity Onscreenapp
9 entity WindowManagere as WM
10
11 == show Onscreenapp ==
12 User->App: display Onscreenapp by user operation
13 App->HSS: subscribe replyShowWindow event
14 App->HSS: call showWindow()
15 note right
16 { "application_id": "onscreenapp", 
17   "parameter": { 
18     "file": "qml file path", 
19     "data": {...}
20   }
21 }
22 end note
23 HSS->HSS: get app's id
24 HSS->Onscreenapp: push showWindow event
25 note right
26 { "application_id": "onscreenapp", 
27   "parameter": {
28     "file": "qml file path", 
29     "data": {...},
30     "replyid": "app's id"
31  }
32 }
33 end note
34 Onscreenapp->WM: activateWindow("on_screen.app")
35
36 alt display able
37 WM->Onscreenapp: SyncDraw
38 Onscreenapp->Onscreenapp: load app's qml
39 Onscreenapp->WM: EndDraw("on_screen.app")
40 WM->Onscreenapp: VISIBLE("on_screen.app")
41
42 else display disable
43 rnote over Onscreenapp
44 do nothing
45 end rnote
46 end
47
48 == hide Onscreenapp ==
49 alt touch Onscreenapp's button
50 User->Onscreenapp: touch Onscreenapp's button
51 Onscreenapp->WM: deactivateWindow("on_screen.app")
52 Onscreenapp->Onscreenapp: unload qml
53 Onscreenapp->HSS: call replyShowWindow()
54 note right
55 { "application_id": "app's id", 
56   "parameter": {
57     "method": "Buttons.ButtonPress", 
58     "buttonName": "pressed button name", 
59     "buttonPressMode": "Short"
60  }
61 }
62 end note
63 WM->Onscreenapp: INVISIBLE("on_screen.app")
64 HSS->App: push replyShowWindow event
65 App->App: call button function
66
67 else hide by App
68
69 App->HSS: call hideWindow("onscreenapp")
70 note right
71 { "application_id": "onscreenapp"}
72 end note
73 HSS->Onscreenapp: push hideWindow event
74 Onscreenapp->Onscreenapp: unload qml
75 Onscreenapp->WM: deactivateWindow("on_screen.app")
76 WM->Onscreenapp: INVISIBLE("on_screen.app")
77
78 end
79
80 @enduml