<!DOCTYPE html>
<html lang='en'>
<head>
<title>meta-agl - meta-agl layer (core AGL)</title>
<meta name='generator' content='cgit 1.2.3-korg'/>
<meta name='robots' content='noindex, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit-data/cgit.css'/>
<script type='text/javascript' src='/cgit.js'></script>
<link rel='shortcut icon' href='/favicon.ico'/>
<link rel='alternate' title='Atom feed' href='http://git.automotivelinux.org/AGL/meta-agl/atom/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0' type='application/atom+xml'/>
<link rel='vcs-git' href='https://git.automotivelinux.org/AGL/meta-agl' title='meta-agl Git repository'/>
<link rel='vcs-git' href='https://gerrit.automotivelinux.org/gerrit/AGL/meta-agl' title='meta-agl Git repository'/>
</head>
<body>
<div id="lfcollabprojects-header">
  <div class="gray-diagonal">
    <div class="header-inner">
      <a
        id="lfcollabprojects-logo"
        href="http://collabprojects.linuxfoundation.org"
        >Linux Foundation Collaborative Projects</a
      >
    </div>
  </div>
</div>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='/cgit-data/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a href='/AGL/meta-agl/'>meta-agl</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'/><select name='h' onchange='this.form.submit();'>
<option value='albacore'>albacore</option>
<option value='blowfish'>blowfish</option>
<option value='chinook'>chinook</option>
<option value='dab'>dab</option>
<option value='eel'>eel</option>
<option value='flounder'>flounder</option>
<option value='guppy'>guppy</option>
<option value='halibut'>halibut</option>
<option value='icefish'>icefish</option>
<option value='jellyfish'>jellyfish</option>
<option value='koi'>koi</option>
<option value='lamprey'>lamprey</option>
<option value='marlin'>marlin</option>
<option value='master'>master</option>
<option value='needlefish'>needlefish</option>
<option value='next'>next</option>
<option value='octopus'>octopus</option>
<option value='pike'>pike</option>
<option value='quillback'>quillback</option>
<option value='ricefish'>ricefish</option>
<option value='sandbox/YAMAGUCHINaoto/rk3588-nanopc-t6'>sandbox/YAMAGUCHINaoto/rk3588-nanopc-t6</option>
<option value='sandbox/hauvolecong/spec4808'>sandbox/hauvolecong/spec4808</option>
<option value='sandbox/jsmoeller/canbusfd'>sandbox/jsmoeller/canbusfd</option>
<option value='sandbox/jsmoeller/cleanup'>sandbox/jsmoeller/cleanup</option>
<option value='sandbox/jsmoeller/lamprey'>sandbox/jsmoeller/lamprey</option>
<option value='sandbox/jsmoeller/next-riscv-EW24'>sandbox/jsmoeller/next-riscv-EW24</option>
<option value='sandbox/jsmoeller/qt6'>sandbox/jsmoeller/qt6</option>
<option value='sandbox/jsmoeller/rmappfw'>sandbox/jsmoeller/rmappfw</option>
<option value='sandbox/nguyentanloc27/S4SK-dev'>sandbox/nguyentanloc27/S4SK-dev</option>
<option value='sandbox/nguyentanloc27/spec4808'>sandbox/nguyentanloc27/spec4808</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>meta-agl layer (core AGL)</td><td class='sub right'>Grokmirror user</td></tr></table>
<table class='tabs'><tr><td>
<a href='/AGL/meta-agl/?h=9.0.0'>summary</a><a href='/AGL/meta-agl/refs/?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>refs</a><a href='/AGL/meta-agl/log/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0'>log</a><a href='/AGL/meta-agl/tree/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>tree</a><a href='/AGL/meta-agl/commit/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>commit</a><a class='active' href='/AGL/meta-agl/diff/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>diff</a><a href='/AGL/meta-agl/stats/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0'>stats</a></td><td class='form'><form class='right' method='get' action='/AGL/meta-agl/log/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb'>
<input type='hidden' name='h' value='9.0.0'/><input type='hidden' name='id' value='6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/AGL/meta-agl/diff/?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>root</a>/<a href='/AGL/meta-agl/diff/meta-agl-bsp?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>meta-agl-bsp</a>/<a href='/AGL/meta-agl/diff/meta-agl-bsp/meta-qcom?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>meta-qcom</a>/<a href='/AGL/meta-agl/diff/meta-agl-bsp/meta-qcom/recipes-bsp?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>recipes-bsp</a>/<a href='/AGL/meta-agl/diff/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>96boards-tools</a>/<a href='/AGL/meta-agl/diff/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>96boards-tools_0.12.bb</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='9.0.0'/><input type='hidden' name='id' value='6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><div class='diffstat-header'><a href='/AGL/meta-agl/diff/?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>Diffstat</a> (limited to 'meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb')</div><table summary='diffstat' class='diffstat'><tr><td class='mode'>-rw-r--r--</td><td class='add'><a href='/AGL/meta-agl/diff/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb</a></td><td class='right'>32</td><td class='graph'><table summary='file diffstat' width='32%'><tr><td class='add' style='width: 100.0%;'/><td class='rem' style='width: 0.0%;'/><td class='none' style='width: 0.0%;'/></tr></table></td></tr>
</table><div class='diffstat-summary'>1 files changed, 32 insertions, 0 deletions</div><table summary='diff' class='diff'><tr><td><div class='head'>diff --git a/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb b/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb<br/>new file mode 100644<br/>index 000000000..446770f8e<br/>--- /dev/null<br/>+++ b/<a href='/AGL/meta-agl/tree/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb?h=9.0.0&amp;id=6864c5a0eddf3d971f4ca4cc1ae817d91a074caf'>meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.12.bb</a></div><div class='hunk'>@@ -0,0 +1,32 @@</div><div class='add'>+SUMMARY = "Useful bits an pieces to make 96Boards more standard across the board"</div><div class='add'>+HOMEPAGE = "https://github.com/96boards/96boards-tools"</div><div class='add'>+SECTION = "devel"</div><div class='add'>+</div><div class='add'>+LICENSE = "GPLv2+"</div><div class='add'>+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"</div><div class='add'>+</div><div class='add'>+SRCREV = "ed0f0dbec02c1869a0c4fa0140b4aa5338c9d010"</div><div class='add'>+SRC_URI = "git://github.com/96boards/96boards-tools;branch=master;protocol=https"</div><div class='add'>+</div><div class='add'>+S = "${WORKDIR}/git"</div><div class='add'>+</div><div class='add'>+inherit systemd allarch update-rc.d</div><div class='add'>+</div><div class='add'>+do_install () {</div><div class='add'>+    install -d ${D}${sysconfdir}/udev/rules.d</div><div class='add'>+    install -m 0755 ${S}/*.rules ${D}${sysconfdir}/udev/rules.d/</div><div class='add'>+    install -d ${D}${sysconfdir}/init.d</div><div class='add'>+    install -m 0755 ${S}/resize-disk ${D}${sysconfdir}/init.d/</div><div class='add'>+</div><div class='add'>+    install -d ${D}${systemd_unitdir}/system</div><div class='add'>+    install -m 0644 ${S}/resize-helper.service ${D}${systemd_unitdir}/system</div><div class='add'>+</div><div class='add'>+    install -d ${D}${sbindir}</div><div class='add'>+    install -m 0755 ${S}/resize-helper ${D}${sbindir}</div><div class='add'>+}</div><div class='add'>+</div><div class='add'>+INITSCRIPT_NAME = "resize-disk"</div><div class='add'>+INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."</div><div class='add'>+</div><div class='add'>+SYSTEMD_SERVICE_${PN} = "resize-helper.service"</div><div class='add'>+RDEPENDS_${PN} += "e2fsprogs-resize2fs gptfdisk parted util-linux udev"</div></td></tr></table></div> <!-- class=content -->
<div id="lfcollabprojects-footer">
  <div class="gray-diagonal">
    <div class="footer-inner">
      <p>Copyright &copy; 2015 The Linux Foundation. All rights reserved.</p>
      <p>
        Linux Foundation, Linux Standard Base, LSB, LSB Certified, IAccessible2,
        MeeGo are registered trademarks of the Linux Foundation.
      </p>
      <p>
        Linux is a registered
        <a href="http://www.linuxfoundation.org/programs/legal/trademark"
          >trademark</a
        >
        of Linus Torvalds. Please see our
        <a href="https://www.linuxfoundation.org/privacy">privacy policy</a>.
      </p>
    </div>
  </div>
