Add beta version to sandbox
[apps/onscreenapp.git] / doc / api-ref / latex / d1 / d27 / class_event_handler.tex
1 \hypertarget{class_event_handler}{}\section{Event\+Handler Class Reference}
2 \label{class_event_handler}\index{Event\+Handler@{Event\+Handler}}
3
4
5 {\ttfamily \#include $<$eventhandler.\+h$>$}
6
7 Inheritance diagram for Event\+Handler\+:\begin{figure}[H]
8 \begin{center}
9 \leavevmode
10 \includegraphics[height=2.000000cm]{d1/d27/class_event_handler}
11 \end{center}
12 \end{figure}
13 \subsection*{Signals}
14 \begin{DoxyCompactItemize}
15 \item 
16 void \hyperlink{class_event_handler_af192ed84d2d223d7adfdd3ad0a4ef63a}{signal\+On\+Screen\+Message} (Q\+Variant display\+\_\+message)
17 \item 
18 void \hyperlink{class_event_handler_a7ae24cecc901ec38b1c0b471d29fc0a1}{signal\+Loader} (Q\+Variant url)
19 \item 
20 void \hyperlink{class_event_handler_ae6969a0f9c428b976857f4675d6ce53b}{signal\+Set\+Clear\+Backgroud} ()
21 \item 
22 void \hyperlink{class_event_handler_ac95eb95ecee232c14d7bcf28b82077e5}{signal\+Set\+Default\+Backgroud} (Q\+Variant message)
23 \end{DoxyCompactItemize}
24 \subsection*{Public Member Functions}
25 \begin{DoxyCompactItemize}
26 \item 
27 \hyperlink{class_event_handler_ad49678ccfd6861162dc12d5aec1d8d8d}{Event\+Handler} (Q\+Object $\ast$parent=0)
28 \item 
29 \hyperlink{class_event_handler_a3decb8cd88ba8af2b9b0b0f0f2fcd722}{$\sim$\+Event\+Handler} ()
30 \item 
31 void \hyperlink{class_event_handler_ae8bf972e7e84edcd55ca9ecdf7d3ec7b}{init} (int port, const char $\ast$token)
32 \item 
33 void \hyperlink{class_event_handler_a8860b4ef2ab997d4f192e4d3fc8bf648}{set\+Quick\+Window} (Q\+Quick\+Window $\ast$qw)
34 \item 
35 void \hyperlink{class_event_handler_a8d6687bd094bf69deb54551da939ce27}{on\+Rep} (struct json\+\_\+object $\ast$reply\+\_\+contents)
36 \item 
37 void \hyperlink{class_event_handler_ab0ead6a5680ef6f7d7b27cbd0a0d7793}{activate\+Surface} (Q\+String app)
38 \item 
39 void \hyperlink{class_event_handler_a7c22084c4d88ce4edb19f81bddc517bf}{deactivate\+Surface} (Q\+String app)
40 \item 
41 Q\+\_\+\+I\+N\+V\+O\+K\+A\+B\+LE void \hyperlink{class_event_handler_a110371bf721239a23684c0f73d9374d6}{on\+Screen\+Reply} (const Q\+String \&message)
42 \end{DoxyCompactItemize}
43 \subsection*{Static Public Member Functions}
44 \begin{DoxyCompactItemize}
45 \item 
46 static void \hyperlink{class_event_handler_a8840c662c136fc27b1b22f3c8053b7ca}{on\+Rep\+\_\+static} (struct json\+\_\+object $\ast$reply\+\_\+contents)
47 \end{DoxyCompactItemize}
48 \subsection*{Static Public Attributes}
49 \begin{DoxyCompactItemize}
50 \item 
51 static void $\ast$ \hyperlink{class_event_handler_a14bde48ca3c44767417b39d504edbbb4}{my\+This} = 0
52 \end{DoxyCompactItemize}
53
54
55 \subsection{Detailed Description}
56
57
58 Definition at line 41 of file eventhandler.\+h.
59
60
61
62 \subsection{Constructor \& Destructor Documentation}
63 \mbox{\Hypertarget{class_event_handler_ad49678ccfd6861162dc12d5aec1d8d8d}\label{class_event_handler_ad49678ccfd6861162dc12d5aec1d8d8d}} 
64 \index{Event\+Handler@{Event\+Handler}!Event\+Handler@{Event\+Handler}}
65 \index{Event\+Handler@{Event\+Handler}!Event\+Handler@{Event\+Handler}}
66 \subsubsection{\texorpdfstring{Event\+Handler()}{EventHandler()}}
67 {\footnotesize\ttfamily Event\+Handler\+::\+Event\+Handler (\begin{DoxyParamCaption}\item[{Q\+Object $\ast$}]{parent = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}
68
69
70
71 Definition at line 32 of file eventhandler.\+cpp.
72
73
74 \begin{DoxyCode}
75 32                                           :
76 33     QObject(parent),
77 34     mp\_hs(NULL),
78 35     mp\_wm(NULL),
79 36     mp\_qw(NULL)
80 37 \{
81 38     m\_isActive = \textcolor{keyword}{false};
82 39     m\_vecOSM.clear();
83 40 \}
84 \end{DoxyCode}
85 \mbox{\Hypertarget{class_event_handler_a3decb8cd88ba8af2b9b0b0f0f2fcd722}\label{class_event_handler_a3decb8cd88ba8af2b9b0b0f0f2fcd722}} 
86 \index{Event\+Handler@{Event\+Handler}!````~Event\+Handler@{$\sim$\+Event\+Handler}}
87 \index{````~Event\+Handler@{$\sim$\+Event\+Handler}!Event\+Handler@{Event\+Handler}}
88 \subsubsection{\texorpdfstring{$\sim$\+Event\+Handler()}{~EventHandler()}}
89 {\footnotesize\ttfamily Event\+Handler\+::$\sim$\+Event\+Handler (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
90
91
92
93 Definition at line 42 of file eventhandler.\+cpp.
94
95
96 \begin{DoxyCode}
97 43 \{
98 44     \textcolor{keywordflow}{if} (mp\_hs != NULL) \{
99 45         \textcolor{keyword}{delete} mp\_hs;
100 46     \}
101 47     \textcolor{keywordflow}{if} (mp\_wm != NULL) \{
102 48         \textcolor{keyword}{delete} mp\_wm;
103 49     \}
104 50 \}
105 \end{DoxyCode}
106
107
108 \subsection{Member Function Documentation}
109 \mbox{\Hypertarget{class_event_handler_ab0ead6a5680ef6f7d7b27cbd0a0d7793}\label{class_event_handler_ab0ead6a5680ef6f7d7b27cbd0a0d7793}} 
110 \index{Event\+Handler@{Event\+Handler}!activate\+Surface@{activate\+Surface}}
111 \index{activate\+Surface@{activate\+Surface}!Event\+Handler@{Event\+Handler}}
112 \subsubsection{\texorpdfstring{activate\+Surface()}{activateSurface()}}
113 {\footnotesize\ttfamily void Event\+Handler\+::activate\+Surface (\begin{DoxyParamCaption}\item[{Q\+String}]{app }\end{DoxyParamCaption})}
114
115
116
117 Definition at line 202 of file eventhandler.\+cpp.
118
119
120 \begin{DoxyCode}
121 203 \{
122 204     \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"EventHandler::activateSurface()"});
123 205     \textcolor{keywordflow}{if} (m\_isActive == \textcolor{keyword}{false}) \{
124 206         m\_isActive = \textcolor{keyword}{true};
125 207         mp\_wm->activateSurface(\hyperlink{eventhandler_8cpp_a85c2ed976bb69da6ecff844592d54871}{SCREEN\_NAME});
126 208     \}
127 209 
128 210     QString label = \hyperlink{eventhandler_8cpp_af3c3ddff013ca23b335602c09a46324f}{SCREEN\_AREA} + app;
129 211     mp\_wm->activateSurface(label, \hyperlink{eventhandler_8cpp_af3c3ddff013ca23b335602c09a46324f}{SCREEN\_AREA});
130 212 \}
131 \end{DoxyCode}
132 \mbox{\Hypertarget{class_event_handler_a7c22084c4d88ce4edb19f81bddc517bf}\label{class_event_handler_a7c22084c4d88ce4edb19f81bddc517bf}} 
133 \index{Event\+Handler@{Event\+Handler}!deactivate\+Surface@{deactivate\+Surface}}
134 \index{deactivate\+Surface@{deactivate\+Surface}!Event\+Handler@{Event\+Handler}}
135 \subsubsection{\texorpdfstring{deactivate\+Surface()}{deactivateSurface()}}
136 {\footnotesize\ttfamily void Event\+Handler\+::deactivate\+Surface (\begin{DoxyParamCaption}\item[{Q\+String}]{app }\end{DoxyParamCaption})}
137
138
139
140 Definition at line 214 of file eventhandler.\+cpp.
141
142
143 \begin{DoxyCode}
144 215 \{
145 216     \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"EventHandler::deactivateSurface()"});
146 217 
147 218     \textcolor{keywordflow}{for}(QVector<ON\_SCREEN\_MESSAGE>::iterator it = m\_vecOSM.begin(); it != m\_vecOSM.end(); ++it) \{
148 219         \textcolor{keywordflow}{if} (it->app == app) \{
149 220             m\_vecOSM.erase(it);
150 221             \textcolor{keywordflow}{break};
151 222         \}
152 223     \}
153 224 
154 225     \textcolor{keywordflow}{if} (m\_vecOSM.length() > 0) \{
155 226         \hyperlink{struct__on__screen__message}{ON\_SCREEN\_MESSAGE} osm = m\_vecOSM.last();
156 227 
157 228         \textcolor{keywordflow}{if} (!osm.\hyperlink{struct__on__screen__message_aec7c0ab7e3f74419536b785b888c312f}{file}.isEmpty()) \{
158 229             emit this->\hyperlink{class_event_handler_a7ae24cecc901ec38b1c0b471d29fc0a1}{signalLoader}(osm.\hyperlink{struct__on__screen__message_aec7c0ab7e3f74419536b785b888c312f}{file});
159 230             emit this->\hyperlink{class_event_handler_ae6969a0f9c428b976857f4675d6ce53b}{signalSetClearBackgroud}();
160 231         \}
161 232     \} \textcolor{keywordflow}{else} \{
162 233         \textcolor{comment}{// nothing on screen}
163 234         mp\_wm->deactivateSurface(\hyperlink{eventhandler_8cpp_a85c2ed976bb69da6ecff844592d54871}{SCREEN\_NAME});
164 235 \textcolor{comment}{// ???        mp\_wm->deactivateSurface(SCREEN\_AREA);}
165 236         m\_isActive = \textcolor{keyword}{false};
166 237     \}
167 238 \}
168 \end{DoxyCode}
169 \mbox{\Hypertarget{class_event_handler_ae8bf972e7e84edcd55ca9ecdf7d3ec7b}\label{class_event_handler_ae8bf972e7e84edcd55ca9ecdf7d3ec7b}} 
170 \index{Event\+Handler@{Event\+Handler}!init@{init}}
171 \index{init@{init}!Event\+Handler@{Event\+Handler}}
172 \subsubsection{\texorpdfstring{init()}{init()}}
173 {\footnotesize\ttfamily void Event\+Handler\+::init (\begin{DoxyParamCaption}\item[{int}]{port,  }\item[{const char $\ast$}]{token }\end{DoxyParamCaption})}
174
175
176
177 Definition at line 52 of file eventhandler.\+cpp.
178
179
180 \begin{DoxyCode}
181 53 \{
182 54     \hyperlink{class_event_handler_a14bde48ca3c44767417b39d504edbbb4}{myThis} = \textcolor{keyword}{this};
183 55     mp\_wm = \textcolor{keyword}{new} QLibWindowmanager();
184 56     mp\_wm->init(port, token);
185 57 
186 58     mp\_hs = \textcolor{keyword}{new} LibHomeScreen();
187 59     mp\_hs->init(port, token);
188 60     
189 61     mp\_hs->registerCallback(\textcolor{keyword}{nullptr}, \hyperlink{class_event_handler_a8840c662c136fc27b1b22f3c8053b7ca}{EventHandler::onRep\_static});
190 62     mp\_hs->set\_event\_handler(LibHomeScreen::Event\_OnScreenMessage, [\textcolor{keyword}{this}](json\_object *\textcolor{keywordtype}{object})\{
191 63         \textcolor{keyword}{struct }json\_object *value;
192 64         json\_object\_object\_get\_ex(\textcolor{keywordtype}{object}, \textcolor{stringliteral}{"display\_message"}, &value);
193 65         \textcolor{keyword}{const} \textcolor{keywordtype}{char} *display\_message = json\_object\_get\_string(value);
194 66 
195 67         \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"display\_message = %s"}, display\_message);
196 68 
197 69         QString data(display\_message);
198 70         QJsonDocument doc = QJsonDocument::fromJson(data.toUtf8());
199 71         QJsonObject jsonObj(doc.object());
200 72 
201 73         \hyperlink{struct__on__screen__message}{ON\_SCREEN\_MESSAGE} osm;
202 74 
203 75         \textcolor{keywordflow}{if} (jsonObj.contains(\textcolor{stringliteral}{"app"})) \{
204 76             \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"json parse. app is %s"}, jsonObj[\textcolor{stringliteral}{"app"}].toString());
205 77             osm.app = jsonObj[\textcolor{stringliteral}{"app"}].toString();
206 78         \}
207 79 
208 80         \textcolor{keywordflow}{if} (jsonObj.contains(\textcolor{stringliteral}{"message"})) \{
209 81             \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"json parse. message is %s"}, jsonObj[\textcolor{stringliteral}{"message"}].toString());
210 82             osm.message = jsonObj[\textcolor{stringliteral}{"message"}].toString();
211 83         \}
212 84 
213 85         \textcolor{keywordflow}{if} (jsonObj.contains(\textcolor{stringliteral}{"file"})) \{
214 86             \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"json parse. file is %s"}, jsonObj[\textcolor{stringliteral}{"file"}].toString());
215 87             osm.file = jsonObj[\textcolor{stringliteral}{"file"}].toString();
216 88 
217 89             \textcolor{keywordflow}{if} (osm.file.left(1) == \textcolor{stringliteral}{"/"}) \{
218 90                 osm.file = QUrl::fromLocalFile(osm.file).toString();
219 91             \}
220 92         \}
221 93 
222 94         \textcolor{keywordflow}{if} (jsonObj.contains(\textcolor{stringliteral}{"mask"})) \{
223 95             \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"json parse. mask is %s"}, jsonObj[\textcolor{stringliteral}{"mask"}].toString());
224 96             osm.mask = jsonObj[\textcolor{stringliteral}{"mask"}].toString();
225 97         \}
226 98 
227 99         \textcolor{keywordtype}{bool} isNewApp = \textcolor{keyword}{true};
228 100         \textcolor{keywordflow}{for}(QVector<ON\_SCREEN\_MESSAGE>::iterator it = m\_vecOSM.begin(); it != m\_vecOSM.end(); ++it) \{
229 101             \textcolor{keywordflow}{if} (it->app == osm.app) \{
230 102                 it->message = osm.message;
231 103                 it->file = osm.file;
232 104                 it->mask = osm.mask;
233 105                 isNewApp = \textcolor{keyword}{false};
234 106                 \textcolor{keywordflow}{break};
235 107             \}
236 108         \}
237 109 
238 110         \textcolor{keywordflow}{if} (isNewApp) \{
239 111             m\_vecOSM.append(osm);
240 112         \}
241 113 
242 114         \textcolor{keywordflow}{if} (osm.app == \textcolor{stringliteral}{"Phone"}) \{
243 115             \textcolor{keywordflow}{if} (osm.message == \textcolor{stringliteral}{"incoming call"}) \{
244 116                 this->\hyperlink{class_event_handler_ab0ead6a5680ef6f7d7b27cbd0a0d7793}{activateSurface}(osm.app);
245 117                 emit this->\hyperlink{class_event_handler_a7ae24cecc901ec38b1c0b471d29fc0a1}{signalLoader}(osm.file);
246 118                 emit this->\hyperlink{class_event_handler_ae6969a0f9c428b976857f4675d6ce53b}{signalSetClearBackgroud}();
247 119             \}
248 120             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (osm.message == \textcolor{stringliteral}{"call rejected"}) \{
249 121                 this->\hyperlink{class_event_handler_a7c22084c4d88ce4edb19f81bddc517bf}{deactivateSurface}(osm.app);
250 122             \}
251 123         \}
252 124         \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (osm.app == \textcolor{stringliteral}{"System"}) \{
253 125             \textcolor{keywordflow}{if} (osm.message == \textcolor{stringliteral}{"error"}) \{
254 126                 this->\hyperlink{class_event_handler_ab0ead6a5680ef6f7d7b27cbd0a0d7793}{activateSurface}(osm.app);
255 127                 emit this->\hyperlink{class_event_handler_a7ae24cecc901ec38b1c0b471d29fc0a1}{signalLoader}(osm.file);
256 128                 emit this->\hyperlink{class_event_handler_ae6969a0f9c428b976857f4675d6ce53b}{signalSetClearBackgroud}();
257 129             \}
258 130             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (osm.message == \textcolor{stringliteral}{"rejected"}) \{
259 131                 this->\hyperlink{class_event_handler_a7c22084c4d88ce4edb19f81bddc517bf}{deactivateSurface}(osm.app);
260 132             \}
261 133         \}
262 134 
263 135 \textcolor{comment}{//        this->setWindowMask(jsonObj["mask"].toString());}
264 136 
265 137 \textcolor{comment}{//        if(strcmp(display\_message, "incoming call") == 0)\{}
266 138 \textcolor{comment}{//            this->activateSurface();}
267 139 \textcolor{comment}{//            emit this->signalOnScreenMessage(display\_message);}
268 140 \textcolor{comment}{//        \}}
269 141 \textcolor{comment}{//        else if(strcmp(display\_message, "call rejected") == 0)\{}
270 142 \textcolor{comment}{//            this->deactivateSurface();}
271 143 \textcolor{comment}{//        \}}
272 144 \textcolor{comment}{//        else if(strcmp(display\_message, "page1") == 0) \{}
273 145 \textcolor{comment}{//            emit this->signalLoader("qrc:/page1.qml");}
274 146 \textcolor{comment}{//        \}}
275 147 \textcolor{comment}{//        else if(strcmp(display\_message, "page2") == 0) \{}
276 148 \textcolor{comment}{//            emit this->signalLoader("qrc:/page2.qml");}
277 149 \textcolor{comment}{//        \}}
278 150 \textcolor{comment}{//        else if(strcmp(display\_message, "page3") == 0) \{}
279 151 \textcolor{comment}{//            emit this->signalLoader(QUrl::fromLocalFile("/home/root/page3.qml"));}
280 152 \textcolor{comment}{//        \}}
281 153 \textcolor{comment}{//        else\{}
282 154 \textcolor{comment}{//            emit this->signalOnScreenMessage(display\_message);}
283 155 \textcolor{comment}{//        \}}
284 156     \});
285 157 
286 158     \textcolor{keywordflow}{if} (mp\_wm->requestSurface(\hyperlink{eventhandler_8cpp_a85c2ed976bb69da6ecff844592d54871}{SCREEN\_NAME}) != 0) \{
287 159         \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"!!!!LayoutHandler requestSurface Failed!!!!!"});
288 160         exit(EXIT\_FAILURE);
289 161     \}
290 162 
291 163     mp\_wm->set\_event\_handler(QLibWindowmanager::Event\_SyncDraw, [\textcolor{keyword}{this}](json\_object *\textcolor{keywordtype}{object}) \{
292 164         \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"Surface %s got syncDraw!"}, 
293       \hyperlink{eventhandler_8cpp_a85c2ed976bb69da6ecff844592d54871}{SCREEN\_NAME});
294 165         this->mp\_wm->endDraw(\hyperlink{eventhandler_8cpp_a85c2ed976bb69da6ecff844592d54871}{SCREEN\_NAME});
295 166     \});
296 167 
297 168     mp\_wm->set\_event\_handler(QLibWindowmanager::Event\_Active, [\textcolor{keyword}{this}](json\_object *\textcolor{keywordtype}{object}) \{
298 169         \textcolor{keyword}{struct }json\_object *value;
299 170         json\_object\_object\_get\_ex(\textcolor{keywordtype}{object}, \textcolor{stringliteral}{"drawing\_name"}, &value);
300 171         \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name = json\_object\_get\_string(value);
301 172 
302 173         \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"Event\_Active kKeyDrawingName = %s"}, name);
303 174     \});
304 175 
305 176     mp\_wm->set\_event\_handler(QLibWindowmanager::Event\_Inactive, [\textcolor{keyword}{this}](json\_object *\textcolor{keywordtype}{object}) \{
306 177         \textcolor{keyword}{struct }json\_object *value;
307 178         json\_object\_object\_get\_ex(\textcolor{keywordtype}{object}, \textcolor{stringliteral}{"drawing\_name"}, &value);
308 179         \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name = json\_object\_get\_string(value);
309 180 
310 181         \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"Event\_Inactive kKeyDrawingName = %s"}, name);
311 182     \});
312 183 
313 184     \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"LayoutHander::init() finished."});
314 185 \}
315 \end{DoxyCode}
316 \mbox{\Hypertarget{class_event_handler_a8d6687bd094bf69deb54551da939ce27}\label{class_event_handler_a8d6687bd094bf69deb54551da939ce27}} 
317 \index{Event\+Handler@{Event\+Handler}!on\+Rep@{on\+Rep}}
318 \index{on\+Rep@{on\+Rep}!Event\+Handler@{Event\+Handler}}
319 \subsubsection{\texorpdfstring{on\+Rep()}{onRep()}}
320 {\footnotesize\ttfamily void Event\+Handler\+::on\+Rep (\begin{DoxyParamCaption}\item[{struct json\+\_\+object $\ast$}]{reply\+\_\+contents }\end{DoxyParamCaption})}
321
322
323
324 Definition at line 196 of file eventhandler.\+cpp.
325
326
327 \begin{DoxyCode}
328 197 \{
329 198     \textcolor{keyword}{const} \textcolor{keywordtype}{char}* str = json\_object\_to\_json\_string(reply\_contents);
330 199     \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"EventHandler::onReply %s"}, str);
331 200 \}
332 \end{DoxyCode}
333 \mbox{\Hypertarget{class_event_handler_a8840c662c136fc27b1b22f3c8053b7ca}\label{class_event_handler_a8840c662c136fc27b1b22f3c8053b7ca}} 
334 \index{Event\+Handler@{Event\+Handler}!on\+Rep\+\_\+static@{on\+Rep\+\_\+static}}
335 \index{on\+Rep\+\_\+static@{on\+Rep\+\_\+static}!Event\+Handler@{Event\+Handler}}
336 \subsubsection{\texorpdfstring{on\+Rep\+\_\+static()}{onRep\_static()}}
337 {\footnotesize\ttfamily void Event\+Handler\+::on\+Rep\+\_\+static (\begin{DoxyParamCaption}\item[{struct json\+\_\+object $\ast$}]{reply\+\_\+contents }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}
338
339
340
341 Definition at line 192 of file eventhandler.\+cpp.
342
343
344 \begin{DoxyCode}
345 193 \{
346 194     \textcolor{keyword}{static\_cast<}\hyperlink{class_event_handler}{EventHandler}*\textcolor{keyword}{>}(\hyperlink{class_event_handler_a14bde48ca3c44767417b39d504edbbb4}{EventHandler::myThis})->
347       \hyperlink{class_event_handler_a8d6687bd094bf69deb54551da939ce27}{onRep}(reply\_contents);
348 195 \}
349 \end{DoxyCode}
350 \mbox{\Hypertarget{class_event_handler_a110371bf721239a23684c0f73d9374d6}\label{class_event_handler_a110371bf721239a23684c0f73d9374d6}} 
351 \index{Event\+Handler@{Event\+Handler}!on\+Screen\+Reply@{on\+Screen\+Reply}}
352 \index{on\+Screen\+Reply@{on\+Screen\+Reply}!Event\+Handler@{Event\+Handler}}
353 \subsubsection{\texorpdfstring{on\+Screen\+Reply()}{onScreenReply()}}
354 {\footnotesize\ttfamily void Event\+Handler\+::on\+Screen\+Reply (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{message }\end{DoxyParamCaption})}
355
356
357
358 Definition at line 240 of file eventhandler.\+cpp.
359
360
361 \begin{DoxyCode}
362 241 \{
363 242     \hyperlink{hmi-debug_8h_a0d26d8b8201011dade787236519711c0}{HMI\_DEBUG}(\textcolor{stringliteral}{"onscreenapp"}, \textcolor{stringliteral}{"EventHandler::onScreenReply()"});
364 243     mp\_hs->onScreenReply(message.toLatin1());
365 244 \}
366 \end{DoxyCode}
367 \mbox{\Hypertarget{class_event_handler_a8860b4ef2ab997d4f192e4d3fc8bf648}\label{class_event_handler_a8860b4ef2ab997d4f192e4d3fc8bf648}} 
368 \index{Event\+Handler@{Event\+Handler}!set\+Quick\+Window@{set\+Quick\+Window}}
369 \index{set\+Quick\+Window@{set\+Quick\+Window}!Event\+Handler@{Event\+Handler}}
370 \subsubsection{\texorpdfstring{set\+Quick\+Window()}{setQuickWindow()}}
371 {\footnotesize\ttfamily void Event\+Handler\+::set\+Quick\+Window (\begin{DoxyParamCaption}\item[{Q\+Quick\+Window $\ast$}]{qw }\end{DoxyParamCaption})}
372
373
374
375 Definition at line 187 of file eventhandler.\+cpp.
376
377
378 \begin{DoxyCode}
379 188 \{
380 189     mp\_qw = qw;
381 190 \}
382 \end{DoxyCode}
383 \mbox{\Hypertarget{class_event_handler_a7ae24cecc901ec38b1c0b471d29fc0a1}\label{class_event_handler_a7ae24cecc901ec38b1c0b471d29fc0a1}} 
384 \index{Event\+Handler@{Event\+Handler}!signal\+Loader@{signal\+Loader}}
385 \index{signal\+Loader@{signal\+Loader}!Event\+Handler@{Event\+Handler}}
386 \subsubsection{\texorpdfstring{signal\+Loader}{signalLoader}}
387 {\footnotesize\ttfamily void Event\+Handler\+::signal\+Loader (\begin{DoxyParamCaption}\item[{Q\+Variant}]{url }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}
388
389 \mbox{\Hypertarget{class_event_handler_af192ed84d2d223d7adfdd3ad0a4ef63a}\label{class_event_handler_af192ed84d2d223d7adfdd3ad0a4ef63a}} 
390 \index{Event\+Handler@{Event\+Handler}!signal\+On\+Screen\+Message@{signal\+On\+Screen\+Message}}
391 \index{signal\+On\+Screen\+Message@{signal\+On\+Screen\+Message}!Event\+Handler@{Event\+Handler}}
392 \subsubsection{\texorpdfstring{signal\+On\+Screen\+Message}{signalOnScreenMessage}}
393 {\footnotesize\ttfamily void Event\+Handler\+::signal\+On\+Screen\+Message (\begin{DoxyParamCaption}\item[{Q\+Variant}]{display\+\_\+message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}
394
395 \mbox{\Hypertarget{class_event_handler_ae6969a0f9c428b976857f4675d6ce53b}\label{class_event_handler_ae6969a0f9c428b976857f4675d6ce53b}} 
396 \index{Event\+Handler@{Event\+Handler}!signal\+Set\+Clear\+Backgroud@{signal\+Set\+Clear\+Backgroud}}
397 \index{signal\+Set\+Clear\+Backgroud@{signal\+Set\+Clear\+Backgroud}!Event\+Handler@{Event\+Handler}}
398 \subsubsection{\texorpdfstring{signal\+Set\+Clear\+Backgroud}{signalSetClearBackgroud}}
399 {\footnotesize\ttfamily void Event\+Handler\+::signal\+Set\+Clear\+Backgroud (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}
400
401 \mbox{\Hypertarget{class_event_handler_ac95eb95ecee232c14d7bcf28b82077e5}\label{class_event_handler_ac95eb95ecee232c14d7bcf28b82077e5}} 
402 \index{Event\+Handler@{Event\+Handler}!signal\+Set\+Default\+Backgroud@{signal\+Set\+Default\+Backgroud}}
403 \index{signal\+Set\+Default\+Backgroud@{signal\+Set\+Default\+Backgroud}!Event\+Handler@{Event\+Handler}}
404 \subsubsection{\texorpdfstring{signal\+Set\+Default\+Backgroud}{signalSetDefaultBackgroud}}
405 {\footnotesize\ttfamily void Event\+Handler\+::signal\+Set\+Default\+Backgroud (\begin{DoxyParamCaption}\item[{Q\+Variant}]{message }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}
406
407
408
409 \subsection{Member Data Documentation}
410 \mbox{\Hypertarget{class_event_handler_a14bde48ca3c44767417b39d504edbbb4}\label{class_event_handler_a14bde48ca3c44767417b39d504edbbb4}} 
411 \index{Event\+Handler@{Event\+Handler}!my\+This@{my\+This}}
412 \index{my\+This@{my\+This}!Event\+Handler@{Event\+Handler}}
413 \subsubsection{\texorpdfstring{my\+This}{myThis}}
414 {\footnotesize\ttfamily void $\ast$ Event\+Handler\+::my\+This = 0\hspace{0.3cm}{\ttfamily [static]}}
415
416
417
418 Definition at line 53 of file eventhandler.\+h.
419
420
421
422 The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
423 \item 
424 app/\hyperlink{eventhandler_8h}{eventhandler.\+h}\item 
425 app/\hyperlink{eventhandler_8cpp}{eventhandler.\+cpp}\end{DoxyCompactItemize}