class_q_bt_service_advertiser.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <title>QBluetoothZero: QBtServiceAdvertiser Class Reference</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  8. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="resize.js"></script>
  11. <script type="text/javascript" src="navtree.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(initResizable);
  14. </script>
  15. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  16. <script type="text/javascript" src="search/search.js"></script>
  17. <script type="text/javascript">
  18. $(document).ready(function() { searchBox.OnSelectItem(0); });
  19. </script>
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td id="projectlogo"><img alt="Logo" src="projecticonBlue.png"/></td>
  28. <td style="padding-left: 0.5em;">
  29. <div id="projectname">QBluetoothZero
  30. &#160;<span id="projectnumber">2.0</span>
  31. </div>
  32. </td>
  33. </tr>
  34. </tbody>
  35. </table>
  36. </div>
  37. <!-- Generated by Doxygen 1.7.5.1 -->
  38. <script type="text/javascript">
  39. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  40. </script>
  41. <div id="navrow1" class="tabs">
  42. <ul class="tablist">
  43. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  44. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  45. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  46. <li><a href="files.html"><span>Files</span></a></li>
  47. <li>
  48. <div id="MSearchBox" class="MSearchBoxInactive">
  49. <span class="left">
  50. <img id="MSearchSelect" src="search/mag_sel.png"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. alt=""/>
  54. <input type="text" id="MSearchField" value="Search" accesskey="S"
  55. onfocus="searchBox.OnSearchFieldFocus(true)"
  56. onblur="searchBox.OnSearchFieldFocus(false)"
  57. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  58. </span><span class="right">
  59. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  60. </span>
  61. </div>
  62. </li>
  63. </ul>
  64. </div>
  65. <div id="navrow2" class="tabs2">
  66. <ul class="tablist">
  67. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  68. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  69. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  70. </ul>
  71. </div>
  72. </div>
  73. <div id="side-nav" class="ui-resizable side-nav-resizable">
  74. <div id="nav-tree">
  75. <div id="nav-tree-contents">
  76. </div>
  77. </div>
  78. <div id="splitbar" style="-moz-user-select:none;"
  79. class="ui-resizable-handle">
  80. </div>
  81. </div>
  82. <script type="text/javascript">
  83. initNavTree('class_q_bt_service_advertiser.html','');
  84. </script>
  85. <div id="doc-content">
  86. <div class="header">
  87. <div class="summary">
  88. <a href="#pub-types">Public Types</a> &#124;
  89. <a href="#signals">Signals</a> &#124;
  90. <a href="#pub-methods">Public Member Functions</a> &#124;
  91. <a href="#friends">Friends</a> </div>
  92. <div class="headertitle">
  93. <div class="title">QBtServiceAdvertiser Class Reference</div> </div>
  94. </div>
  95. <div class="contents">
  96. <!-- doxytag: class="QBtServiceAdvertiser" -->
  97. <p><code>#include &lt;<a class="el" href="_q_bt_service_advertiser_8h_source.html">QBtServiceAdvertiser.h</a>&gt;</code></p>
  98. <p><a href="class_q_bt_service_advertiser-members.html">List of all members.</a></p>
  99. <table class="memberdecls">
  100. <tr><td colspan="2"><h2><a name="pub-types"></a>
  101. Public Types</h2></td></tr>
  102. <tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#ac39681f728f298e62f454c300986e9dc">ErrorCodes</a> { <a class="el" href="class_q_bt_service_advertiser.html#ac39681f728f298e62f454c300986e9dca7fa1da449c970420bd4f945f04fd2ad1">FeatureNotSupported</a>
  103. }</td></tr>
  104. <tr><td colspan="2"><h2><a name="signals"></a>
  105. Signals</h2></td></tr>
  106. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#ad3b82bfa197b6ee4454082b4ebe7de6b">advertisingStarted</a> (const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;service)</td></tr>
  107. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#ae558995770fb8cd412d323d9f698577b">advertisingStopped</a> ()</td></tr>
  108. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#a85030e58651d3a26612e4faaf0ea1f4d">error</a> (<a class="el" href="class_q_bt_service_advertiser.html#ac39681f728f298e62f454c300986e9dc">QBtServiceAdvertiser::ErrorCodes</a> code)</td></tr>
  109. <tr><td colspan="2"><h2><a name="pub-methods"></a>
  110. Public Member Functions</h2></td></tr>
  111. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#abca729be0ce7e8172b43e93c60c12930">QBtServiceAdvertiser</a> (QObject *parent)</td></tr>
  112. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#ade8a2e04133e9cc861d2ff68af8b9f36">~QBtServiceAdvertiser</a> ()</td></tr>
  113. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#a52bc79594aefff3eb687688b4fdb4fad">startAdvertising</a> (const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;service)</td></tr>
  114. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#a2d1b758ed89dbc8c8a119e6f4e93fb2c">stopAdvertising</a> ()</td></tr>
  115. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#a90121494e3339dfc6fa9cd3a97a00368">updateAvailability</a> (bool aAvailable)</td></tr>
  116. <tr><td colspan="2"><h2><a name="friends"></a>
  117. Friends</h2></td></tr>
  118. <tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_service_advertiser.html#a65fb8bc401be7c642ddbe27635eef2da">QBtServiceAdvertiserPrivate</a></td></tr>
  119. </table>
  120. <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
  121. <div class="textblock"><p>Class responsible to advertise a given bluetooth service.</p>
  122. <p>After the instantiation of the class, <a class="el" href="class_q_bt_service_advertiser.html#a52bc79594aefff3eb687688b4fdb4fad">startAdvertising(const QBtService&amp;)</a> can be callled to start advertising the given bluetooth service. If successfull then <a class="el" href="class_q_bt_service_advertiser.html#ad3b82bfa197b6ee4454082b4ebe7de6b">advertisingStarted(const QBtService&amp;)</a> signal is emitted.</p>
  123. <p>At any time <a class="el" href="class_q_bt_service_advertiser.html#a2d1b758ed89dbc8c8a119e6f4e93fb2c">stopAdvertising()</a> can be called to stop the advertising and remove the registered service from the SDP database. If successfull then <a class="el" href="class_q_bt_service_advertiser.html#ae558995770fb8cd412d323d9f698577b">advertisingStopped()</a> is emitted.</p>
  124. <p>If user wants to temporarily deactive the service advertisement then he can call <a class="el" href="class_q_bt_service_advertiser.html#a90121494e3339dfc6fa9cd3a97a00368">updateAvailability(bool)</a> (instead of the <a class="el" href="class_q_bt_service_advertiser.html#a2d1b758ed89dbc8c8a119e6f4e93fb2c">stopAdvertising()</a> that stops the advertising permanently).</p>
  125. <p>In case of error, <a class="el" href="class_q_bt_service_advertiser.html#a85030e58651d3a26612e4faaf0ea1f4d">error(ErrorCodes)</a> signal is emitted.</p>
  126. <p>For integrity reasons, at destruction stops the advertising causing the service to be deleted from the SDP database.</p>
  127. <p>NOTE: Currently there is no implementation on the Windows platform so after the intatiation of this object, any call to any function will emit an error(QBtServiceAdvertiser::FeatureNotSupported) signal. </p>
  128. </div><hr/><h2>Member Enumeration Documentation</h2>
  129. <a class="anchor" id="ac39681f728f298e62f454c300986e9dc"></a><!-- doxytag: member="QBtServiceAdvertiser::ErrorCodes" ref="ac39681f728f298e62f454c300986e9dc" args="" -->
  130. <div class="memitem">
  131. <div class="memproto">
  132. <table class="memname">
  133. <tr>
  134. <td class="memname">enum <a class="el" href="class_q_bt_service_advertiser.html#ac39681f728f298e62f454c300986e9dc">QBtServiceAdvertiser::ErrorCodes</a></td>
  135. </tr>
  136. </table>
  137. </div>
  138. <div class="memdoc">
  139. <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
  140. <tr><td valign="top"><em><a class="anchor" id="ac39681f728f298e62f454c300986e9dca7fa1da449c970420bd4f945f04fd2ad1"></a><!-- doxytag: member="FeatureNotSupported" ref="ac39681f728f298e62f454c300986e9dca7fa1da449c970420bd4f945f04fd2ad1" args="" -->FeatureNotSupported</em>&nbsp;</td><td>
  141. </td></tr>
  142. </table>
  143. </dd>
  144. </dl>
  145. </div>
  146. </div>
  147. <hr/><h2>Constructor &amp; Destructor Documentation</h2>
  148. <a class="anchor" id="abca729be0ce7e8172b43e93c60c12930"></a><!-- doxytag: member="QBtServiceAdvertiser::QBtServiceAdvertiser" ref="abca729be0ce7e8172b43e93c60c12930" args="(QObject *parent)" -->
  149. <div class="memitem">
  150. <div class="memproto">
  151. <table class="memname">
  152. <tr>
  153. <td class="memname">QBtServiceAdvertiser::QBtServiceAdvertiser </td>
  154. <td>(</td>
  155. <td class="paramtype">QObject *&#160;</td>
  156. <td class="paramname"><em>parent</em></td><td>)</td>
  157. <td></td>
  158. </tr>
  159. </table>
  160. </div>
  161. <div class="memdoc">
  162. </div>
  163. </div>
  164. <a class="anchor" id="ade8a2e04133e9cc861d2ff68af8b9f36"></a><!-- doxytag: member="QBtServiceAdvertiser::~QBtServiceAdvertiser" ref="ade8a2e04133e9cc861d2ff68af8b9f36" args="()" -->
  165. <div class="memitem">
  166. <div class="memproto">
  167. <table class="memname">
  168. <tr>
  169. <td class="memname">QBtServiceAdvertiser::~QBtServiceAdvertiser </td>
  170. <td>(</td>
  171. <td class="paramname"></td><td>)</td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. </div>
  176. <div class="memdoc">
  177. </div>
  178. </div>
  179. <hr/><h2>Member Function Documentation</h2>
  180. <a class="anchor" id="ad3b82bfa197b6ee4454082b4ebe7de6b"></a><!-- doxytag: member="QBtServiceAdvertiser::advertisingStarted" ref="ad3b82bfa197b6ee4454082b4ebe7de6b" args="(const QBtService &amp;service)" -->
  181. <div class="memitem">
  182. <div class="memproto">
  183. <table class="memname">
  184. <tr>
  185. <td class="memname">void QBtServiceAdvertiser::advertisingStarted </td>
  186. <td>(</td>
  187. <td class="paramtype">const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;&#160;</td>
  188. <td class="paramname"><em>service</em></td><td>)</td>
  189. <td><code> [signal]</code></td>
  190. </tr>
  191. </table>
  192. </div>
  193. <div class="memdoc">
  194. <p>The signal is emitted if the transmittion of the service is started </p>
  195. <dl><dt><b>Parameters:</b></dt><dd>
  196. <table class="params">
  197. <tr><td class="paramname">service</td><td>A reference to an object containing all the info of the service being transmitted. </td></tr>
  198. </table>
  199. </dd>
  200. </dl>
  201. </div>
  202. </div>
  203. <a class="anchor" id="ae558995770fb8cd412d323d9f698577b"></a><!-- doxytag: member="QBtServiceAdvertiser::advertisingStopped" ref="ae558995770fb8cd412d323d9f698577b" args="()" -->
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="memname">
  207. <tr>
  208. <td class="memname">void QBtServiceAdvertiser::advertisingStopped </td>
  209. <td>(</td>
  210. <td class="paramname"></td><td>)</td>
  211. <td><code> [signal]</code></td>
  212. </tr>
  213. </table>
  214. </div>
  215. <div class="memdoc">
  216. <p>The signal is emitted when the transmittion of the service ends. </p>
  217. </div>
  218. </div>
  219. <a class="anchor" id="a85030e58651d3a26612e4faaf0ea1f4d"></a><!-- doxytag: member="QBtServiceAdvertiser::error" ref="a85030e58651d3a26612e4faaf0ea1f4d" args="(QBtServiceAdvertiser::ErrorCodes code)" -->
  220. <div class="memitem">
  221. <div class="memproto">
  222. <table class="memname">
  223. <tr>
  224. <td class="memname">void QBtServiceAdvertiser::error </td>
  225. <td>(</td>
  226. <td class="paramtype"><a class="el" href="class_q_bt_service_advertiser.html#ac39681f728f298e62f454c300986e9dc">QBtServiceAdvertiser::ErrorCodes</a>&#160;</td>
  227. <td class="paramname"><em>code</em></td><td>)</td>
  228. <td><code> [signal]</code></td>
  229. </tr>
  230. </table>
  231. </div>
  232. <div class="memdoc">
  233. <p>Emitted in case of error (not implemented). </p>
  234. </div>
  235. </div>
  236. <a class="anchor" id="a52bc79594aefff3eb687688b4fdb4fad"></a><!-- doxytag: member="QBtServiceAdvertiser::startAdvertising" ref="a52bc79594aefff3eb687688b4fdb4fad" args="(const QBtService &amp;service)" -->
  237. <div class="memitem">
  238. <div class="memproto">
  239. <table class="memname">
  240. <tr>
  241. <td class="memname">void QBtServiceAdvertiser::startAdvertising </td>
  242. <td>(</td>
  243. <td class="paramtype">const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;&#160;</td>
  244. <td class="paramname"><em>service</em></td><td>)</td>
  245. <td></td>
  246. </tr>
  247. </table>
  248. </div>
  249. <div class="memdoc">
  250. <p>Starts the service advertiser.</p>
  251. <dl><dt><b>Parameters:</b></dt><dd>
  252. <table class="params">
  253. <tr><td class="paramname">service</td><td>the service class that contains all the necessery information for transmitting the service </td></tr>
  254. </table>
  255. </dd>
  256. </dl>
  257. </div>
  258. </div>
  259. <a class="anchor" id="a2d1b758ed89dbc8c8a119e6f4e93fb2c"></a><!-- doxytag: member="QBtServiceAdvertiser::stopAdvertising" ref="a2d1b758ed89dbc8c8a119e6f4e93fb2c" args="()" -->
  260. <div class="memitem">
  261. <div class="memproto">
  262. <table class="memname">
  263. <tr>
  264. <td class="memname">void QBtServiceAdvertiser::stopAdvertising </td>
  265. <td>(</td>
  266. <td class="paramname"></td><td>)</td>
  267. <td></td>
  268. </tr>
  269. </table>
  270. </div>
  271. <div class="memdoc">
  272. <p>Stops the transmittion of the service running (if any) </p>
  273. </div>
  274. </div>
  275. <a class="anchor" id="a90121494e3339dfc6fa9cd3a97a00368"></a><!-- doxytag: member="QBtServiceAdvertiser::updateAvailability" ref="a90121494e3339dfc6fa9cd3a97a00368" args="(bool aAvailable)" -->
  276. <div class="memitem">
  277. <div class="memproto">
  278. <table class="memname">
  279. <tr>
  280. <td class="memname">void QBtServiceAdvertiser::updateAvailability </td>
  281. <td>(</td>
  282. <td class="paramtype">bool&#160;</td>
  283. <td class="paramname"><em>aAvailable</em></td><td>)</td>
  284. <td></td>
  285. </tr>
  286. </table>
  287. </div>
  288. <div class="memdoc">
  289. <p>Change the availability of the service. </p>
  290. <dl><dt><b>Parameters:</b></dt><dd>
  291. <table class="params">
  292. <tr><td class="paramname">aAvailable</td><td>If true, the service is transmitted. </td></tr>
  293. </table>
  294. </dd>
  295. </dl>
  296. </div>
  297. </div>
  298. <hr/><h2>Friends And Related Function Documentation</h2>
  299. <a class="anchor" id="a65fb8bc401be7c642ddbe27635eef2da"></a><!-- doxytag: member="QBtServiceAdvertiser::QBtServiceAdvertiserPrivate" ref="a65fb8bc401be7c642ddbe27635eef2da" args="" -->
  300. <div class="memitem">
  301. <div class="memproto">
  302. <table class="memname">
  303. <tr>
  304. <td class="memname">friend class QBtServiceAdvertiserPrivate<code> [friend]</code></td>
  305. </tr>
  306. </table>
  307. </div>
  308. <div class="memdoc">
  309. </div>
  310. </div>
  311. <hr/>The documentation for this class was generated from the following file:<ul>
  312. <li><a class="el" href="_q_bt_service_advertiser_8h_source.html">QBtServiceAdvertiser.h</a></li>
  313. </ul>
  314. </div>
  315. </div>
  316. <div id="nav-path" class="navpath">
  317. <ul>
  318. <li class="navelem"><a class="el" href="class_q_bt_service_advertiser.html">QBtServiceAdvertiser</a> </li>
  319. <!-- window showing the filter options -->
  320. <div id="MSearchSelectWindow"
  321. onmouseover="return searchBox.OnSearchSelectShow()"
  322. onmouseout="return searchBox.OnSearchSelectHide()"
  323. onkeydown="return searchBox.OnSearchSelectKey(event)">
  324. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Defines</a></div>
  325. <!-- iframe showing the search results (closed by default) -->
  326. <div id="MSearchResultsWindow">
  327. <iframe src="javascript:void(0)" frameborder="0"
  328. name="MSearchResults" id="MSearchResults">
  329. </iframe>
  330. </div>
  331. <li class="footer">Generated on Wed Jan 4 2012 21:05:39 for QBluetoothZero by
  332. <a href="http://www.doxygen.org/index.html">
  333. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
  334. </ul>
  335. </div>
  336. </body>
  337. </html>