</div>
</div> <!-- id=cgit -->
</body>
</html>
ref='#n148'>148</a>
<a id='n149' href='#n149'>149</a>
<a id='n150' href='#n150'>150</a>
<a id='n151' href='#n151'>151</a>
<a id='n152' href='#n152'>152</a>
<a id='n153' href='#n153'>153</a>
<a id='n154' href='#n154'>154</a>
<a id='n155' href='#n155'>155</a>
<a id='n156' href='#n156'>156</a>
<a id='n157' href='#n157'>157</a>
<a id='n158' href='#n158'>158</a>
<a id='n159' href='#n159'>159</a>
<a id='n160' href='#n160'>160</a>
<a id='n161' href='#n161'>161</a>
<a id='n162' href='#n162'>162</a>
<a id='n163' href='#n163'>163</a>
<a id='n164' href='#n164'>164</a>
<a id='n165' href='#n165'>165</a>
<a id='n166' href='#n166'>166</a>
<a id='n167' href='#n167'>167</a>
<a id='n168' href='#n168'>168</a>
<a id='n169' href='#n169'>169</a>
<a id='n170' href='#n170'>170</a>
<a id='n171' href='#n171'>171</a>
<a id='n172' href='#n172'>172</a>
<a id='n173' href='#n173'>173</a>
<a id='n174' href='#n174'>174</a>
<a id='n175' href='#n175'>175</a>
<a id='n176' href='#n176'>176</a>
<a id='n177' href='#n177'>177</a>
<a id='n178' href='#n178'>178</a>
<a id='n179' href='#n179'>179</a>
<a id='n180' href='#n180'>180</a>
<a id='n181' href='#n181'>181</a>
<a id='n182' href='#n182'>182</a>
<a id='n183' href='#n183'>183</a>
<a id='n184' href='#n184'>184</a>
<a id='n185' href='#n185'>185</a>
<a id='n186' href='#n186'>186</a>
<a id='n187' href='#n187'>187</a>
<a id='n188' href='#n188'>188</a>
<a id='n189' href='#n189'>189</a>
<a id='n190' href='#n190'>190</a>
<a id='n191' href='#n191'>191</a>
<a id='n192' href='#n192'>192</a>
<a id='n193' href='#n193'>193</a>
<a id='n194' href='#n194'>194</a>
<a id='n195' href='#n195'>195</a>
<a id='n196' href='#n196'>196</a>
<a id='n197' href='#n197'>197</a>
<a id='n198' href='#n198'>198</a>
<a id='n199' href='#n199'>199</a>
<a id='n200' href='#n200'>200</a>
<a id='n201' href='#n201'>201</a>
<a id='n202' href='#n202'>202</a>
<a id='n203' href='#n203'>203</a>
<a id='n204' href='#n204'>204</a>
<a id='n205' href='#n205'>205</a>
<a id='n206' href='#n206'>206</a>
<a id='n207' href='#n207'>207</a>
<a id='n208' href='#n208'>208</a>
<a id='n209' href='#n209'>209</a>
<a id='n210' href='#n210'>210</a>
<a id='n211' href='#n211'>211</a>
<a id='n212' href='#n212'>212</a>
<a id='n213' href='#n213'>213</a>
<a id='n214' href='#n214'>214</a>
<a id='n215' href='#n215'>215</a>
<a id='n216' href='#n216'>216</a>
<a id='n217' href='#n217'>217</a>
<a id='n218' href='#n218'>218</a>
<a id='n219' href='#n219'>219</a>
<a id='n220' href='#n220'>220</a>
<a id='n221' href='#n221'>221</a>
<a id='n222' href='#n222'>222</a>
<a id='n223' href='#n223'>223</a>
<a id='n224' href='#n224'>224</a>
<a id='n225' href='#n225'>225</a>
<a id='n226' href='#n226'>226</a>
<a id='n227' href='#n227'>227</a>
<a id='n228' href='#n228'>228</a>
<a id='n229' href='#n229'>229</a>
<a id='n230' href='#n230'>230</a>
<a id='n231' href='#n231'>231</a>
<a id='n232' href='#n232'>232</a>
<a id='n233' href='#n233'>233</a>
<a id='n234' href='#n234'>234</a>
<a id='n235' href='#n235'>235</a>
<a id='n236' href='#n236'>236</a>
<a id='n237' href='#n237'>237</a>
<a id='n238' href='#n238'>238</a>
<a id='n239' href='#n239'>239</a>
<a id='n240' href='#n240'>240</a>
<a id='n241' href='#n241'>241</a>
<a id='n242' href='#n242'>242</a>
<a id='n243' href='#n243'>243</a>
<a id='n244' href='#n244'>244</a>
<a id='n245' href='#n245'>245</a>
<a id='n246' href='#n246'>246</a>
<a id='n247' href='#n247'>247</a>
<a id='n248' href='#n248'>248</a>
<a id='n249' href='#n249'>249</a>
<a id='n250' href='#n250'>250</a>
<a id='n251' href='#n251'>251</a>
<a id='n252' href='#n252'>252</a>
<a id='n253' href='#n253'>253</a>
<a id='n254' href='#n254'>254</a>
<a id='n255' href='#n255'>255</a>
<a id='n256' href='#n256'>256</a>
<a id='n257' href='#n257'>257</a>
<a id='n258' href='#n258'>258</a>
<a id='n259' href='#n259'>259</a>
<a id='n260' href='#n260'>260</a>
<a id='n261' href='#n261'>261</a>
<a id='n262' href='#n262'>262</a>
<a id='n263' href='#n263'>263</a>
<a id='n264' href='#n264'>264</a>
<a id='n265' href='#n265'>265</a>
<a id='n266' href='#n266'>266</a>
<a id='n267' href='#n267'>267</a>
<a id='n268' href='#n268'>268</a>
<a id='n269' href='#n269'>269</a>
<a id='n270' href='#n270'>270</a>
<a id='n271' href='#n271'>271</a>
<a id='n272' href='#n272'>272</a>
<a id='n273' href='#n273'>273</a>
<a id='n274' href='#n274'>274</a>
<a id='n275' href='#n275'>275</a>
<a id='n276' href='#n276'>276</a>
<a id='n277' href='#n277'>277</a>
<a id='n278' href='#n278'>278</a>
<a id='n279' href='#n279'>279</a>
<a id='n280' href='#n280'>280</a>
<a id='n281' href='#n281'>281</a>
<a id='n282' href='#n282'>282</a>
<a id='n283' href='#n283'>283</a>
<a id='n284' href='#n284'>284</a>
<a id='n285' href='#n285'>285</a>
<a id='n286' href='#n286'>286</a>
<a id='n287' href='#n287'>287</a>
<a id='n288' href='#n288'>288</a>
<a id='n289' href='#n289'>289</a>
<a id='n290' href='#n290'>290</a>
<a id='n291' href='#n291'>291</a>
<a id='n292' href='#n292'>292</a>
<a id='n293' href='#n293'>293</a>
<a id='n294' href='#n294'>294</a>
<a id='n295' href='#n295'>295</a>
<a id='n296' href='#n296'>296</a>
<a id='n297' href='#n297'>297</a>
<a id='n298' href='#n298'>298</a>
<a id='n299' href='#n299'>299</a>
<a id='n300' href='#n300'>300</a>
<a id='n301' href='#n301'>301</a>
<a id='n302' href='#n302'>302</a>
<a id='n303' href='#n303'>303</a>
<a id='n304' href='#n304'>304</a>
<a id='n305' href='#n305'>305</a>
<a id='n306' href='#n306'>306</a>
<a id='n307' href='#n307'>307</a>
<a id='n308' href='#n308'>308</a>
<a id='n309' href='#n309'>309</a>
<a id='n310' href='#n310'>310</a>
<a id='n311' href='#n311'>311</a>
<a id='n312' href='#n312'>312</a>
<a id='n313' href='#n313'>313</a>
<a id='n314' href='#n314'>314</a>
<a id='n315' href='#n315'>315</a>
<a id='n316' href='#n316'>316</a>
<a id='n317' href='#n317'>317</a>
<a id='n318' href='#n318'>318</a>
<a id='n319' href='#n319'>319</a>
<a id='n320' href='#n320'>320</a>
<a id='n321' href='#n321'>321</a>
<a id='n322' href='#n322'>322</a>
<a id='n323' href='#n323'>323</a>
<a id='n324' href='#n324'>324</a>
<a id='n325' href='#n325'>325</a>
<a id='n326' href='#n326'>326</a>
<a id='n327' href='#n327'>327</a>
<a id='n328' href='#n328'>328</a>
<a id='n329' href='#n329'>329</a>
<a id='n330' href='#n330'>330</a>
<a id='n331' href='#n331'>331</a>
<a id='n332' href='#n332'>332</a>
<a id='n333' href='#n333'>333</a>
<a id='n334' href='#n334'>334</a>
<a id='n335' href='#n335'>335</a>
<a id='n336' href='#n336'>336</a>
<a id='n337' href='#n337'>337</a>
<a id='n338' href='#n338'>338</a>
<a id='n339' href='#n339'>339</a>
<a id='n340' href='#n340'>340</a>
<a id='n341' href='#n341'>341</a>
<a id='n342' href='#n342'>342</a>
<a id='n343' href='#n343'>343</a>
<a id='n344' href='#n344'>344</a>
<a id='n345' href='#n345'>345</a>
<a id='n346' href='#n346'>346</a>
<a id='n347' href='#n347'>347</a>
<a id='n348' href='#n348'>348</a>
<a id='n349' href='#n349'>349</a>
<a id='n350' href='#n350'>350</a>
<a id='n351' href='#n351'>351</a>
<a id='n352' href='#n352'>352</a>
<a id='n353' href='#n353'>353</a>
<a id='n354' href='#n354'>354</a>
<a id='n355' href='#n355'>355</a>
<a id='n356' href='#n356'>356</a>
<a id='n357' href='#n357'>357</a>
<a id='n358' href='#n358'>358</a>
<a id='n359' href='#n359'>359</a>
<a id='n360' href='#n360'>360</a>
<a id='n361' href='#n361'>361</a>
<a id='n362' href='#n362'>362</a>
<a id='n363' href='#n363'>363</a>
<a id='n364' href='#n364'>364</a>
<a id='n365' href='#n365'>365</a>
<a id='n366' href='#n366'>366</a>
<a id='n367' href='#n367'>367</a>
<a id='n368' href='#n368'>368</a>
<a id='n369' href='#n369'>369</a>
<a id='n370' href='#n370'>370</a>
<a id='n371' href='#n371'>371</a>
<a id='n372' href='#n372'>372</a>
<a id='n373' href='#n373'>373</a>
<a id='n374' href='#n374'>374</a>
<a id='n375' href='#n375'>375</a>
<a id='n376' href='#n376'>376</a>
<a id='n377' href='#n377'>377</a>
<a id='n378' href='#n378'>378</a>
<a id='n379' href='#n379'>379</a>
<a id='n380' href='#n380'>380</a>
<a id='n381' href='#n381'>381</a>
<a id='n382' href='#n382'>382</a>
<a id='n383' href='#n383'>383</a>
<a id='n384' href='#n384'>384</a>
<a id='n385' href='#n385'>385</a>
<a id='n386' href='#n386'>386</a>
<a id='n387' href='#n387'>387</a>
<a id='n388' href='#n388'>388</a>
<a id='n389' href='#n389'>389</a>
<a id='n390' href='#n390'>390</a>
<a id='n391' href='#n391'>391</a>
<a id='n392' href='#n392'>392</a>
<a id='n393' href='#n393'>393</a>
<a id='n394' href='#n394'>394</a>
<a id='n395' href='#n395'>395</a>
<a id='n396' href='#n396'>396</a>
<a id='n397' href='#n397'>397</a>
<a id='n398' href='#n398'>398</a>
<a id='n399' href='#n399'>399</a>
<a id='n400' href='#n400'>400</a>
<a id='n401' href='#n401'>401</a>
<a id='n402' href='#n402'>402</a>
<a id='n403' href='#n403'>403</a>
<a id='n404' href='#n404'>404</a>
<a id='n405' href='#n405'>405</a>
<a id='n406' href='#n406'>406</a>
<a id='n407' href='#n407'>407</a>
<a id='n408' href='#n408'>408</a>
<a id='n409' href='#n409'>409</a>
<a id='n410' href='#n410'>410</a>
<a id='n411' href='#n411'>411</a>
<a id='n412' href='#n412'>412</a>
<a id='n413' href='#n413'>413</a>
<a id='n414' href='#n414'>414</a>
<a id='n415' href='#n415'>415</a>
<a id='n416' href='#n416'>416</a>
<a id='n417' href='#n417'>417</a>
<a id='n418' href='#n418'>418</a>
<a id='n419' href='#n419'>419</a>
<a id='n420' href='#n420'>420</a>
<a id='n421' href='#n421'>421</a>
<a id='n422' href='#n422'>422</a>
<a id='n423' href='#n423'>423</a>
<a id='n424' href='#n424'>424</a>
<a id='n425' href='#n425'>425</a>
<a id='n426' href='#n426'>426</a>
<a id='n427' href='#n427'>427</a>
<a id='n428' href='#n428'>428</a>
<a id='n429' href='#n429'>429</a>
<a id='n430' href='#n430'>430</a>
<a id='n431' href='#n431'>431</a>
<a id='n432' href='#n432'>432</a>
<a id='n433' href='#n433'>433</a>
<a id='n434' href='#n434'>434</a>
<a id='n435' href='#n435'>435</a>
<a id='n436' href='#n436'>436</a>
<a id='n437' href='#n437'>437</a>
<a id='n438' href='#n438'>438</a>
<a id='n439' href='#n439'>439</a>
<a id='n440' href='#n440'>440</a>
<a id='n441' href='#n441'>441</a>
<a id='n442' href='#n442'>442</a>
<a id='n443' href='#n443'>443</a>
<a id='n444' href='#n444'>444</a>
<a id='n445' href='#n445'>445</a>
<a id='n446' href='#n446'>446</a>
<a id='n447' href='#n447'>447</a>
<a id='n448' href='#n448'>448</a>
<a id='n449' href='#n449'>449</a>
<a id='n450' href='#n450'>450</a>
<a id='n451' href='#n451'>451</a>
<a id='n452' href='#n452'>452</a>
<a id='n453' href='#n453'>453</a>
<a id='n454' href='#n454'>454</a>
<a id='n455' href='#n455'>455</a>
<a id='n456' href='#n456'>456</a>
<a id='n457' href='#n457'>457</a>
<a id='n458' href='#n458'>458</a>
<a id='n459' href='#n459'>459</a>
<a id='n460' href='#n460'>460</a>
<a id='n461' href='#n461'>461</a>
<a id='n462' href='#n462'>462</a>
<a id='n463' href='#n463'>463</a>
<a id='n464' href='#n464'>464</a>
<a id='n465' href='#n465'>465</a>
<a id='n466' href='#n466'>466</a>
<a id='n467' href='#n467'>467</a>
<a id='n468' href='#n468'>468</a>
<a id='n469' href='#n469'>469</a>
<a id='n470' href='#n470'>470</a>
<a id='n471' href='#n471'>471</a>
<a id='n472' href='#n472'>472</a>
<a id='n473' href='#n473'>473</a>
<a id='n474' href='#n474'>474</a>
<a id='n475' href='#n475'>475</a>
<a id='n476' href='#n476'>476</a>
<a id='n477' href='#n477'>477</a>
<a id='n478' href='#n478'>478</a>
<a id='n479' href='#n479'>479</a>
<a id='n480' href='#n480'>480</a>
<a id='n481' href='#n481'>481</a>
<a id='n482' href='#n482'>482</a>
<a id='n483' href='#n483'>483</a>
<a id='n484' href='#n484'>484</a>
<a id='n485' href='#n485'>485</a>
<a id='n486' href='#n486'>486</a>
<a id='n487' href='#n487'>487</a>
<a id='n488' href='#n488'>488</a>
<a id='n489' href='#n489'>489</a>
<a id='n490' href='#n490'>490</a>
<a id='n491' href='#n491'>491</a>
<a id='n492' href='#n492'>492</a>
<a id='n493' href='#n493'>493</a>
<a id='n494' href='#n494'>494</a>
<a id='n495' href='#n495'>495</a>
<a id='n496' href='#n496'>496</a>
<a id='n497' href='#n497'>497</a>
<a id='n498' href='#n498'>498</a>
<a id='n499' href='#n499'>499</a>
<a id='n500' href='#n500'>500</a>
<a id='n501' href='#n501'>501</a>
<a id='n502' href='#n502'>502</a>
<a id='n503' href='#n503'>503</a>
<a id='n504' href='#n504'>504</a>
<a id='n505' href='#n505'>505</a>
<a id='n506' href='#n506'>506</a>
<a id='n507' href='#n507'>507</a>
<a id='n508' href='#n508'>508</a>
<a id='n509' href='#n509'>509</a>
<a id='n510' href='#n510'>510</a>
<a id='n511' href='#n511'>511</a>
<a id='n512' href='#n512'>512</a>
<a id='n513' href='#n513'>513</a>
<a id='n514' href='#n514'>514</a>
<a id='n515' href='#n515'>515</a>
<a id='n516' href='#n516'>516</a>
<a id='n517' href='#n517'>517</a>
<a id='n518' href='#n518'>518</a>
<a id='n519' href='#n519'>519</a>
<a id='n520' href='#n520'>520</a>
<a id='n521' href='#n521'>521</a>
<a id='n522' href='#n522'>522</a>
<a id='n523' href='#n523'>523</a>
<a id='n524' href='#n524'>524</a>
<a id='n525' href='#n525'>525</a>
<a id='n526' href='#n526'>526</a>
<a id='n527' href='#n527'>527</a>
<a id='n528' href='#n528'>528</a>
<a id='n529' href='#n529'>529</a>
<a id='n530' href='#n530'>530</a>
<a id='n531' href='#n531'>531</a>
<a id='n532' href='#n532'>532</a>
<a id='n533' href='#n533'>533</a>
<a id='n534' href='#n534'>534</a>
<a id='n535' href='#n535'>535</a>
<a id='n536' href='#n536'>536</a>
<a id='n537' href='#n537'>537</a>
<a id='n538' href='#n538'>538</a>
<a id='n539' href='#n539'>539</a>
<a id='n540' href='#n540'>540</a>
<a id='n541' href='#n541'>541</a>
<a id='n542' href='#n542'>542</a>
<a id='n543' href='#n543'>543</a>
<a id='n544' href='#n544'>544</a>
<a id='n545' href='#n545'>545</a>
<a id='n546' href='#n546'>546</a>
<a id='n547' href='#n547'>547</a>
<a id='n548' href='#n548'>548</a>
<a id='n549' href='#n549'>549</a>
<a id='n550' href='#n550'>550</a>
<a id='n551' href='#n551'>551</a>
<a id='n552' href='#n552'>552</a>
<a id='n553' href='#n553'>553</a>
<a id='n554' href='#n554'>554</a>
<a id='n555' href='#n555'>555</a>
<a id='n556' href='#n556'>556</a>
<a id='n557' href='#n557'>557</a>
<a id='n558' href='#n558'>558</a>
<a id='n559' href='#n559'>559</a>
<a id='n560' href='#n560'>560</a>
<a id='n561' href='#n561'>561</a>
<a id='n562' href='#n562'>562</a>
<a id='n563' href='#n563'>563</a>
<a id='n564' href='#n564'>564</a>
<a id='n565' href='#n565'>565</a>
<a id='n566' href='#n566'>566</a>
<a id='n567' href='#n567'>567</a>
<a id='n568' href='#n568'>568</a>
<a id='n569' href='#n569'>569</a>
<a id='n570' href='#n570'>570</a>
<a id='n571' href='#n571'>571</a>
<a id='n572' href='#n572'>572</a>
<a id='n573' href='#n573'>573</a>
<a id='n574' href='#n574'>574</a>
<a id='n575' href='#n575'>575</a>
<a id='n576' href='#n576'>576</a>
<a id='n577' href='#n577'>577</a>
<a id='n578' href='#n578'>578</a>
<a id='n579' href='#n579'>579</a>
<a id='n580' href='#n580'>580</a>
<a id='n581' href='#n581'>581</a>
<a id='n582' href='#n582'>582</a>
<a id='n583' href='#n583'>583</a>
<a id='n584' href='#n584'>584</a>
<a id='n585' href='#n585'>585</a>
<a id='n586' href='#n586'>586</a>
<a id='n587' href='#n587'>587</a>
<a id='n588' href='#n588'>588</a>
<a id='n589' href='#n589'>589</a>
<a id='n590' href='#n590'>590</a>
<a id='n591' href='#n591'>591</a>
<a id='n592' href='#n592'>592</a>
<a id='n593' href='#n593'>593</a>
<a id='n594' href='#n594'>594</a>
<a id='n595' href='#n595'>595</a>
<a id='n596' href='#n596'>596</a>
<a id='n597' href='#n597'>597</a>
<a id='n598' href='#n598'>598</a>
<a id='n599' href='#n599'>599</a>
<a id='n600' href='#n600'>600</a>
<a id='n601' href='#n601'>601</a>
<a id='n602' href='#n602'>602</a>
<a id='n603' href='#n603'>603</a>
<a id='n604' href='#n604'>604</a>
<a id='n605' href='#n605'>605</a>
<a id='n606' href='#n606'>606</a>
<a id='n607' href='#n607'>607</a>
<a id='n608' href='#n608'>608</a>
<a id='n609' href='#n609'>609</a>
<a id='n610' href='#n610'>610</a>
<a id='n611' href='#n611'>611</a>
<a id='n612' href='#n612'>612</a>
<a id='n613' href='#n613'>613</a>
<a id='n614' href='#n614'>614</a>
<a id='n615' href='#n615'>615</a>
<a id='n616' href='#n616'>616</a>
<a id='n617' href='#n617'>617</a>
<a id='n618' href='#n618'>618</a>
<a id='n619' href='#n619'>619</a>
<a id='n620' href='#n620'>620</a>
<a id='n621' href='#n621'>621</a>
<a id='n622' href='#n622'>622</a>
<a id='n623' href='#n623'>623</a>
<a id='n624' href='#n624'>624</a>
<a id='n625' href='#n625'>625</a>
<a id='n626' href='#n626'>626</a>
<a id='n627' href='#n627'>627</a>
<a id='n628' href='#n628'>628</a>
<a id='n629' href='#n629'>629</a>
<a id='n630' href='#n630'>630</a>
<a id='n631' href='#n631'>631</a>
<a id='n632' href='#n632'>632</a>
<a id='n633' href='#n633'>633</a>
<a id='n634' href='#n634'>634</a>
<a id='n635' href='#n635'>635</a>
<a id='n636' href='#n636'>636</a>
<a id='n637' href='#n637'>637</a>
<a id='n638' href='#n638'>638</a>
<a id='n639' href='#n639'>639</a>
<a id='n640' href='#n640'>640</a>
<a id='n641' href='#n641'>641</a>
<a id='n642' href='#n642'>642</a>
<a id='n643' href='#n643'>643</a>
<a id='n644' href='#n644'>644</a>
<a id='n645' href='#n645'>645</a>
<a id='n646' href='#n646'>646</a>
<a id='n647' href='#n647'>647</a>
<a id='n648' href='#n648'>648</a>
<a id='n649' href='#n649'>649</a>
<a id='n650' href='#n650'>650</a>
<a id='n651' href='#n651'>651</a>
<a id='n652' href='#n652'>652</a>
<a id='n653' href='#n653'>653</a>
<a id='n654' href='#n654'>654</a>
<a id='n655' href='#n655'>655</a>
<a id='n656' href='#n656'>656</a>
<a id='n657' href='#n657'>657</a>
<a id='n658' href='#n658'>658</a>
<a id='n659' href='#n659'>659</a>
<a id='n660' href='#n660'>660</a>
<a id='n661' href='#n661'>661</a>
<a id='n662' href='#n662'>662</a>
<a id='n663' href='#n663'>663</a>
<a id='n664' href='#n664'>664</a>
<a id='n665' href='#n665'>665</a>
<a id='n666' href='#n666'>666</a>
<a id='n667' href='#n667'>667</a>
<a id='n668' href='#n668'>668</a>
<a id='n669' href='#n669'>669</a>
<a id='n670' href='#n670'>670</a>
<a id='n671' href='#n671'>671</a>
<a id='n672' href='#n672'>672</a>
<a id='n673' href='#n673'>673</a>
<a id='n674' href='#n674'>674</a>
<a id='n675' href='#n675'>675</a>
<a id='n676' href='#n676'>676</a>
<a id='n677' href='#n677'>677</a>
<a id='n678' href='#n678'>678</a>
<a id='n679' href='#n679'>679</a>
<a id='n680' href='#n680'>680</a>
<a id='n681' href='#n681'>681</a>
<a id='n682' href='#n682'>682</a>
<a id='n683' href='#n683'>683</a>
<a id='n684' href='#n684'>684</a>
<a id='n685' href='#n685'>685</a>
<a id='n686' href='#n686'>686</a>
<a id='n687' href='#n687'>687</a>
<a id='n688' href='#n688'>688</a>
<a id='n689' href='#n689'>689</a>
<a id='n690' href='#n690'>690</a>
<a id='n691' href='#n691'>691</a>
<a id='n692' href='#n692'>692</a>
<a id='n693' href='#n693'>693</a>
<a id='n694' href='#n694'>694</a>
<a id='n695' href='#n695'>695</a>
<a id='n696' href='#n696'>696</a>
<a id='n697' href='#n697'>697</a>
<a id='n698' href='#n698'>698</a>
<a id='n699' href='#n699'>699</a>
<a id='n700' href='#n700'>700</a>
<a id='n701' href='#n701'>701</a>
<a id='n702' href='#n702'>702</a>
<a id='n703' href='#n703'>703</a>
<a id='n704' href='#n704'>704</a>
<a id='n705' href='#n705'>705</a>
<a id='n706' href='#n706'>706</a>
<a id='n707' href='#n707'>707</a>
<a id='n708' href='#n708'>708</a>
<a id='n709' href='#n709'>709</a>
<a id='n710' href='#n710'>710</a>
<a id='n711' href='#n711'>711</a>
<a id='n712' href='#n712'>712</a>
<a id='n713' href='#n713'>713</a>
<a id='n714' href='#n714'>714</a>
<a id='n715' href='#n715'>715</a>
<a id='n716' href='#n716'>716</a>
<a id='n717' href='#n717'>717</a>
<a id='n718' href='#n718'>718</a>
<a id='n719' href='#n719'>719</a>
<a id='n720' href='#n720'>720</a>
<a id='n721' href='#n721'>721</a>
<a id='n722' href='#n722'>722</a>
<a id='n723' href='#n723'>723</a>
<a id='n724' href='#n724'>724</a>
<a id='n725' href='#n725'>725</a>
<a id='n726' href='#n726'>726</a>
<a id='n727' href='#n727'>727</a>
<a id='n728' href='#n728'>728</a>
<a id='n729' href='#n729'>729</a>
<a id='n730' href='#n730'>730</a>
<a id='n731' href='#n731'>731</a>
</pre></td>
<td class='lines'><pre><code><style>
@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
}
</style><div class="highlight"><pre><span></span><span class="k">\hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">}{}</span><span class="k">\section</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen Class Reference<span class="nb">}</span>
<span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">}</span><span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>


