1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>HomeScreenBinding: src/hs-clientmanager.cpp Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">HomeScreenBinding
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main Page</span></a></li>
<li><a href="../../annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../files.html"><span>File List</span></a></li>
<li><a href="../../globals.html"><span>File Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">hs-clientmanager.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="../../dd/d30/hs-clientmanager_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2018 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="../../de/dca/hs-clientmanager_8h.html">hs-clientmanager.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="../../d6/dff/src_2hmi-debug_8h.html">hmi-debug.h</a>"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="../../dd/d30/hs-clientmanager_8cpp.html#a8bbab9002543614eacdc7a319d13a476"> 20</a></span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../dd/d30/hs-clientmanager_8cpp.html#a8bbab9002543614eacdc7a319d13a476">_homescreen</a>[] = <span class="stringliteral">"homescreen"</span>;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html">HS_ClientManager</a>* HS_ClientManager::me = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="../../dd/d30/hs-clientmanager_8cpp.html#a2e9d0e1086eba0a016056dc43bc90a73"> 24</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../dd/d30/hs-clientmanager_8cpp.html#a2e9d0e1086eba0a016056dc43bc90a73">cbRemoveClientCtxt</a>(<span class="keywordtype">void</span> *data)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#ad86c1fea7d107d52cbf0466fb7a2658b">HS_ClientManager::instance</a>()-><a class="code" href="../../d2/d8e/class_h_s___client_manager.html#adc23f8b3f5cc06eeab39fb24098af3e2">removeClientCtxt</a>(data);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> }</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#adac35e476e559cc89bc39363525268bf"> 39</a></span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#adac35e476e559cc89bc39363525268bf">HS_ClientManager::HS_ClientManager</a>()</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#ad86c1fea7d107d52cbf0466fb7a2658b"> 53</a></span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html">HS_ClientManager</a>* <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#ad86c1fea7d107d52cbf0466fb7a2658b">HS_ClientManager::instance</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span>(me == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  me = <span class="keyword">new</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#adac35e476e559cc89bc39363525268bf">HS_ClientManager</a>();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> me;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#ae0b9b18adeffca7822b060ad4ea8a7a1"> 71</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#ae0b9b18adeffca7822b060ad4ea8a7a1">HS_ClientManager::init</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"called."</span>);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a>* HS_ClientManager::createClientCtxt(afb_req_t req, std::string appid)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a> *ctxt = (<a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a> *)afb_req_context_get(req);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (!ctxt)</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>, <span class="stringliteral">"create new session for %s"</span>, appid.c_str());</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a> *ctxt = <span class="keyword">new</span> <a class="code" href="../../de/dca/hs-clientmanager_8h.html#a58a145d17337b835ab3fe17b50163040">HS_ClientCtxt</a>(appid.c_str());</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  afb_req_session_set_LOA(req, 1);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  afb_req_context_set(req, ctxt, <a class="code" href="../../dd/d30/hs-clientmanager_8cpp.html#a2e9d0e1086eba0a016056dc43bc90a73">cbRemoveClientCtxt</a>);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> ctxt;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <a class="code" href="../../d5/d20/class_h_s___client.html">HS_Client</a>* HS_ClientManager::addClient(afb_req_t req, std::string appid)</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">return</span> (client_list[appid] = <span class="keyword">new</span> <a class="code" href="../../d5/d20/class_h_s___client.html">HS_Client</a>(req, appid));</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> }</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="keywordtype">void</span> HS_ClientManager::removeClient(std::string appid)</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> {</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">delete</span> client_list[appid];</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  client_list.erase(appid);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> }</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#adc23f8b3f5cc06eeab39fb24098af3e2"> 140</a></span> <span class="keywordtype">void</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#adc23f8b3f5cc06eeab39fb24098af3e2">HS_ClientManager::removeClientCtxt</a>(<span class="keywordtype">void</span> *data)</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a> *ctxt = (<a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a> *)data;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">if</span>(ctxt == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  {</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#a65bb6c7cfe38f8a724beab5059d36fb2">HMI_ERROR</a>(<span class="stringliteral">"homescreen-service"</span>, <span class="stringliteral">"data is nullptr"</span>);</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>, <span class="stringliteral">"remove app %s"</span>, ctxt-><a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html#a04929d7d5f583a821d3d594815f77d1c">id</a>.c_str());</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  removeClient(ctxt-><a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html#a04929d7d5f583a821d3d594815f77d1c">id</a>);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">delete</span> appid2ctxt[ctxt-><a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html#a04929d7d5f583a821d3d594815f77d1c">id</a>];</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  appid2ctxt.erase(ctxt-><a class="code" href="../../d0/d53/struct_h_s___client_ctxt.html#a04929d7d5f583a821d3d594815f77d1c">id</a>);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a9910fc27c412530b5b9854b00bd16c07"> 166</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a9910fc27c412530b5b9854b00bd16c07">HS_ClientManager::tap_shortcut</a>(afb_req_t request)</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> {</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* value = afb_req_value(request, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">if</span> (value) {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"request params = %s."</span>, value);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keyword">auto</span> ip = client_list.find(std::string(value));</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  ip->second->tap_shortcut(value);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  }</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  }</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input application_id"</span>);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a58ce4a013d3694265dd69f481bf88510"> 195</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a58ce4a013d3694265dd69f481bf88510">HS_ClientManager::on_screen_message</a>(afb_req_t request)</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> {</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* value = afb_req_value(request, <a class="code" href="../../d6/dda/homescreen_8cpp.html#abfd6c1d6f316fa952b11553f8f275e92">_display_message</a>);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordflow">if</span> (value) {</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"request params = %s."</span>, value);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">for</span>(<span class="keyword">auto</span> m : client_list) {</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  m.second->on_screen_message(request, value);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  }</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  }</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input display_message"</span>);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> }</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#aa78f992287e3b8fe93422b331dc9edc5"> 223</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#aa78f992287e3b8fe93422b331dc9edc5">HS_ClientManager::on_screen_reply</a>(afb_req_t request)</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> {</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* value = afb_req_value(request, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a79b0f0b481161527ccb80e83da143219">_reply_message</a>);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (value) {</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"request params = %s."</span>, value);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">for</span>(<span class="keyword">auto</span> m : client_list) {</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  m.second->on_screen_reply(request, value);</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  }</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input reply_message"</span>);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  }</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div><div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a1b8a4e42342c4bcdc4e7dc4934e02469"> 251</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a1b8a4e42342c4bcdc4e7dc4934e02469">HS_ClientManager::subscribe</a>(afb_req_t request)</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> {</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *value = afb_req_value(request, <span class="stringliteral">"event"</span>);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"value is %s"</span>, value);</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">if</span>(value) {</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  std::string appid(afb_req_get_application_id(request));</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <a class="code" href="../../d5/d20/class_h_s___client.html">HS_Client</a>* client = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keyword">auto</span> ip = client_list.find(appid);</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  client = client_list[appid];</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  }</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  appid2ctxt[appid] = createClientCtxt(request, appid);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  client = addClient(request, appid);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  }</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">if</span>(client-><a class="code" href="../../d5/d20/class_h_s___client.html#a3d000ca70bd4a8af7c4895d95bc7d0d0">subscribe</a>(request, value) != 0) {</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"subscribe failed"</span>);</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#a995612de89db4df1483c16e4b9b70571">AFB_REQ_SUBSCRIBE_ERROR</a>;</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  }</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input event name"</span>);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  }</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> }</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div><div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#ac86314afbb90116e2f02ce071166226e"> 292</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#ac86314afbb90116e2f02ce071166226e">HS_ClientManager::unsubscribe</a>(afb_req_t request)</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> {</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *value = afb_req_value(request, <span class="stringliteral">"event"</span>);</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"value is %s"</span>, value);</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordflow">if</span>(value) {</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  std::string appid(afb_req_get_application_id(request));</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">auto</span> ip = client_list.find(appid);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">if</span>(ip != client_list.end()</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  && ip->second->unsubscribe(request, value) != 0) {</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"unsubscribe failed"</span>);</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#a78e930a97920b821706a80ca8f430034">AFB_REQ_UNSUBSCRIBE_ERROR</a>;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  }</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  }</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input event name"</span>);</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  }</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> }</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#afed8158f276d1d22c32b0d89e970d442"> 326</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#afed8158f276d1d22c32b0d89e970d442">HS_ClientManager::showWindow</a>(afb_req_t request)</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> {</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* value = afb_req_value(request, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">if</span> (value) {</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"request params = %s."</span>, value);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keyword">auto</span> ip = client_list.find(std::string(value));</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  ret = ip->second->showWindow(request, value);</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  }</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  }</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input application_id"</span>);</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  }</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> }</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span> </div><div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a6195694d281a3b97b0345b96c0add1fd"> 356</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a6195694d281a3b97b0345b96c0add1fd">HS_ClientManager::hideWindow</a>(afb_req_t request)</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span> {</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* value = afb_req_value(request, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordflow">if</span> (value) {</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"request params = %s."</span>, value);</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keyword">auto</span> ip = client_list.find(std::string(value));</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  ret = ip->second->hideWindow(request);</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  }</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  }</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input application_id"</span>);</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  }</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> }</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div><div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a59b1c1e115b5a257a585c41f854f5fdd"> 386</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a59b1c1e115b5a257a585c41f854f5fdd">HS_ClientManager::replyShowWindow</a>(afb_req_t request)</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> {</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* value = afb_req_value(request, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>);</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordflow">if</span> (value) {</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"request params = %s."</span>, value);</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keyword">auto</span> ip = client_list.find(std::string(value));</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  ret = ip->second->replyShowWindow(request, value);</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  }</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  }</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"Please input application_id"</span>);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> }</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span> </div><div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a857934af280081ca6ac61d9f2cac37c5"> 416</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a857934af280081ca6ac61d9f2cac37c5">HS_ClientManager::showNotification</a>(afb_req_t request)</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span> {</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <span class="keyword">auto</span> ip = client_list.find(<a class="code" href="../../dd/d30/hs-clientmanager_8cpp.html#a8bbab9002543614eacdc7a319d13a476">_homescreen</a>);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  ret = ip->second->showNotification(request);</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  }</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"not exist sessiion with homescreen"</span>);</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#a057fc88b8445828c261305cf9107d99d">AFB_REQ_SHOWNOTIFICATION_ERROR</a>;</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  }</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span> </div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> }</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span> </div><div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="../../d2/d8e/class_h_s___client_manager.html#a0645294f89c67fd3c9b0cce62a900f69"> 443</a></span> <span class="keywordtype">int</span> <a class="code" href="../../d2/d8e/class_h_s___client_manager.html#a0645294f89c67fd3c9b0cce62a900f69">HS_ClientManager::showInformation</a>(afb_req_t request)</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span> {</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  std::lock_guard<std::mutex> lock(this->mtx);</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keyword">auto</span> ip = client_list.find(<a class="code" href="../../dd/d30/hs-clientmanager_8cpp.html#a8bbab9002543614eacdc7a319d13a476">_homescreen</a>);</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  <span class="keywordflow">if</span>(ip != client_list.end()) {</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  ret = ip->second->showInformation(request);</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  }</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">"homescreen-service"</span>,<span class="stringliteral">"not exist sessiion with homescreen"</span>);</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aefe0d7ff8202f954693c235c1fb8e310">AFB_REQ_SHOWINFORMATION_ERROR</a>;</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  }</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span> }</div><div class="ttc" id="class_h_s___client_html_a3d000ca70bd4a8af7c4895d95bc7d0d0"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a3d000ca70bd4a8af7c4895d95bc7d0d0">HS_Client::subscribe</a></div><div class="ttdeci">int subscribe(afb_req_t request, const char *event)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00139">hs-client.cpp:139</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_ae0b9b18adeffca7822b060ad4ea8a7a1"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#ae0b9b18adeffca7822b060ad4ea8a7a1">HS_ClientManager::init</a></div><div class="ttdeci">int init(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00071">hs-clientmanager.cpp:71</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a6195694d281a3b97b0345b96c0add1fd"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a6195694d281a3b97b0345b96c0add1fd">HS_ClientManager::hideWindow</a></div><div class="ttdeci">int hideWindow(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00356">hs-clientmanager.cpp:356</a></div></div>
<div class="ttc" id="hs-clientmanager_8h_html"><div class="ttname"><a href="../../de/dca/hs-clientmanager_8h.html">hs-clientmanager.h</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a1b8a4e42342c4bcdc4e7dc4934e02469"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a1b8a4e42342c4bcdc4e7dc4934e02469">HS_ClientManager::subscribe</a></div><div class="ttdeci">int subscribe(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00251">hs-clientmanager.cpp:251</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a9910fc27c412530b5b9854b00bd16c07"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a9910fc27c412530b5b9854b00bd16c07">HS_ClientManager::tap_shortcut</a></div><div class="ttdeci">int tap_shortcut(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00166">hs-clientmanager.cpp:166</a></div></div>
<div class="ttc" id="hs-helper_8h_html_a057fc88b8445828c261305cf9107d99d"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#a057fc88b8445828c261305cf9107d99d">AFB_REQ_SHOWNOTIFICATION_ERROR</a></div><div class="ttdeci">#define AFB_REQ_SHOWNOTIFICATION_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00026">hs-helper.h:26</a></div></div>
<div class="ttc" id="struct_h_s___client_ctxt_html"><div class="ttname"><a href="../../d0/d53/struct_h_s___client_ctxt.html">HS_ClientCtxt</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/dca/hs-clientmanager_8h_source.html#l00027">hs-clientmanager.h:27</a></div></div>
<div class="ttc" id="homescreen_8cpp_html_a79b0f0b481161527ccb80e83da143219"><div class="ttname"><a href="../../d6/dda/homescreen_8cpp.html#a79b0f0b481161527ccb80e83da143219">_reply_message</a></div><div class="ttdeci">const char _reply_message[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dda/homescreen_8cpp_source.html#l00030">homescreen.cpp:30</a></div></div>
<div class="ttc" id="class_h_s___client_html"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html">HS_Client</a></div><div class="ttdef"><b>Definition:</b> <a href="../../da/dd3/hs-client_8h_source.html#l00025">hs-client.h:25</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_aa78f992287e3b8fe93422b331dc9edc5"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#aa78f992287e3b8fe93422b331dc9edc5">HS_ClientManager::on_screen_reply</a></div><div class="ttdeci">int on_screen_reply(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00223">hs-clientmanager.cpp:223</a></div></div>
<div class="ttc" id="include_2hmi-debug_8h_html_abc0d6e0760017d8ae48b836925b2ef15"><div class="ttname"><a href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a></div><div class="ttdeci">#define HMI_NOTICE(prefix, args,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d66/include_2hmi-debug_8h_source.html#l00040">hmi-debug.h:40</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_afed8158f276d1d22c32b0d89e970d442"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#afed8158f276d1d22c32b0d89e970d442">HS_ClientManager::showWindow</a></div><div class="ttdeci">int showWindow(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00326">hs-clientmanager.cpp:326</a></div></div>
<div class="ttc" id="hs-clientmanager_8h_html_a58a145d17337b835ab3fe17b50163040"><div class="ttname"><a href="../../de/dca/hs-clientmanager_8h.html#a58a145d17337b835ab3fe17b50163040">HS_ClientCtxt</a></div><div class="ttdeci">struct HS_ClientCtxt HS_ClientCtxt</div></div>
<div class="ttc" id="class_h_s___client_manager_html_ac86314afbb90116e2f02ce071166226e"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#ac86314afbb90116e2f02ce071166226e">HS_ClientManager::unsubscribe</a></div><div class="ttdeci">int unsubscribe(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00292">hs-clientmanager.cpp:292</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_adac35e476e559cc89bc39363525268bf"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#adac35e476e559cc89bc39363525268bf">HS_ClientManager::HS_ClientManager</a></div><div class="ttdeci">HS_ClientManager()</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00039">hs-clientmanager.cpp:39</a></div></div>
<div class="ttc" id="hs-clientmanager_8cpp_html_a8bbab9002543614eacdc7a319d13a476"><div class="ttname"><a href="../../dd/d30/hs-clientmanager_8cpp.html#a8bbab9002543614eacdc7a319d13a476">_homescreen</a></div><div class="ttdeci">static const char _homescreen[]</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00020">hs-clientmanager.cpp:20</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a59b1c1e115b5a257a585c41f854f5fdd"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a59b1c1e115b5a257a585c41f854f5fdd">HS_ClientManager::replyShowWindow</a></div><div class="ttdeci">int replyShowWindow(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00386">hs-clientmanager.cpp:386</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html">HS_ClientManager</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/dca/hs-clientmanager_8h_source.html#l00037">hs-clientmanager.h:37</a></div></div>
<div class="ttc" id="homescreen_8cpp_html_abfd6c1d6f316fa952b11553f8f275e92"><div class="ttname"><a href="../../d6/dda/homescreen_8cpp.html#abfd6c1d6f316fa952b11553f8f275e92">_display_message</a></div><div class="ttdeci">const char _display_message[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dda/homescreen_8cpp_source.html#l00029">homescreen.cpp:29</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_adc23f8b3f5cc06eeab39fb24098af3e2"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#adc23f8b3f5cc06eeab39fb24098af3e2">HS_ClientManager::removeClientCtxt</a></div><div class="ttdeci">void removeClientCtxt(void *data)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00140">hs-clientmanager.cpp:140</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_ad86c1fea7d107d52cbf0466fb7a2658b"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#ad86c1fea7d107d52cbf0466fb7a2658b">HS_ClientManager::instance</a></div><div class="ttdeci">static HS_ClientManager * instance(void)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00053">hs-clientmanager.cpp:53</a></div></div>
<div class="ttc" id="hs-clientmanager_8cpp_html_a2e9d0e1086eba0a016056dc43bc90a73"><div class="ttname"><a href="../../dd/d30/hs-clientmanager_8cpp.html#a2e9d0e1086eba0a016056dc43bc90a73">cbRemoveClientCtxt</a></div><div class="ttdeci">static void cbRemoveClientCtxt(void *data)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00024">hs-clientmanager.cpp:24</a></div></div>
<div class="ttc" id="struct_h_s___client_ctxt_html_a04929d7d5f583a821d3d594815f77d1c"><div class="ttname"><a href="../../d0/d53/struct_h_s___client_ctxt.html#a04929d7d5f583a821d3d594815f77d1c">HS_ClientCtxt::id</a></div><div class="ttdeci">std::string id</div><div class="ttdef"><b>Definition:</b> <a href="../../de/dca/hs-clientmanager_8h_source.html#l00029">hs-clientmanager.h:29</a></div></div>
<div class="ttc" id="src_2hmi-debug_8h_html"><div class="ttname"><a href="../../d6/dff/src_2hmi-debug_8h.html">hmi-debug.h</a></div></div>
<div class="ttc" id="hs-helper_8h_html_a78e930a97920b821706a80ca8f430034"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#a78e930a97920b821706a80ca8f430034">AFB_REQ_UNSUBSCRIBE_ERROR</a></div><div class="ttdeci">#define AFB_REQ_UNSUBSCRIBE_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00025">hs-helper.h:25</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a0645294f89c67fd3c9b0cce62a900f69"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a0645294f89c67fd3c9b0cce62a900f69">HS_ClientManager::showInformation</a></div><div class="ttdeci">int showInformation(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00443">hs-clientmanager.cpp:443</a></div></div>
<div class="ttc" id="include_2hmi-debug_8h_html_a65bb6c7cfe38f8a724beab5059d36fb2"><div class="ttname"><a href="../../d2/d66/include_2hmi-debug_8h.html#a65bb6c7cfe38f8a724beab5059d36fb2">HMI_ERROR</a></div><div class="ttdeci">#define HMI_ERROR(prefix, args,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d66/include_2hmi-debug_8h_source.html#l00038">hmi-debug.h:38</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a58ce4a013d3694265dd69f481bf88510"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a58ce4a013d3694265dd69f481bf88510">HS_ClientManager::on_screen_message</a></div><div class="ttdeci">int on_screen_message(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00195">hs-clientmanager.cpp:195</a></div></div>
<div class="ttc" id="homescreen_8cpp_html_a6a0e1db2562b442f8131ddf64b61d1ba"><div class="ttname"><a href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a></div><div class="ttdeci">const char _application_id[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dda/homescreen_8cpp_source.html#l00028">homescreen.cpp:28</a></div></div>
<div class="ttc" id="hs-helper_8h_html_aa611e2ec24ef295bd87825889fe2ce5e"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a></div><div class="ttdeci">#define AFB_EVENT_BAD_REQUEST</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00023">hs-helper.h:23</a></div></div>
<div class="ttc" id="class_h_s___client_manager_html_a857934af280081ca6ac61d9f2cac37c5"><div class="ttname"><a href="../../d2/d8e/class_h_s___client_manager.html#a857934af280081ca6ac61d9f2cac37c5">HS_ClientManager::showNotification</a></div><div class="ttdeci">int showNotification(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d30/hs-clientmanager_8cpp_source.html#l00416">hs-clientmanager.cpp:416</a></div></div>
<div class="ttc" id="hs-helper_8h_html_a995612de89db4df1483c16e4b9b70571"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#a995612de89db4df1483c16e4b9b70571">AFB_REQ_SUBSCRIBE_ERROR</a></div><div class="ttdeci">#define AFB_REQ_SUBSCRIBE_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00024">hs-helper.h:24</a></div></div>
<div class="ttc" id="hs-helper_8h_html_aefe0d7ff8202f954693c235c1fb8e310"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html#aefe0d7ff8202f954693c235c1fb8e310">AFB_REQ_SHOWINFORMATION_ERROR</a></div><div class="ttdeci">#define AFB_REQ_SHOWINFORMATION_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d3d/hs-helper_8h_source.html#l00027">hs-helper.h:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
|