summaryrefslogtreecommitdiffstats
path: root/doc/api-ref/html/d8/d55/hs-client_8cpp_source.html
blob: 8243a1d4724ef0b95a8885934d265332cf5317c2 (plain)
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
<!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-client.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&#160;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&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>File&#160;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-client.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d8/d55/hs-client_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>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<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>&#160;<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>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<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>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<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>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../da/dd3/hs-client_8h.html">hs-client.h</a>&quot;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../d3/d3d/hs-helper_8h.html">hs-helper.h</a>&quot;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../d6/dff/src_2hmi-debug_8h.html">hmi-debug.h</a>&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">   21</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>[] = <span class="stringliteral">&quot;type&quot;</span>;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="../../d8/d55/hs-client_8cpp.html#ad177811d47939fe9404de88672a980ab">   22</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../d8/d55/hs-client_8cpp.html#ad177811d47939fe9404de88672a980ab">_text</a>[] = <span class="stringliteral">&quot;text&quot;</span>;</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="../../d8/d55/hs-client_8cpp.html#ae125cd80cb98582684636e46ecf33cac">   23</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae125cd80cb98582684636e46ecf33cac">_info</a>[] = <span class="stringliteral">&quot;info&quot;</span>;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="../../d8/d55/hs-client_8cpp.html#a5476c8a51997c773220bec9fc02eeaf5">   24</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../d8/d55/hs-client_8cpp.html#a5476c8a51997c773220bec9fc02eeaf5">_icon</a>[] = <span class="stringliteral">&quot;icon&quot;</span>;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">   25</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>[] = <span class="stringliteral">&quot;parameter&quot;</span>;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="../../d8/d55/hs-client_8cpp.html#ac5b722c0d87d2b0e3dfc527b44a1f5db">   26</a></span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="../../d8/d55/hs-client_8cpp.html#ac5b722c0d87d2b0e3dfc527b44a1f5db">_replyto</a>[] = <span class="stringliteral">&quot;replyto&quot;</span>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a47cb0035116ac7be4fffcfc9736e9233">   38</a></span>&#160;<a class="code" href="../../d5/d20/class_h_s___client.html#a0afac6b86b9a72e74846e47e435f5f90">HS_Client::HS_Client</a>(afb_req_t request, std::string <span class="keywordtype">id</span>) : my_id(id)</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;called.&quot;</span>);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    my_event = afb_api_make_event(request-&gt;api, <span class="keywordtype">id</span>.c_str());</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#ab29a9e899aaec3c21983c24ec6e5ee70">   54</a></span>&#160;<a class="code" href="../../d5/d20/class_h_s___client.html#ab29a9e899aaec3c21983c24ec6e5ee70">HS_Client::~HS_Client</a>()</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;called.&quot;</span>);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    afb_event_unref(my_event);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;}</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a0d7fb8316248e8946dcb73a6612f21bb">   70</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a0d7fb8316248e8946dcb73a6612f21bb">HS_Client::tap_shortcut</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* appid)</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;{</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">if</span>(!checkEvent(__FUNCTION__))</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;%s application_id = %s.&quot;</span>, __FUNCTION__, appid);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>, appid,</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a274301617c9ab629d6916c0dde8c40b9">   93</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a274301617c9ab629d6916c0dde8c40b9">HS_Client::on_screen_message</a>(afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span>* message)</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;{</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">if</span>(!checkEvent(__FUNCTION__))</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;push %s event message [%s].&quot;</span>, __FUNCTION__, message);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#abfd6c1d6f316fa952b11553f8f275e92">_display_message</a>, message,</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;}</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a9f7a30840c95b1348bcce4cd4626b2ae">  116</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a9f7a30840c95b1348bcce4cd4626b2ae">HS_Client::on_screen_reply</a>(afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span>* message)</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;{</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordflow">if</span>(!checkEvent(__FUNCTION__))</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;push %s event message [%s].&quot;</span>, __FUNCTION__, message);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a79b0f0b481161527ccb80e83da143219">_reply_message</a>, message,</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;}</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a3d000ca70bd4a8af7c4895d95bc7d0d0">  139</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a3d000ca70bd4a8af7c4895d95bc7d0d0">HS_Client::subscribe</a>(afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span>* event)</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;{</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keyword">auto</span> ip = event_list.find(std::string(event));</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">if</span>(ip == event_list.end()) {</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        event_list[std::string(event)] = 0;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">if</span>(!subscription) {</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        ret = afb_req_subscribe(request, my_event);</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keywordflow">if</span>(ret == 0) {</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            subscription = <span class="keyword">true</span>;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        }</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    }</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;}</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a3da3b5662f918e11773da75f8f971d9c">  165</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a3da3b5662f918e11773da75f8f971d9c">HS_Client::unsubscribe</a>(afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span>* event)</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;{</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    event_list.erase(std::string(event));</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">if</span>(event_list.empty()) {</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        ret = afb_req_unsubscribe(request, my_event);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    }</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;}</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keywordtype">bool</span> HS_Client::checkEvent(<span class="keyword">const</span> <span class="keywordtype">char</span>* event)</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;{</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keyword">auto</span> ip = event_list.find(std::string(event));</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordflow">if</span>(ip == event_list.end())</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#af0f2be967a5b6ee81932c73b101184f7">  209</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#af0f2be967a5b6ee81932c73b101184f7">HS_Client::showWindow</a>(afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span>* appid)</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;{</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="keywordflow">if</span>(!checkEvent(__FUNCTION__))</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;%s application_id = %s.&quot;</span>, __FUNCTION__, appid);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>, appid, <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* param = afb_req_value(request, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordflow">if</span>(param) {</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* req_appid = afb_req_get_application_id(request);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keyword">struct </span>json_object* param_obj = json_tokener_parse(param);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        json_object_object_add(param_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ac5b722c0d87d2b0e3dfc527b44a1f5db">_replyto</a>, json_object_new_string(req_appid));</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        json_object_object_add(push_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>, param_obj);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    }</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keywordflow">else</span> {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#a65bb6c7cfe38f8a724beab5059d36fb2">HMI_ERROR</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;please input correct parameter.&quot;</span>);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    }</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;}</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#ac29482ffdf1b27733247ba0ffcc28b76">  245</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#ac29482ffdf1b27733247ba0ffcc28b76">HS_Client::hideWindow</a>(afb_req_t request)</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;{</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">if</span>(!checkEvent(__FUNCTION__))</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;%s application_id = %s.&quot;</span>, __FUNCTION__);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* req_appid = afb_req_get_application_id(request);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>, req_appid,</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;}</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a294e461500ef02aed17ed5d91479f6b9">  273</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a294e461500ef02aed17ed5d91479f6b9">HS_Client::replyShowWindow</a>(afb_req_t request, <span class="keyword">const</span> <span class="keywordtype">char</span>* appid)</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;{</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keywordflow">if</span>(!checkEvent(__FUNCTION__))</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;%s application_id = %s.&quot;</span>, __FUNCTION__, appid);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>, appid, <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* param = afb_req_value(request, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>);</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordflow">if</span>(param) {</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        json_object_object_add(push_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>, json_tokener_parse(param));</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    }</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordflow">else</span> {</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#a65bb6c7cfe38f8a724beab5059d36fb2">HMI_ERROR</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;please input correct parameter.&quot;</span>);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d3/d3d/hs-helper_8h.html#aa611e2ec24ef295bd87825889fe2ce5e">AFB_EVENT_BAD_REQUEST</a>;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    }</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;}</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a77b41c1bc6f2c939410108d821a0b456">  307</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a77b41c1bc6f2c939410108d821a0b456">HS_Client::showNotification</a>(afb_req_t request)</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;{</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *value = afb_req_value(request, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ad177811d47939fe9404de88672a980ab">_text</a>);</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="keywordflow">if</span>(value) {</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;text is %s&quot;</span>, value);</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* appid = afb_req_get_application_id(request);</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        <span class="keyword">struct </span>json_object* param_obj = json_object_new_object();</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span> *icon = afb_req_value(request, <a class="code" href="../../d8/d55/hs-client_8cpp.html#a5476c8a51997c773220bec9fc02eeaf5">_icon</a>);</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="keywordflow">if</span>(icon) {</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;            json_object_object_add(param_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#a5476c8a51997c773220bec9fc02eeaf5">_icon</a>, json_object_new_string(icon));</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;            json_object_object_add(param_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ad177811d47939fe9404de88672a980ab">_text</a>, json_object_new_string(value));</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;            <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;            <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>, appid, <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            json_object_object_add(push_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>, param_obj);</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;            afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        }</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keywordflow">else</span> {</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;            <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;please input icon.&quot;</span>);</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#a057fc88b8445828c261305cf9107d99d">AFB_REQ_SHOWNOTIFICATION_ERROR</a>;</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        }</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    }</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="keywordflow">else</span> {</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;        <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;please input text.&quot;</span>);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#a057fc88b8445828c261305cf9107d99d">AFB_REQ_SHOWNOTIFICATION_ERROR</a>;</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    }</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;}</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;</div><div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="../../d5/d20/class_h_s___client.html#a7145c14a7a971b45f647a82e3390ce9c">  350</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d5/d20/class_h_s___client.html#a7145c14a7a971b45f647a82e3390ce9c">HS_Client::showInformation</a>(afb_req_t request)</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;{</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordtype">int</span> ret = 0;</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *value = afb_req_value(request, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae125cd80cb98582684636e46ecf33cac">_info</a>);</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="keywordflow">if</span>(value) {</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;info is %s&quot;</span>, value);</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* appid = afb_req_get_application_id(request);</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keyword">struct </span>json_object* param_obj = json_object_new_object();</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        json_object_object_add(param_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae125cd80cb98582684636e46ecf33cac">_info</a>, json_object_new_string(value));</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        <span class="keyword">struct </span>json_object* push_obj = json_object_new_object();</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <a class="code" href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a>( push_obj, 4, <a class="code" href="../../d6/dda/homescreen_8cpp.html#a6a0e1db2562b442f8131ddf64b61d1ba">_application_id</a>, appid, <a class="code" href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a>, __FUNCTION__);</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        json_object_object_add(push_obj, <a class="code" href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a>, param_obj);</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        afb_event_push(my_event, push_obj);</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    }</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keywordflow">else</span> {</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <a class="code" href="../../d2/d66/include_2hmi-debug_8h.html#abc0d6e0760017d8ae48b836925b2ef15">HMI_NOTICE</a>(<span class="stringliteral">&quot;homescreen-service&quot;</span>,<span class="stringliteral">&quot;please input information.&quot;</span>);</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        ret = <a class="code" href="../../d3/d3d/hs-helper_8h.html#aefe0d7ff8202f954693c235c1fb8e310">AFB_REQ_SHOWINFORMATION_ERROR</a>;</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    }</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;}</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="hs-client_8cpp_html_ad177811d47939fe9404de88672a980ab"><div class="ttname"><a href="../../d8/d55/hs-client_8cpp.html#ad177811d47939fe9404de88672a980ab">_text</a></div><div class="ttdeci">static const char _text[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00022">hs-client.cpp:22</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="class_h_s___client_html_a0afac6b86b9a72e74846e47e435f5f90"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a0afac6b86b9a72e74846e47e435f5f90">HS_Client::HS_Client</a></div><div class="ttdeci">HS_Client(afb_req_t request, const char *id)</div><div class="ttdef"><b>Definition:</b> <a href="../../da/dd3/hs-client_8h_source.html#l00027">hs-client.h:27</a></div></div>
<div class="ttc" id="hs-helper_8h_html"><div class="ttname"><a href="../../d3/d3d/hs-helper_8h.html">hs-helper.h</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="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_html_a294e461500ef02aed17ed5d91479f6b9"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a294e461500ef02aed17ed5d91479f6b9">HS_Client::replyShowWindow</a></div><div class="ttdeci">int replyShowWindow(afb_req_t request, const char *appid)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00273">hs-client.cpp:273</a></div></div>
<div class="ttc" id="class_h_s___client_html_a274301617c9ab629d6916c0dde8c40b9"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a274301617c9ab629d6916c0dde8c40b9">HS_Client::on_screen_message</a></div><div class="ttdeci">int on_screen_message(afb_req_t request, const char *message)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00093">hs-client.cpp:93</a></div></div>
<div class="ttc" id="class_h_s___client_html_a7145c14a7a971b45f647a82e3390ce9c"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a7145c14a7a971b45f647a82e3390ce9c">HS_Client::showInformation</a></div><div class="ttdeci">int showInformation(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00350">hs-client.cpp:350</a></div></div>
<div class="ttc" id="hs-client_8cpp_html_ae3fc16098a2461f2f1ae0ac8561437c6"><div class="ttname"><a href="../../d8/d55/hs-client_8cpp.html#ae3fc16098a2461f2f1ae0ac8561437c6">_parameter</a></div><div class="ttdeci">static const char _parameter[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00025">hs-client.cpp:25</a></div></div>
<div class="ttc" id="class_h_s___client_html_a9f7a30840c95b1348bcce4cd4626b2ae"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a9f7a30840c95b1348bcce4cd4626b2ae">HS_Client::on_screen_reply</a></div><div class="ttdeci">int on_screen_reply(afb_req_t request, const char *message)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00116">hs-client.cpp:116</a></div></div>
<div class="ttc" id="hs-client_8h_html"><div class="ttname"><a href="../../da/dd3/hs-client_8h.html">hs-client.h</a></div></div>
<div class="ttc" id="class_h_s___client_html_a3da3b5662f918e11773da75f8f971d9c"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a3da3b5662f918e11773da75f8f971d9c">HS_Client::unsubscribe</a></div><div class="ttdeci">int unsubscribe(afb_req_t request, const char *event)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00165">hs-client.cpp:165</a></div></div>
<div class="ttc" id="hs-client_8cpp_html_a1c24b43242df87f75631175c75afdcda"><div class="ttname"><a href="../../d8/d55/hs-client_8cpp.html#a1c24b43242df87f75631175c75afdcda">_type</a></div><div class="ttdeci">static const char _type[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00021">hs-client.cpp:21</a></div></div>
<div class="ttc" id="class_h_s___client_html_a77b41c1bc6f2c939410108d821a0b456"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a77b41c1bc6f2c939410108d821a0b456">HS_Client::showNotification</a></div><div class="ttdeci">int showNotification(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00307">hs-client.cpp:307</a></div></div>
<div class="ttc" id="class_h_s___client_html_ab29a9e899aaec3c21983c24ec6e5ee70"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#ab29a9e899aaec3c21983c24ec6e5ee70">HS_Client::~HS_Client</a></div><div class="ttdeci">~HS_Client()</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00054">hs-client.cpp:54</a></div></div>
<div class="ttc" id="hs-helper_8cpp_html_a8777c53f1d4d5412f19b134ad85ffedf"><div class="ttname"><a href="../../df/d66/hs-helper_8cpp.html#a8777c53f1d4d5412f19b134ad85ffedf">hs_add_object_to_json_object_str</a></div><div class="ttdeci">void hs_add_object_to_json_object_str(struct json_object *j_obj, int count,...)</div><div class="ttdef"><b>Definition:</b> <a href="../../df/d66/hs-helper_8cpp_source.html#l00180">hs-helper.cpp:180</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="hs-client_8cpp_html_a5476c8a51997c773220bec9fc02eeaf5"><div class="ttname"><a href="../../d8/d55/hs-client_8cpp.html#a5476c8a51997c773220bec9fc02eeaf5">_icon</a></div><div class="ttdeci">static const char _icon[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00024">hs-client.cpp:24</a></div></div>
<div class="ttc" id="class_h_s___client_html_af0f2be967a5b6ee81932c73b101184f7"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#af0f2be967a5b6ee81932c73b101184f7">HS_Client::showWindow</a></div><div class="ttdeci">int showWindow(afb_req_t request, const char *appid)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00209">hs-client.cpp:209</a></div></div>
<div class="ttc" id="class_h_s___client_html_ac29482ffdf1b27733247ba0ffcc28b76"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#ac29482ffdf1b27733247ba0ffcc28b76">HS_Client::hideWindow</a></div><div class="ttdeci">int hideWindow(afb_req_t request)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00245">hs-client.cpp:245</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="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="hs-client_8cpp_html_ac5b722c0d87d2b0e3dfc527b44a1f5db"><div class="ttname"><a href="../../d8/d55/hs-client_8cpp.html#ac5b722c0d87d2b0e3dfc527b44a1f5db">_replyto</a></div><div class="ttdeci">static const char _replyto[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00026">hs-client.cpp:26</a></div></div>
<div class="ttc" id="hs-client_8cpp_html_ae125cd80cb98582684636e46ecf33cac"><div class="ttname"><a href="../../d8/d55/hs-client_8cpp.html#ae125cd80cb98582684636e46ecf33cac">_info</a></div><div class="ttdeci">static const char _info[]</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00023">hs-client.cpp:23</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_html_a0d7fb8316248e8946dcb73a6612f21bb"><div class="ttname"><a href="../../d5/d20/class_h_s___client.html#a0d7fb8316248e8946dcb73a6612f21bb">HS_Client::tap_shortcut</a></div><div class="ttdeci">int tap_shortcut(const char *appid)</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d55/hs-client_8cpp_source.html#l00070">hs-client.cpp:70</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 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>