<span class="nb">{</span><span class="k">\ttfamily</span> <span class="k">\#</span>include <span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span>libhomescreen.<span class="k">\+</span>hpp<span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span><span class="nb">}</span>

<span class="k">\subsection*</span><span class="nb">{</span>Public Types<span class="nb">}</span>
<span class="k">\begin</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
<span class="k">\item</span> 
enum <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154<span class="nb">}{</span>Event<span class="k">\+</span>Type<span class="nb">}</span> <span class="k">\{</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f<span class="nb">}{</span>Event<span class="k">\+\_\+\+</span>Tap<span class="k">\+</span>Shortcut<span class="nb">}</span> = 1, 
<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d<span class="nb">}{</span>Event<span class="k">\+\_\+\+</span>On<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">}</span>
 <span class="k">\}</span>
<span class="k">\item</span> 
using <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ae99dee1e03d494d59d26c9f17078e01f<span class="nb">}{</span>handler<span class="k">\+\_\+</span>func<span class="nb">}</span> = std<span class="k">\+</span>::function<span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span> void(const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>)<span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
<span class="k">\subsection*</span><span class="nb">{</span>Public Member Functions<span class="nb">}</span>
<span class="k">\begin</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
<span class="k">\item</span> 
<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a724bd949c4154fad041f96a15ef0f5dc<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span> ()
<span class="k">\item</span> 
<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a249902aebf71a5383ca8ec6ae558d095<span class="nb">}{</span><span class="s">$</span><span class="nv">\sim</span><span class="s">$</span><span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span> ()
<span class="k">\item</span> 
<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a0fff2f703c8ce184eb9edd133e0f4137<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span> (const <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span> <span class="k">\&amp;</span>)=delete
<span class="k">\item</span> 
<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span> <span class="k">\&amp;</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a23bc17798453cfca50904562736f6b25<span class="nb">}{</span>operator=<span class="nb">}</span> (const <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span> <span class="k">\&amp;</span>)=delete
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a57b573cc767725762ba9beab032220<span class="nb">}{</span>init<span class="nb">}</span> (const int port, const std<span class="k">\+</span>::string <span class="k">\&amp;</span>token)
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a32d3282898d0f04151c24b4103511e00<span class="nb">}{</span>run<span class="k">\+</span>Eventloop<span class="nb">}</span> ()
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>afb571c9577087b47065eb23e7fdbc903<span class="nb">}{</span>tap<span class="k">\+</span>Shortcut<span class="nb">}</span> (const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>application<span class="k">\+\_\+</span>name)
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ac336482036a72b51a822725f1929523c<span class="nb">}{</span>on<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">}</span> (const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>display<span class="k">\+\_\+</span>message)
<span class="k">\item</span> 
void <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab1b0e08bf35415de9064afed899e9f85<span class="nb">}{</span>set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler<span class="nb">}</span> (enum <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154<span class="nb">}{</span>Event<span class="k">\+</span>Type<span class="nb">}</span> et, <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ae99dee1e03d494d59d26c9f17078e01f<span class="nb">}{</span>handler<span class="k">\+\_\+</span>func<span class="nb">}</span> f)
<span class="k">\item</span> 
void <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a2789e8a5372202cc36f48e71dbb9b7cf<span class="nb">}{</span>register<span class="k">\+</span>Callback<span class="nb">}</span> (void(<span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>event<span class="k">\+\_\+</span>cb)(const std<span class="k">\+</span>::string <span class="k">\&amp;\hyperlink</span><span class="nb">{</span>structevent<span class="nb">}{</span>event<span class="nb">}</span>, struct json<span class="k">\+\_\+</span>object <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>event<span class="k">\+\_\+</span>contents), void(<span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>reply<span class="k">\+\_\+</span>cb)(struct json<span class="k">\+\_\+</span>object <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>reply<span class="k">\+\_\+</span>contents), void(<span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>hangup<span class="k">\+\_\+</span>cb)(void)=nullptr)
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a527b49dcfe581be6275d0eb2236ba37f<span class="nb">}{</span>call<span class="nb">}</span> (const std<span class="k">\+</span>::string <span class="k">\&amp;</span>verb, struct json<span class="k">\+\_\+</span>object <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>arg)
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab5e8e8ab7d53e0f114e9e907fcbb7643<span class="nb">}{</span>call<span class="nb">}</span> (const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>verb, struct json<span class="k">\+\_\+</span>object <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>arg)
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aa4c189807b75d070f567967f0d690738<span class="nb">}{</span>subscribe<span class="nb">}</span> (const std<span class="k">\+</span>::string <span class="k">\&amp;</span>event<span class="k">\+\_\+</span>name)
<span class="k">\item</span> 
int <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aac03a45cbd453ba69ddb00c1016930a6<span class="nb">}{</span>unsubscribe<span class="nb">}</span> (const std<span class="k">\+</span>::string <span class="k">\&amp;</span>event<span class="k">\+\_\+</span>name)
<span class="k">\item</span> 
void <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab1c1fa69f24b981e824dd9fb810c4b74<span class="nb">}{</span>on<span class="k">\+\_\+</span>hangup<span class="nb">}</span> (void <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>closure, struct afb<span class="k">\+\_\+</span>wsj1 <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>wsj)
<span class="k">\item</span> 
void <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a608638eb87b2772a3dcc92d8ca8f3596<span class="nb">}{</span>on<span class="k">\+\_\+</span>call<span class="nb">}</span> (void <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>closure, const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>api, const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>verb, struct afb<span class="k">\+\_\+</span>wsj1<span class="k">\+\_\+</span>msg <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>msg)
<span class="k">\item</span> 
void <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a9c4885b51b43ab24a548d49fb3ab2de3<span class="nb">}{</span>on<span class="k">\+\_\+</span>event<span class="nb">}</span> (void <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>closure, const char <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span><span class="k">\hyperlink</span><span class="nb">{</span>structevent<span class="nb">}{</span>event<span class="nb">}</span>, struct afb<span class="k">\+\_\+</span>wsj1<span class="k">\+\_\+</span>msg <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>msg)
<span class="k">\item</span> 
void <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a248d9648c6186287a7632ec1c75fc9c5<span class="nb">}{</span>on<span class="k">\+\_\+</span>reply<span class="nb">}</span> (void <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>closure, struct afb<span class="k">\+\_\+</span>wsj1<span class="k">\+\_\+</span>msg <span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>msg)
<span class="k">\end</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
<span class="k">\subsection*</span><span class="nb">{</span>Static Public Attributes<span class="nb">}</span>
<span class="k">\begin</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
<span class="k">\item</span> 
static const std<span class="k">\+</span>::vector<span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span> std<span class="k">\+</span>::string <span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a5593ff5ac78f6495ccb649904cf0ab08<span class="nb">}{</span>api<span class="k">\+\_\+</span>list<span class="nb">}</span>
<span class="k">\item</span> 
static const std<span class="k">\+</span>::vector<span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span> std<span class="k">\+</span>::string <span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}{</span>event<span class="k">\+\_\+</span>list<span class="nb">}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>


