summaryrefslogtreecommitdiffstats
path: root/doc/api-ref/html/d5/d20
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-11-21 16:32:29 +0800
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-23 12:45:14 +0000
commit31ff5ce755d00cf12ea2ffc96c33ed9acd36358f (patch)
treea630609b99490a6c55c97688c5a4f39f273d3583 /doc/api-ref/html/d5/d20
parentbbb4ee8e9974c4b008da84a1e504120f70606c92 (diff)
add new sequence and update doxygen files. Change-Id: I6737939eb2628577d58b2d1d65086e46e7cb14a4 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'doc/api-ref/html/d5/d20')
-rw-r--r--doc/api-ref/html/d5/d20/class_h_s___client.html653
1 files changed, 653 insertions, 0 deletions
diff --git a/doc/api-ref/html/d5/d20/class_h_s___client.html b/doc/api-ref/html/d5/d20/class_h_s___client.html
new file mode 100644
index 0000000..e9d7ff8
--- /dev/null
+++ b/doc/api-ref/html/d5/d20/class_h_s___client.html
@@ -0,0 +1,653 @@
+<!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: HS_Client Class Reference</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 class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
+ <li><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="../../annotated.html"><span>Class&#160;List</span></a></li>
+ <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
+ <li><a href="../../functions.html"><span>Class&#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><!-- top -->
+<div class="header">
+ <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="../../d5/d0d/class_h_s___client-members.html">List of all members</a> </div>
+ <div class="headertitle">
+<div class="title">HS_Client Class Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+
+<p><code>#include &lt;<a class="el" href="../../da/dd3/hs-client_8h_source.html">hs-client.h</a>&gt;</code></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:a0afac6b86b9a72e74846e47e435f5f90"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a0afac6b86b9a72e74846e47e435f5f90">HS_Client</a> (afb_req_t request, const char *id)</td></tr>
+<tr class="separator:a0afac6b86b9a72e74846e47e435f5f90"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a47cb0035116ac7be4fffcfc9736e9233"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a47cb0035116ac7be4fffcfc9736e9233">HS_Client</a> (afb_req_t request, std::string id)</td></tr>
+<tr class="separator:a47cb0035116ac7be4fffcfc9736e9233"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a429a4697767344f3789bb233bc73a2b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a429a4697767344f3789bb233bc73a2b9">HS_Client</a> (<a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> &amp;)=delete</td></tr>
+<tr class="separator:a429a4697767344f3789bb233bc73a2b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a3e3d8fa1c8746d6d1b1650fe1fcc56a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a3e3d8fa1c8746d6d1b1650fe1fcc56a8">operator=</a> (<a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> &amp;)=delete</td></tr>
+<tr class="separator:a3e3d8fa1c8746d6d1b1650fe1fcc56a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ab29a9e899aaec3c21983c24ec6e5ee70"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#ab29a9e899aaec3c21983c24ec6e5ee70">~HS_Client</a> ()</td></tr>
+<tr class="separator:ab29a9e899aaec3c21983c24ec6e5ee70"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a0d7fb8316248e8946dcb73a6612f21bb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a0d7fb8316248e8946dcb73a6612f21bb">tap_shortcut</a> (const char *appid)</td></tr>
+<tr class="separator:a0d7fb8316248e8946dcb73a6612f21bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:af0f2be967a5b6ee81932c73b101184f7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#af0f2be967a5b6ee81932c73b101184f7">showWindow</a> (afb_req_t request, const char *appid)</td></tr>
+<tr class="separator:af0f2be967a5b6ee81932c73b101184f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ac29482ffdf1b27733247ba0ffcc28b76"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#ac29482ffdf1b27733247ba0ffcc28b76">hideWindow</a> (afb_req_t request)</td></tr>
+<tr class="separator:ac29482ffdf1b27733247ba0ffcc28b76"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a294e461500ef02aed17ed5d91479f6b9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a294e461500ef02aed17ed5d91479f6b9">replyShowWindow</a> (afb_req_t request, const char *appid)</td></tr>
+<tr class="separator:a294e461500ef02aed17ed5d91479f6b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a274301617c9ab629d6916c0dde8c40b9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a274301617c9ab629d6916c0dde8c40b9">on_screen_message</a> (afb_req_t request, const char *message)</td></tr>
+<tr class="separator:a274301617c9ab629d6916c0dde8c40b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a9f7a30840c95b1348bcce4cd4626b2ae"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a9f7a30840c95b1348bcce4cd4626b2ae">on_screen_reply</a> (afb_req_t request, const char *message)</td></tr>
+<tr class="separator:a9f7a30840c95b1348bcce4cd4626b2ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a3d000ca70bd4a8af7c4895d95bc7d0d0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a3d000ca70bd4a8af7c4895d95bc7d0d0">subscribe</a> (afb_req_t request, const char *event)</td></tr>
+<tr class="separator:a3d000ca70bd4a8af7c4895d95bc7d0d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a3da3b5662f918e11773da75f8f971d9c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a3da3b5662f918e11773da75f8f971d9c">unsubscribe</a> (afb_req_t request, const char *event)</td></tr>
+<tr class="separator:a3da3b5662f918e11773da75f8f971d9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a77b41c1bc6f2c939410108d821a0b456"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a77b41c1bc6f2c939410108d821a0b456">showNotification</a> (afb_req_t request)</td></tr>
+<tr class="separator:a77b41c1bc6f2c939410108d821a0b456"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a7145c14a7a971b45f647a82e3390ce9c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d20/class_h_s___client.html#a7145c14a7a971b45f647a82e3390ce9c">showInformation</a> (afb_req_t request)</td></tr>
+<tr class="separator:a7145c14a7a971b45f647a82e3390ce9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock">
+<p>Definition at line <a class="el" href="../../da/dd3/hs-client_8h_source.html#l00025">25</a> of file <a class="el" href="../../da/dd3/hs-client_8h_source.html">hs-client.h</a>.</p>
+</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" id="a0afac6b86b9a72e74846e47e435f5f90"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">HS_Client::HS_Client </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>id</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inline</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Definition at line <a class="el" href="../../da/dd3/hs-client_8h_source.html#l00027">27</a> of file <a class="el" href="../../da/dd3/hs-client_8h_source.html">hs-client.h</a>.</p>
+<div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;: <a class="code" href="../../d5/d20/class_h_s___client.html#a0afac6b86b9a72e74846e47e435f5f90">HS_Client</a>(request, std::string(<span class="keywordtype">id</span>)){}</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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a47cb0035116ac7be4fffcfc9736e9233"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">HS_Client::HS_Client </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>id</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p><a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> construction function</p>
+<h4>Parameters</h4>
+<ul>
+<li>id: app's id</li>
+</ul>
+<h4>Return</h4>
+<p>None </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00038">38</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; : my_id(<span class="keywordtype">id</span>)</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="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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a429a4697767344f3789bb233bc73a2b9"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname">HS_Client::HS_Client </td>
+ <td>(</td>
+ <td class="paramtype"><a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> &amp;&#160;</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">delete</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+</div>
+</div>
+<a class="anchor" id="ab29a9e899aaec3c21983c24ec6e5ee70"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">HS_Client::~HS_Client </td>
+ <td>(</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p><a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> destruction function</p>
+<h4>Parameters</h4>
+<ul>
+<li>null</li>
+</ul>
+<h4>Return</h4>
+<p>None </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00054">54</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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><!-- fragment -->
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a class="anchor" id="ac29482ffdf1b27733247ba0ffcc28b76"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::hideWindow </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>hideWindow event</p>
+<p>input contents : {"application_id":"the appid that want to hide"}</p>
+<h4>Parameters</h4>
+<ul>
+<li>request : the request</li>
+</ul>
+<h4>Return</h4>
+<p>0 : success others : fail </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00245">245</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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_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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a274301617c9ab629d6916c0dde8c40b9"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::on_screen_message </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>message</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>push on_screen_message event</p>
+<h4>Parameters</h4>
+<ul>
+<li>message: post message.</li>
+</ul>
+<h4>Return</h4>
+<p>result </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00093">93</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a9f7a30840c95b1348bcce4cd4626b2ae"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::on_screen_reply </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>message</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>push on_screen_reply event</p>
+<h4>Parameters</h4>
+<ul>
+<li>message: reply message.</li>
+</ul>
+<h4>Return</h4>
+<p>result </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00116">116</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a3e3d8fa1c8746d6d1b1650fe1fcc56a8"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+ <tr>
+ <td class="mlabels-left">
+ <table class="memname">
+ <tr>
+ <td class="memname"><a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a>&amp; HS_Client::operator= </td>
+ <td>(</td>
+ <td class="paramtype"><a class="el" href="../../d5/d20/class_h_s___client.html">HS_Client</a> &amp;&#160;</td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">delete</span></span> </td>
+ </tr>
+</table>
+</div><div class="memdoc">
+
+</div>
+</div>
+<a class="anchor" id="a294e461500ef02aed17ed5d91479f6b9"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::replyShowWindow </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>appid</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>replyShowWindow event</p>
+<p>input contens : {"application_id": "the appid that want to reply", "parameter": {...}}</p>
+<h4>Parameters</h4>
+<ul>
+<li>request : the request</li>
+<li>appid : the appid that want to reply</li>
+</ul>
+<h4>Return</h4>
+<p>0 : success others : fail </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00273">273</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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="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="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="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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a7145c14a7a971b45f647a82e3390ce9c"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::showInformation </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>showInformation event</p>
+<p>input contents : {"info": "information contents"}</p>
+<h4>Parameters</h4>
+<ul>
+<li>request : the request</li>
+</ul>
+<h4>Return</h4>
+<p>0 : success others : fail </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00350">350</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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="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="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_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>
+</div>
+<a class="anchor" id="a77b41c1bc6f2c939410108d821a0b456"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::showNotification </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>showNotification event</p>
+<p>input contents : {"icon": "icon path", "text": "message contents"}</p>
+<h4>Parameters</h4>
+<ul>
+<li>request : the request</li>
+</ul>
+<h4>Return</h4>
+<p>0 : success others : fail </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00307">307</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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="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="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="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="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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="af0f2be967a5b6ee81932c73b101184f7"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::showWindow </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>appid</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>showWindow event</p>
+<p>input contents : {"application_id":"the appid that want to display", "parameter":{"area": "display area", ...}}</p>
+<h4>Parameters</h4>
+<ul>
+<li>request : the request</li>
+<li>appid : the appid that want to display</li>
+</ul>
+<h4>Return</h4>
+<p>0 : success others : fail </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00209">209</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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="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="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="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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a3d000ca70bd4a8af7c4895d95bc7d0d0"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::subscribe </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>event</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>subscribe event</p>
+<h4>Parameters</h4>
+<ul>
+<li>event: homescreen event, tap_shortcut etc.</li>
+</ul>
+<h4>Return</h4>
+<p>result </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00139">139</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a0d7fb8316248e8946dcb73a6612f21bb"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::tap_shortcut </td>
+ <td>(</td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>appid</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>push tap_shortcut event</p>
+<h4>Parameters</h4>
+<ul>
+<li>appid: app's id.</li>
+</ul>
+<h4>Return</h4>
+<p>result </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00070">70</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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="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="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="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_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><!-- fragment -->
+</div>
+</div>
+<a class="anchor" id="a3da3b5662f918e11773da75f8f971d9c"></a>
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int HS_Client::unsubscribe </td>
+ <td>(</td>
+ <td class="paramtype">afb_req_t&#160;</td>
+ <td class="paramname"><em>request</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">const char *&#160;</td>
+ <td class="paramname"><em>event</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+<p>unsubscribe event</p>
+<h4>Parameters</h4>
+<ul>
+<li>event: homescreen event, tap_shortcut etc.</li>
+</ul>
+<h4>Return</h4>
+<p>result </p>
+
+<p>Definition at line <a class="el" href="../../d8/d55/hs-client_8cpp_source.html#l00165">165</a> of file <a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a>.</p>
+<div class="fragment"><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><!-- fragment -->
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li>src/<a class="el" href="../../da/dd3/hs-client_8h_source.html">hs-client.h</a></li>
+<li>src/<a class="el" href="../../d8/d55/hs-client_8cpp_source.html">hs-client.cpp</a></li>
+</ul>
+</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>