<span class="k">\subsection</span><span class="nb">{</span>Detailed Description<span class="nb">}</span>


Definition at line 32 of file libhomescreen.<span class="k">\+</span>hpp.



<span class="k">\subsection</span><span class="nb">{</span>Member Typedef Documentation<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ae99dee1e03d494d59d26c9f17078e01f<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ae99dee1e03d494d59d26c9f17078e01f<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!handler<span class="k">\+\_\+</span>func@<span class="nb">{</span>handler<span class="k">\+\_\+</span>func<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>handler<span class="k">\+\_\+</span>func@<span class="nb">{</span>handler<span class="k">\+\_\+</span>func<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>handler<span class="k">\+\_\+</span>func<span class="nb">}{</span>handler<span class="k">\_</span>func<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> using <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ae99dee1e03d494d59d26c9f17078e01f<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::handler<span class="k">\+\_\+</span>func<span class="nb">}</span> =  std<span class="k">\+</span>::function<span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span>void(const char<span class="s">$</span><span class="nv">\ast</span><span class="s">$</span>)<span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span><span class="nb">}</span>



Definition at line 41 of file libhomescreen.<span class="k">\+</span>hpp.



<span class="k">\subsection</span><span class="nb">{</span>Member Enumeration Documentation<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Event<span class="k">\+</span>Type@<span class="nb">{</span>Event<span class="k">\+</span>Type<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>Event<span class="k">\+</span>Type@<span class="nb">{</span>Event<span class="k">\+</span>Type<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>Event<span class="k">\+</span>Type<span class="nb">}{</span>EventType<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> enum <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::<span class="k">\+</span>Event<span class="k">\+</span>Type<span class="nb">}}</span>

<span class="k">\begin</span><span class="nb">{</span>DoxyEnumFields<span class="nb">}{</span>Enumerator<span class="nb">}</span>
<span class="k">\raisebox</span><span class="nb">{</span><span class="k">\heightof</span><span class="nb">{</span>T<span class="nb">}}</span>[0pt][0pt]<span class="nb">{</span><span class="k">\index</span><span class="nb">{</span>Event<span class="k">\+\_\+\+</span>Tap<span class="k">\+</span>Shortcut@<span class="nb">{</span>Event<span class="k">\+\_\+\+</span>Tap<span class="k">\+</span>Shortcut<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span><span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Event<span class="k">\+\_\+\+</span>Tap<span class="k">\+</span>Shortcut@<span class="nb">{</span>Event<span class="k">\+\_\+\+</span>Tap<span class="k">\+</span>Shortcut<span class="nb">}}}</span><span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f<span class="nb">}}</span> 
Event<span class="k">\+\_\+\+</span>Tap<span class="k">\+</span>Shortcut<span class="nb">&amp;</span><span class="k">\\</span>
<span class="k">\hline</span>

<span class="k">\raisebox</span><span class="nb">{</span><span class="k">\heightof</span><span class="nb">{</span>T<span class="nb">}}</span>[0pt][0pt]<span class="nb">{</span><span class="k">\index</span><span class="nb">{</span>Event<span class="k">\+\_\+\+</span>On<span class="k">\+</span>Screen<span class="k">\+</span>Message@<span class="nb">{</span>Event<span class="k">\+\_\+\+</span>On<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span><span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Event<span class="k">\+\_\+\+</span>On<span class="k">\+</span>Screen<span class="k">\+</span>Message@<span class="nb">{</span>Event<span class="k">\+\_\+\+</span>On<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">}}}</span><span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d<span class="nb">}}</span> 
Event<span class="k">\+\_\+\+</span>On<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">&amp;</span><span class="k">\\</span>
<span class="k">\hline</span>

<span class="k">\end</span><span class="nb">{</span>DoxyEnumFields<span class="nb">}</span>


Definition at line 43 of file libhomescreen.<span class="k">\+</span>hpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
43                        <span class="k">\{</span>
44             <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f<span class="nb">}{</span>Event<span class="k">\_</span>TapShortcut<span class="nb">}</span> = 1,
45             <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d<span class="nb">}{</span>Event<span class="k">\_</span>OnScreenMessage<span class="nb">}</span>
46         <span class="k">\}</span>;
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>


<span class="k">\subsection</span><span class="nb">{</span>Constructor <span class="k">\&amp;</span> Destructor Documentation<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a724bd949c4154fad041f96a15ef0f5dc<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a724bd949c4154fad041f96a15ef0f5dc<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen()<span class="nb">}{</span>LibHomeScreen()<span class="nb">}</span><span class="k">\hspace</span><span class="nb">{</span>0.1cm<span class="nb">}{</span><span class="k">\footnotesize\ttfamily</span> [1/2]<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::<span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}{</span> <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

constructor 

Definition at line 85 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
86 <span class="k">\{</span>
87 
88 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a249902aebf71a5383ca8ec6ae558d095<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a249902aebf71a5383ca8ec6ae558d095<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!````~Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span><span class="s">$</span><span class="nv">\sim</span><span class="s">$</span><span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>````~Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span><span class="s">$</span><span class="nv">\sim</span><span class="s">$</span><span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span><span class="s">$</span><span class="nv">\sim</span><span class="s">$</span><span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen()<span class="nb">}{</span>~LibHomeScreen()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::<span class="s">$</span><span class="nv">\sim</span><span class="s">$</span><span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}{</span> <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

destructor 

Definition at line 93 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
94 <span class="k">\{</span>
95     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(mploop)
96     <span class="k">\{</span>
97         sd<span class="k">\_</span>event<span class="k">\_</span>unref(mploop);
98     <span class="k">\}</span>
99     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(sp<span class="k">\_</span>websock != NULL)
100     <span class="k">\{</span>
101         free(sp<span class="k">\_</span>websock);
102     <span class="k">\}</span>
103 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a0fff2f703c8ce184eb9edd133e0f4137<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a0fff2f703c8ce184eb9edd133e0f4137<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen()<span class="nb">}{</span>LibHomeScreen()<span class="nb">}</span><span class="k">\hspace</span><span class="nb">{</span>0.1cm<span class="nb">}{</span><span class="k">\footnotesize\ttfamily</span> [2/2]<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::<span class="k">\+</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const \hyperlink{class_lib_home_screen}{Lib\+Home\+Screen} \&amp;}]</span><span class="nb">{</span> <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="k">\hspace</span><span class="nb">{</span>0.3cm<span class="nb">}{</span><span class="k">\ttfamily</span> [delete]<span class="nb">}}</span>



<span class="k">\subsection</span><span class="nb">{</span>Member Function Documentation<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a527b49dcfe581be6275d0eb2236ba37f<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a527b49dcfe581be6275d0eb2236ba37f<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!call@<span class="nb">{</span>call<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>call@<span class="nb">{</span>call<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>call()<span class="nb">}{</span>call()<span class="nb">}</span><span class="k">\hspace</span><span class="nb">{</span>0.1cm<span class="nb">}{</span><span class="k">\footnotesize\ttfamily</span> [1/2]<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::call (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const std\+::string \&amp;}]</span><span class="nb">{</span>verb,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{struct json\+\_\+object $\ast$}]</span><span class="nb">{</span>arg <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab5e8e8ab7d53e0f114e9e907fcbb7643<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab5e8e8ab7d53e0f114e9e907fcbb7643<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!call@<span class="nb">{</span>call<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>call@<span class="nb">{</span>call<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>call()<span class="nb">}{</span>call()<span class="nb">}</span><span class="k">\hspace</span><span class="nb">{</span>0.1cm<span class="nb">}{</span><span class="k">\footnotesize\ttfamily</span> [2/2]<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::call (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const char $\ast$}]</span><span class="nb">{</span>verb,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{struct json\+\_\+object $\ast$}]</span><span class="nb">{</span>arg <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

This function calls the A<span class="k">\+</span>PI of Home<span class="k">\+</span>Screen via Web<span class="k">\+</span>Socket This function is overload function of <span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>call<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> verb <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the A<span class="k">\+</span>PI name (e.<span class="k">\+</span>g. <span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>tap<span class="k">\+\_\+</span>shortcut<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>)
<span class="k">\item</span> arg <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the argument of A<span class="k">\+</span>PI. And this argument expects J<span class="k">\+</span>S<span class="k">\+</span>ON object
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> Returns 0 on success or -<span class="k">\/</span>1 in case of error.
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Note<span class="nb">}</span>

To call Home<span class="k">\+</span>Screen<span class="k">\textquotesingle</span><span class="nb">{}</span>s A<span class="k">\+</span>P<span class="k">\+</span>Is, the application should set its function name, arguments to J<span class="k">\+</span>S<span class="k">\+</span>ON format. 

Definition at line 369 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
370 <span class="k">\{</span>
371     <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>int<span class="nb">}</span> ret;
372     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(!sp<span class="k">\_</span>websock)
373     <span class="k">\{</span>
374         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
375     <span class="k">\}</span>
376     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (!<span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a7a2176c3d71fec0f09dcb2aa0866b17e<span class="nb">}{</span>has<span class="k">\_</span>verb<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>string<span class="nb">}</span>(verb)))
377     <span class="k">\{</span>
378         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;verb doesn&#39;t exit&quot;<span class="nb">}</span>);
379         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
380     <span class="k">\}</span>
381     ret = afb<span class="k">\_</span>wsj1<span class="k">\_</span>call<span class="k">\_</span>j(sp<span class="k">\_</span>websock, <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a1e2d6e77dd8f0162f830058579eab42f<span class="nb">}{</span>API<span class="nb">}</span>, verb, arg, <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a7778933bffa862c63fa0a1b8219faa8b<span class="nb">}{</span><span class="k">\_</span>on<span class="k">\_</span>reply<span class="k">\_</span>static<span class="nb">}</span>, <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>this<span class="nb">}</span>);
382     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (ret &lt; 0) <span class="k">\{</span>
383         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Failed to call verb:<span class="c">%s&quot;},verb);</span>
384     <span class="k">\}</span>
385     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> ret;
386 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a57b573cc767725762ba9beab032220<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a57b573cc767725762ba9beab032220<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!init@<span class="nb">{</span>init<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>init@<span class="nb">{</span>init<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>init()<span class="nb">}{</span>init()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::init (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const int}]</span><span class="nb">{</span>port,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{const std\+::string \&amp;}]</span><span class="nb">{</span>token <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

This function is initializer

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> port <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the port number to be used for websocket
<span class="k">\item</span> token <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the token to be used for websocket
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>

Nothing

<span class="k">\subparagraph*</span><span class="nb">{</span>Note<span class="nb">}</span>

Use this constructor 

Definition at line 119 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
120 <span class="k">\{</span>
121     <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>int<span class="nb">}</span> ret = 0;
122     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(port &gt; 0 <span class="nb">&amp;&amp;</span> token.size() &gt; 0)
123     <span class="k">\{</span>
124         mport = port;
125         mtoken = token;
126     <span class="k">\}</span>
127     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>else<span class="nb">}</span>
128     <span class="k">\{</span>
129         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;port and token should be &gt; 0, Initial port and token uses.&quot;<span class="nb">}</span>);
130     <span class="k">\}</span>
131 
132     ret = initialize<span class="k">\_</span>websocket();
133     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(ret != 0 )
134     <span class="k">\{</span>
135         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Failed to initialize websocket&quot;<span class="nb">}</span>);
136     <span class="k">\}</span>
137     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>else<span class="nb">}</span><span class="k">\{</span>
138         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a4e42b2f5af2174dd24f958351becf63d<span class="nb">}{</span>DLOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Initialized&quot;<span class="nb">}</span>);
139     <span class="k">\}</span>
140 
141     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> ret;
142 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a608638eb87b2772a3dcc92d8ca8f3596<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a608638eb87b2772a3dcc92d8ca8f3596<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!on<span class="k">\+\_\+</span>call@<span class="nb">{</span>on<span class="k">\+\_\+</span>call<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>on<span class="k">\+\_\+</span>call@<span class="nb">{</span>on<span class="k">\+\_\+</span>call<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>on<span class="k">\+\_\+</span>call()<span class="nb">}{</span>on<span class="k">\_</span>call()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> void Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::on<span class="k">\+\_\+</span>call (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{void $\ast$}]</span><span class="nb">{</span>closure,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{const char $\ast$}]</span><span class="nb">{</span>api,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{const char $\ast$}]</span><span class="nb">{</span>verb,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{struct afb\+\_\+wsj1\+\_\+msg $\ast$}]</span><span class="nb">{</span>msg <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>



Definition at line 457 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
458 <span class="k">\{</span>
459 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a9c4885b51b43ab24a548d49fb3ab2de3<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a9c4885b51b43ab24a548d49fb3ab2de3<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!on<span class="k">\+\_\+</span>event@<span class="nb">{</span>on<span class="k">\+\_\+</span>event<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>on<span class="k">\+\_\+</span>event@<span class="nb">{</span>on<span class="k">\+\_\+</span>event<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>on<span class="k">\+\_\+</span>event()<span class="nb">}{</span>on<span class="k">\_</span>event()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> void Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::on<span class="k">\+\_\+</span>event (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{void $\ast$}]</span><span class="nb">{</span>closure,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{const char $\ast$}]</span><span class="nb">{</span>event,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{struct afb\+\_\+wsj1\+\_\+msg $\ast$}]</span><span class="nb">{</span>msg <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>



Definition at line 467 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
468 <span class="k">\{</span>
469     cout &lt;&lt; <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;[libhomescreen on<span class="k">\_</span>event]: &quot;<span class="nb">}</span> &lt;&lt; <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>event<span class="nb">}</span> &lt;&lt; <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot; (&quot;<span class="nb">}</span> &lt;&lt; afb<span class="k">\_</span>wsj1<span class="k">\_</span>msg<span class="k">\_</span>object<span class="k">\_</span>s(msg) &lt;&lt; <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;)&quot;<span class="nb">}</span> &lt;&lt; endl;
470 
471   <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (strstr(<span class="k">\hyperlink</span><span class="nb">{</span>structevent<span class="nb">}{</span>event<span class="nb">}</span>, <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a1e2d6e77dd8f0162f830058579eab42f<span class="nb">}{</span>API<span class="nb">}</span>) == NULL) <span class="k">\{</span>
472         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span>;
473     <span class="k">\}</span>
474 
475     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* ev<span class="k">\_</span>contents = afb<span class="k">\_</span>wsj1<span class="k">\_</span>msg<span class="k">\_</span>object<span class="k">\_</span>j(msg);
476     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object *json<span class="k">\_</span>data = json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>get(ev<span class="k">\_</span>contents, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;data&quot;<span class="nb">}</span>);
477 
478     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(onEvent != <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>nullptr<span class="nb">}</span>)
479     <span class="k">\{</span>
480         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>const<span class="nb">}</span> <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>string<span class="nb">}</span> ev(<span class="k">\hyperlink</span><span class="nb">{</span>structevent<span class="nb">}{</span>event<span class="nb">}</span>);
481         onEvent(ev, ev<span class="k">\_</span>contents);
482     <span class="k">\}</span>
483 
484     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>const<span class="nb">}</span> <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>char<span class="nb">}</span>* event<span class="k">\_</span>only = strchr(<span class="k">\hyperlink</span><span class="nb">{</span>structevent<span class="nb">}{</span>event<span class="nb">}</span>, <span class="k">\textcolor</span><span class="nb">{</span>charliteral<span class="nb">}{</span>&#39;/&#39;<span class="nb">}</span>);
485     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (event<span class="k">\_</span>only != <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>nullptr<span class="nb">}</span>) <span class="k">\{</span>
486         event<span class="k">\_</span>only = event<span class="k">\_</span>only + 1;
487     <span class="k">\}</span>
488 
489     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (strcasecmp(event<span class="k">\_</span>only, <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}{</span>LibHomeScreen::event<span class="k">\_</span>list<span class="nb">}</span>[0].c<span class="k">\_</span>str()) == 0) <span class="k">\{</span>
490         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>auto<span class="nb">}</span> i = this-&gt;handlers.find(<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f<span class="nb">}{</span>Event<span class="k">\_</span>TapShortcut<span class="nb">}</span>);
491 
492         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object *json<span class="k">\_</span>application<span class="k">\_</span>name = json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>get(json<span class="k">\_</span>data, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;application<span class="k">\_</span>name&quot;<span class="nb">}</span>);
493         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>const<span class="nb">}</span> <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>char<span class="nb">}</span>* application<span class="k">\_</span>name = json<span class="k">\_</span>object<span class="k">\_</span>get<span class="k">\_</span>string(json<span class="k">\_</span>application<span class="k">\_</span>name);
494 
495         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> ( i != this-&gt;handlers.end() ) <span class="k">\{</span>
496             i-&gt;second(application<span class="k">\_</span>name);
497         <span class="k">\}</span>
498     <span class="k">\}</span>
499     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>else<span class="nb">}</span> <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (strcasecmp(event<span class="k">\_</span>only, <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}{</span>LibHomeScreen::event<span class="k">\_</span>list<span class="nb">}</span>[1].c<span class="k">\_</span>str()) == 0) <span class="k">\{</span>
500 
501         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>auto<span class="nb">}</span> i = this-&gt;handlers.find(<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d<span class="nb">}{</span>Event<span class="k">\_</span>OnScreenMessage<span class="nb">}</span>);
502 
503         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object *json<span class="k">\_</span>display<span class="k">\_</span>message = json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>get(json<span class="k">\_</span>data, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;display<span class="k">\_</span>message&quot;<span class="nb">}</span>);
504         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>const<span class="nb">}</span> <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>char<span class="nb">}</span>* display<span class="k">\_</span>message = json<span class="k">\_</span>object<span class="k">\_</span>get<span class="k">\_</span>string(json<span class="k">\_</span>display<span class="k">\_</span>message);
505 
506         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> ( i != this-&gt;handlers.end() ) <span class="k">\{</span>
507             i-&gt;second(display<span class="k">\_</span>message);
508         <span class="k">\}</span>
509 
510     <span class="k">\}</span>
511 
512     json<span class="k">\_</span>object<span class="k">\_</span>put(ev<span class="k">\_</span>contents);
513 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab1c1fa69f24b981e824dd9fb810c4b74<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab1c1fa69f24b981e824dd9fb810c4b74<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!on<span class="k">\+\_\+</span>hangup@<span class="nb">{</span>on<span class="k">\+\_\+</span>hangup<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>on<span class="k">\+\_\+</span>hangup@<span class="nb">{</span>on<span class="k">\+\_\+</span>hangup<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>on<span class="k">\+\_\+</span>hangup()<span class="nb">}{</span>on<span class="k">\_</span>hangup()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> void Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::on<span class="k">\+\_\+</span>hangup (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{void $\ast$}]</span><span class="nb">{</span>closure,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{struct afb\+\_\+wsj1 $\ast$}]</span><span class="nb">{</span>wsj <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>



Definition at line 448 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
449 <span class="k">\{</span>
450     <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a4e42b2f5af2174dd24f958351becf63d<span class="nb">}{</span>DLOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;<span class="c">%s called&quot;}, \_\_FUNCTION\_\_);</span>
451     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(onHangup != <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>nullptr<span class="nb">}</span>)
452     <span class="k">\{</span>
453         onHangup();
454     <span class="k">\}</span>
455 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a248d9648c6186287a7632ec1c75fc9c5<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a248d9648c6186287a7632ec1c75fc9c5<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!on<span class="k">\+\_\+</span>reply@<span class="nb">{</span>on<span class="k">\+\_\+</span>reply<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>on<span class="k">\+\_\+</span>reply@<span class="nb">{</span>on<span class="k">\+\_\+</span>reply<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>on<span class="k">\+\_\+</span>reply()<span class="nb">}{</span>on<span class="k">\_</span>reply()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> void Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::on<span class="k">\+\_\+</span>reply (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{void $\ast$}]</span><span class="nb">{</span>closure,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{struct afb\+\_\+wsj1\+\_\+msg $\ast$}]</span><span class="nb">{</span>msg <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

msg is like (<span class="k">\{\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>response<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\{\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>verb<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>subscribe<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>error<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:0<span class="k">\}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>jtype<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>afb-<span class="k">\/</span>reply<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>request<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\{\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>status<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>success<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>info<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>homescreen binder subscribe event name <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>on<span class="k">\+\_\+</span>screen<span class="k">\+\_\+</span>message<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span><span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\}\}</span>) msg is like (<span class="k">\{\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>response<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\{\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>verb<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>tap<span class="k">\+\_\+</span>shortcut<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>error<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:0<span class="k">\}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>jtype<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>afb-<span class="k">\/</span>reply<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>request<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\{\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>status<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>success<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>,<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>info<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\+</span>:<span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span>afb<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>push event <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>tap<span class="k">\+\_\+</span>shortcut<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span><span class="k">\char</span>`<span class="k">\&quot;</span><span class="nb">{}</span><span class="k">\}\}</span>) 

Definition at line 519 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
520 <span class="k">\{</span>
521     cout &lt;&lt; <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;[libhomescreen on<span class="k">\_</span>reply]: &quot;<span class="nb">}</span> &lt;&lt;  <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot; (&quot;<span class="nb">}</span> &lt;&lt; afb<span class="k">\_</span>wsj1<span class="k">\_</span>msg<span class="k">\_</span>object<span class="k">\_</span>s(msg) &lt;&lt; <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;)&quot;<span class="nb">}</span> &lt;&lt; endl;
522     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(onReply != <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>nullptr<span class="nb">}</span>)
523     <span class="k">\{</span>
524         <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* reply = afb<span class="k">\_</span>wsj1<span class="k">\_</span>msg<span class="k">\_</span>object<span class="k">\_</span>j(msg);
525         onReply(reply);
526 
527         json<span class="k">\_</span>object<span class="k">\_</span>put(reply);
528     <span class="k">\}</span>
529 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ac336482036a72b51a822725f1929523c<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ac336482036a72b51a822725f1929523c<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!on<span class="k">\+</span>Screen<span class="k">\+</span>Message@<span class="nb">{</span>on<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>on<span class="k">\+</span>Screen<span class="k">\+</span>Message@<span class="nb">{</span>on<span class="k">\+</span>Screen<span class="k">\+</span>Message<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>on<span class="k">\+</span>Screen<span class="k">\+</span>Message()<span class="nb">}{</span>onScreenMessage()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::on<span class="k">\+</span>Screen<span class="k">\+</span>Message (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const char $\ast$}]</span><span class="nb">{</span>display<span class="k">\+\_\+</span>message <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

Home<span class="k">\+</span>Screenアプリに表示するメッセージイベントの発行

各アプリから<span class="k">\+</span>Home<span class="k">\+</span>Screenアプリケーションの<span class="k">\+</span>On<span class="k">\+</span>Screenに表示するイベントを発行する

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> display<span class="k">\+\_\+</span>message <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: 表示するメッセージ
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> Returns 0 on success or -<span class="k">\/</span>1 in case of error. 
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

Definition at line 280 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
281 <span class="k">\{</span>
282     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(!sp<span class="k">\_</span>websock)
283     <span class="k">\{</span>
284         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
285     <span class="k">\}</span>
286 
287     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* j<span class="k">\_</span>obj = json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>object();
288     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* val = json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>string(display<span class="k">\_</span>message);
289     json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>add(j<span class="k">\_</span>obj, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;display<span class="k">\_</span>message&quot;<span class="nb">}</span>, val);
290     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> this-&gt;<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a527b49dcfe581be6275d0eb2236ba37f<span class="nb">}{</span>call<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;on<span class="k">\_</span>screen<span class="k">\_</span>message&quot;<span class="nb">}</span>, j<span class="k">\_</span>obj);
291 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a23bc17798453cfca50904562736f6b25<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a23bc17798453cfca50904562736f6b25<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!operator=@<span class="nb">{</span>operator=<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>operator=@<span class="nb">{</span>operator=<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>operator=()<span class="nb">}{</span>operator=()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">}{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span><span class="k">\&amp;</span> Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::operator= (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const \hyperlink{class_lib_home_screen}{Lib\+Home\+Screen} \&amp;}]</span><span class="nb">{</span> <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="k">\hspace</span><span class="nb">{</span>0.3cm<span class="nb">}{</span><span class="k">\ttfamily</span> [delete]<span class="nb">}}</span>

<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a2789e8a5372202cc36f48e71dbb9b7cf<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a2789e8a5372202cc36f48e71dbb9b7cf<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!register<span class="k">\+</span>Callback@<span class="nb">{</span>register<span class="k">\+</span>Callback<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>register<span class="k">\+</span>Callback@<span class="nb">{</span>register<span class="k">\+</span>Callback<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>register<span class="k">\+</span>Callback()<span class="nb">}{</span>registerCallback()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> void Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::register<span class="k">\+</span>Callback (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{void($\ast$)(const std\+::string \&amp;\hyperlink{structevent}{event}, struct json\+\_\+object $\ast$event\+\_\+contents)}]</span><span class="nb">{</span>event<span class="k">\+\_\+</span>cb,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{void($\ast$)(struct json\+\_\+object $\ast$reply\+\_\+contents)}]</span><span class="nb">{</span>reply<span class="k">\+\_\+</span>cb,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{void($\ast$)(void)}]</span><span class="nb">{</span>hangup<span class="k">\+\_\+</span>cb = <span class="nb">{</span><span class="k">\ttfamily</span> nullptr<span class="nb">}</span> <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

This function register callback function for reply/event message from home screen

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> event<span class="k">\+\_\+</span>cb <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the callback for subscribed event
<span class="k">\item</span> reply<span class="k">\+\_\+</span>cb <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the reply callback for call function
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>

Nothing

<span class="k">\subparagraph*</span><span class="nb">{</span>Note<span class="nb">}</span>

Event callback is invoked by home screen for event you subscribed. If you would like to get event, please call subscribe function before/after this function 

Definition at line 158 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
162 <span class="k">\{</span>
163     onEvent = event<span class="k">\_</span>cb;
164     onReply = reply<span class="k">\_</span>cb;
165     onHangup = hangup<span class="k">\_</span>cb;
166 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a32d3282898d0f04151c24b4103511e00<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a32d3282898d0f04151c24b4103511e00<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!run<span class="k">\+</span>Eventloop@<span class="nb">{</span>run<span class="k">\+</span>Eventloop<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>run<span class="k">\+</span>Eventloop@<span class="nb">{</span>run<span class="k">\+</span>Eventloop<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>run<span class="k">\+</span>Eventloop()<span class="nb">}{</span>runEventloop()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::run<span class="k">\+</span>Eventloop (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}{</span> <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

This function start receiving the reply/event message from home screen

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>

Nothing

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> Returns thread<span class="k">\+\_\+</span>id on success or -<span class="k">\/</span>1 in case of error.
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Note<span class="nb">}</span>

Definition at line 224 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
225 <span class="k">\{</span>
226     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(mploop <span class="nb">&amp;&amp;</span> sp<span class="k">\_</span>websock)
227     <span class="k">\{</span>
228         pthread<span class="k">\_</span>t thread<span class="k">\_</span>id;
229         <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>int<span class="nb">}</span> ret = pthread<span class="k">\_</span>create(<span class="nb">&amp;</span>thread<span class="k">\_</span>id, NULL, <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>aa73353e1bf62c68b6b0aba7a1e4e275e<span class="nb">}{</span>event<span class="k">\_</span>loop<span class="k">\_</span>run<span class="nb">}</span>, mploop);
230         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(ret != 0)
231         <span class="k">\{</span>
232             <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Cannot run eventloop due to error:<span class="c">%d&quot;}, errno);</span>
233             <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
234         <span class="k">\}</span>
235         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>else<span class="nb">}</span>
236             <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> thread<span class="k">\_</span>id;
237     <span class="k">\}</span>
238     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>else<span class="nb">}</span>
239     <span class="k">\{</span>
240         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Connecting is not established yet&quot;<span class="nb">}</span>);
241         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
242     <span class="k">\}</span>
243 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab1b0e08bf35415de9064afed899e9f85<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>ab1b0e08bf35415de9064afed899e9f85<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler@<span class="nb">{</span>set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler@<span class="nb">{</span>set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler()<span class="nb">}{</span>set<span class="k">\_</span>event<span class="k">\_</span>handler()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> void Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::set<span class="k">\+\_\+</span>event<span class="k">\+\_\+</span>handler (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{enum \hyperlink{class_lib_home_screen_a82616c91ac211d2ad08e709b524bf154}{Event\+Type}}]</span><span class="nb">{</span>et,  <span class="nb">}</span><span class="k">\item</span><span class="na">[{\hyperlink{class_lib_home_screen_ae99dee1e03d494d59d26c9f17078e01f}{handler\+\_\+func}}]</span><span class="nb">{</span>f <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

イベントハンドラの登録

各アプリから<span class="k">\+</span>Home<span class="k">\+</span>Screenアプリケーションの<span class="k">\+</span>On<span class="k">\+</span>Screenに表示するイベントを発行する

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> et <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: 対象のイベント
<span class="k">\item</span> f <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: イベントハンドラ
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>

Nothing 

Definition at line 305 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
306 <span class="k">\{</span>
307     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (et &gt;= 1 <span class="nb">&amp;&amp;</span> et &lt;= 2) <span class="k">\{</span>
308         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>switch<span class="nb">}</span> (et) <span class="k">\{</span>
309             <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>case<span class="nb">}</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154a4b0a82d501e4db5fbfe25c254c92896f<span class="nb">}{</span>Event<span class="k">\_</span>TapShortcut<span class="nb">}</span>:
310                 this-&gt;<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aa4c189807b75d070f567967f0d690738<span class="nb">}{</span>subscribe<span class="nb">}</span>(<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}{</span>LibHomeScreen::event<span class="k">\_</span>list<span class="nb">}</span>[0]);
311                 <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>break<span class="nb">}</span>;
312             <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>case<span class="nb">}</span> <span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a82616c91ac211d2ad08e709b524bf154aea56fa32a124a8ddcbea127755280a1d<span class="nb">}{</span>Event<span class="k">\_</span>OnScreenMessage<span class="nb">}</span>:
313                 this-&gt;<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aa4c189807b75d070f567967f0d690738<span class="nb">}{</span>subscribe<span class="nb">}</span>(<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}{</span>LibHomeScreen::event<span class="k">\_</span>list<span class="nb">}</span>[1]);
314                 <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>break<span class="nb">}</span>;
315         <span class="k">\}</span>
316 
317         this-&gt;handlers[et] = std::move(f);
318     <span class="k">\}</span>
319 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aa4c189807b75d070f567967f0d690738<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aa4c189807b75d070f567967f0d690738<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!subscribe@<span class="nb">{</span>subscribe<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>subscribe@<span class="nb">{</span>subscribe<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>subscribe()<span class="nb">}{</span>subscribe()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::subscribe (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const std\+::string \&amp;}]</span><span class="nb">{</span>event<span class="k">\+\_\+</span>name <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

Register callback function for each event

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> event<span class="k">\+\_\+</span>name <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the event name
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> Returns 0 on success or -<span class="k">\/</span>1 in case of error.
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Note<span class="nb">}</span>

This function enables to get an event to your callback function. 

Definition at line 401 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
402 <span class="k">\{</span>
403     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(!sp<span class="k">\_</span>websock)
404     <span class="k">\{</span>
405         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
406     <span class="k">\}</span>
407     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* j<span class="k">\_</span>obj = json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>object();
408     json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>add(j<span class="k">\_</span>obj, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;event&quot;<span class="nb">}</span>, json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>string(event<span class="k">\_</span>name.c<span class="k">\_</span>str()));
409 
410     <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>int<span class="nb">}</span> ret = afb<span class="k">\_</span>wsj1<span class="k">\_</span>call<span class="k">\_</span>j(sp<span class="k">\_</span>websock, <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a1e2d6e77dd8f0162f830058579eab42f<span class="nb">}{</span>API<span class="nb">}</span>, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;subscribe&quot;<span class="nb">}</span>, j<span class="k">\_</span>obj, 
      <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a7778933bffa862c63fa0a1b8219faa8b<span class="nb">}{</span><span class="k">\_</span>on<span class="k">\_</span>reply<span class="k">\_</span>static<span class="nb">}</span>, <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>this<span class="nb">}</span>);
411     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (ret &lt; 0) <span class="k">\{</span>
412         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Failed to call verb:<span class="c">%s&quot;},\_\_FUNCTION\_\_);</span>
413     <span class="k">\}</span>
414     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> ret;
415 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>afb571c9577087b47065eb23e7fdbc903<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>afb571c9577087b47065eb23e7fdbc903<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!tap<span class="k">\+</span>Shortcut@<span class="nb">{</span>tap<span class="k">\+</span>Shortcut<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>tap<span class="k">\+</span>Shortcut@<span class="nb">{</span>tap<span class="k">\+</span>Shortcut<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>tap<span class="k">\+</span>Shortcut()<span class="nb">}{</span>tapShortcut()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::tap<span class="k">\+</span>Shortcut (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const char $\ast$}]</span><span class="nb">{</span>application<span class="k">\+\_\+</span>name <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

ショートカットアイコンがタップされたイベントの発行

Home<span class="k">\+</span>Screenアプリケーションにて各アプリアイコンがタップされたときにイベントを発行する

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> application<span class="k">\+\_\+</span>name <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: タップされたアプリケーションの名前(label)
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> Returns 0 on success or -<span class="k">\/</span>1 in case of error. 
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

Definition at line 256 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
257 <span class="k">\{</span>
258     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(!sp<span class="k">\_</span>websock)
259     <span class="k">\{</span>
260         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
261     <span class="k">\}</span>
262 
263     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* j<span class="k">\_</span>obj = json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>object();
264     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* val = json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>string(application<span class="k">\_</span>name);
265     json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>add(j<span class="k">\_</span>obj, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;application<span class="k">\_</span>name&quot;<span class="nb">}</span>, val);
266     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> this-&gt;<span class="k">\hyperlink</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a527b49dcfe581be6275d0eb2236ba37f<span class="nb">}{</span>call<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;tap<span class="k">\_</span>shortcut&quot;<span class="nb">}</span>, j<span class="k">\_</span>obj);
267 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aac03a45cbd453ba69ddb00c1016930a6<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>aac03a45cbd453ba69ddb00c1016930a6<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!unsubscribe@<span class="nb">{</span>unsubscribe<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>unsubscribe@<span class="nb">{</span>unsubscribe<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>unsubscribe()<span class="nb">}{</span>unsubscribe()<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> int Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::unsubscribe (<span class="k">\begin</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span><span class="k">\item</span><span class="na">[{const std\+::string \&amp;}]</span><span class="nb">{</span>event<span class="k">\+\_\+</span>name <span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyParamCaption<span class="nb">}</span>)<span class="nb">}</span>

Unregister callback function for each event

<span class="k">\subparagraph*</span><span class="nb">{</span>Parameters<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> event<span class="k">\+\_\+</span>name <span class="k">\mbox</span><span class="nb">{</span>[<span class="nb">}</span>in<span class="k">\mbox</span><span class="nb">{</span>]<span class="nb">}</span> <span class="k">\+</span>: This argument should be specified to the event name
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Return<span class="nb">}</span>


<span class="k">\begin</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>
<span class="k">\item</span> Returns 0 on success or -<span class="k">\/</span>1 in case of error.
<span class="k">\end</span><span class="nb">{</span>DoxyItemize<span class="nb">}</span>

<span class="k">\subparagraph*</span><span class="nb">{</span>Note<span class="nb">}</span>

This function disables to get an event to your callback function. 

Definition at line 430 of file libhomescreen.<span class="k">\+</span>cpp.


<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
431 <span class="k">\{</span>
432     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span>(!sp<span class="k">\_</span>websock)
433     <span class="k">\{</span>
434         <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> -1;
435     <span class="k">\}</span>
436     <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>struct <span class="nb">}</span>json<span class="k">\_</span>object* j<span class="k">\_</span>obj = json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>object();
437     json<span class="k">\_</span>object<span class="k">\_</span>object<span class="k">\_</span>add(j<span class="k">\_</span>obj, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;event&quot;<span class="nb">}</span>, json<span class="k">\_</span>object<span class="k">\_</span>new<span class="k">\_</span>string(event<span class="k">\_</span>name.c<span class="k">\_</span>str()));
438 
439     <span class="k">\textcolor</span><span class="nb">{</span>keywordtype<span class="nb">}{</span>int<span class="nb">}</span> ret = afb<span class="k">\_</span>wsj1<span class="k">\_</span>call<span class="k">\_</span>j(sp<span class="k">\_</span>websock, <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a1e2d6e77dd8f0162f830058579eab42f<span class="nb">}{</span>API<span class="nb">}</span>, <span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;unsubscribe&quot;<span class="nb">}</span>, j<span class="k">\_</span>obj, 
      <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a7778933bffa862c63fa0a1b8219faa8b<span class="nb">}{</span><span class="k">\_</span>on<span class="k">\_</span>reply<span class="k">\_</span>static<span class="nb">}</span>, <span class="k">\textcolor</span><span class="nb">{</span>keyword<span class="nb">}{</span>this<span class="nb">}</span>);
440     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>if<span class="nb">}</span> (ret &lt; 0) <span class="k">\{</span>
441         <span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">_</span>a797aa3053bd6a29819d44f8fad8a5eca<span class="nb">}{</span>ELOG<span class="nb">}</span>(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;Failed to call verb:<span class="c">%s&quot;},\_\_FUNCTION\_\_);</span>
442     <span class="k">\}</span>
443     <span class="k">\textcolor</span><span class="nb">{</span>keywordflow<span class="nb">}{</span>return<span class="nb">}</span> ret;
444 <span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>


<span class="k">\subsection</span><span class="nb">{</span>Member Data Documentation<span class="nb">}</span>
<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a5593ff5ac78f6495ccb649904cf0ab08<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a5593ff5ac78f6495ccb649904cf0ab08<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!api<span class="k">\+\_\+</span>list@<span class="nb">{</span>api<span class="k">\+\_\+</span>list<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>api<span class="k">\+\_\+</span>list@<span class="nb">{</span>api<span class="k">\+\_\+</span>list<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>api<span class="k">\+\_\+</span>list<span class="nb">}{</span>api<span class="k">\_</span>list<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> const std<span class="k">\+</span>::vector<span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span> std<span class="k">\+</span>::string <span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span> Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::api<span class="k">\+\_\+</span>list<span class="k">\hspace</span><span class="nb">{</span>0.3cm<span class="nb">}{</span><span class="k">\ttfamily</span> [static]<span class="nb">}}</span>

<span class="nb">{</span><span class="k">\bfseries</span> Initial value<span class="k">\+</span>:<span class="nb">}</span>
<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\{</span>
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;ping&quot;<span class="nb">}</span>), 
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;tap<span class="k">\_</span>shortcut&quot;<span class="nb">}</span>), 
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;on<span class="k">\_</span>screen<span class="k">\_</span>message&quot;<span class="nb">}</span>),
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;subscribe&quot;<span class="nb">}</span>),
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;unsubscribe&quot;<span class="nb">}</span>)
<span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>


Definition at line 48 of file libhomescreen.<span class="k">\+</span>hpp.

<span class="k">\mbox</span><span class="nb">{</span><span class="k">\Hypertarget</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}</span><span class="k">\label</span><span class="nb">{</span>class<span class="nb">_</span>lib<span class="nb">_</span>home<span class="nb">_</span>screen<span class="nb">_</span>a6a6d8a4d33a006a08652e7377a4c29e9<span class="nb">}}</span> 
<span class="k">\index</span><span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}</span>!event<span class="k">\+\_\+</span>list@<span class="nb">{</span>event<span class="k">\+\_\+</span>list<span class="nb">}}</span>
<span class="k">\index</span><span class="nb">{</span>event<span class="k">\+\_\+</span>list@<span class="nb">{</span>event<span class="k">\+\_\+</span>list<span class="nb">}</span>!Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen@<span class="nb">{</span>Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="nb">}}</span>
<span class="k">\subsubsection</span><span class="nb">{</span><span class="k">\texorpdfstring</span><span class="nb">{</span>event<span class="k">\+\_\+</span>list<span class="nb">}{</span>event<span class="k">\_</span>list<span class="nb">}}</span>
<span class="nb">{</span><span class="k">\footnotesize\ttfamily</span> const std<span class="k">\+</span>::vector<span class="s">$</span><span class="nb">&lt;</span><span class="s">$</span> std<span class="k">\+</span>::string <span class="s">$</span><span class="nb">&gt;</span><span class="s">$</span> Lib<span class="k">\+</span>Home<span class="k">\+</span>Screen<span class="k">\+</span>::event<span class="k">\+\_\+</span>list<span class="k">\hspace</span><span class="nb">{</span>0.3cm<span class="nb">}{</span><span class="k">\ttfamily</span> [static]<span class="nb">}}</span>

<span class="nb">{</span><span class="k">\bfseries</span> Initial value<span class="k">\+</span>:<span class="nb">}</span>
<span class="k">\begin</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>
<span class="k">\{</span>
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;tap<span class="k">\_</span>shortcut&quot;<span class="nb">}</span>),
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;on<span class="k">\_</span>screen<span class="k">\_</span>message&quot;<span class="nb">}</span>),
    std::string(<span class="k">\textcolor</span><span class="nb">{</span>stringliteral<span class="nb">}{</span>&quot;none&quot;<span class="nb">}</span>)
<span class="k">\}</span>
<span class="k">\end</span><span class="nb">{</span>DoxyCode<span class="nb">}</span>


Definition at line 49 of file libhomescreen.<span class="k">\+</span>hpp.



The documentation for this class was generated from the following files<span class="k">\+</span>:<span class="k">\begin</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
<span class="k">\item</span> 
include/libhomescreen/<span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8hpp<span class="nb">}{</span>libhomescreen.<span class="k">\+</span>hpp<span class="nb">}</span><span class="k">\item</span> 
libhomescreen/<span class="k">\hyperlink</span><span class="nb">{</span>libhomescreen<span class="nb">_</span>8cpp<span class="nb">}{</span>libhomescreen.<span class="k">\+</span>cpp<span class="nb">}</span><span class="k">\end</span><span class="nb">{</span>DoxyCompactItemize<span class="nb">}</span>
</pre></div>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div id="lfcollabprojects-footer">
  <div class="gray-diagonal">
    <div class="footer-inner">
      <p>Copyright &copy; 2015 The Linux Foundation. All rights reserved.</p>
      <p>
        Linux Foundation, Linux Standard Base, LSB, LSB Certified, IAccessible2,
        MeeGo are registered trademarks of the Linux Foundation.
      </p>
      <p>
        Linux is a registered
        <a href="http://www.linuxfoundation.org/programs/legal/trademark"
          >trademark</a
        >
        of Linus Torvalds. Please see our
        <a href="https://www.linuxfoundation.org/privacy">privacy policy</a>.
      </p>
    </div>
  </div>
</div>
</div> <!-- id=cgit -->
</body>
</html>
