class_q_bt_object_exchange_server.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  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: QBtObjectExchangeServer 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_object_exchange_server.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="#pub-slots">Public Slots</a> &#124;
  90. <a href="#signals">Signals</a> &#124;
  91. <a href="#pub-methods">Public Member Functions</a> &#124;
  92. <a href="#pro-methods">Protected Member Functions</a> &#124;
  93. <a href="#friends">Friends</a> </div>
  94. <div class="headertitle">
  95. <div class="title">QBtObjectExchangeServer Class Reference</div> </div>
  96. </div>
  97. <div class="contents">
  98. <!-- doxytag: class="QBtObjectExchangeServer" -->
  99. <p><code>#include &lt;<a class="el" href="_q_bt_object_exchange_server_8h_source.html">QBtObjectExchangeServer.h</a>&gt;</code></p>
  100. <p><a href="class_q_bt_object_exchange_server-members.html">List of all members.</a></p>
  101. <table class="memberdecls">
  102. <tr><td colspan="2"><h2><a name="pub-types"></a>
  103. Public Types</h2></td></tr>
  104. <tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995">ErrorCode</a> { <br/>
  105. &#160;&#160;<a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995a7b1babf21e531114c6ed310546b254f7">QObexServerUndefined</a>,
  106. <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995aa672e5675965b8443c4359a5f7f0e692">QObexServerFailedToInitialize</a>,
  107. <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995a73190083fa6503e844defef4861a4bd5">QObexServerInUse</a>,
  108. <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995a10a4d24a46182dde54b0e4fb313f46d1">QObexServerClientAbortedTransfer</a>,
  109. <br/>
  110. &#160;&#160;<a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995a09d678b9a71de6f0811eb011277b8fce">QObexServerAbortedTransmission</a>,
  111. <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995a630e742b77cd227570a1c28c730afaef">QObexServerSessionError</a>,
  112. <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995a943ff28311281af69ace7308e9a39ccd">QObexServerSessionPutRequestProblem</a>,
  113. <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995afe31a743cfa409eb9358207550034805">QObexServerSessionCopyFileError</a>
  114. <br/>
  115. }</td></tr>
  116. <tr><td colspan="2"><h2><a name="pub-slots"></a>
  117. Public Slots</h2></td></tr>
  118. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a311083a250be7156a5b5ba3d877a657b">startServer</a> (const <a class="el" href="class_q_bt_uuid.html">QBtUuid</a> &amp;serviceId, const QString &amp;serviceName=&quot;My OBEX Service&quot;)</td></tr>
  119. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#adca043ec8bbfafbc5a5af556985c6f27">stopServer</a> ()</td></tr>
  120. <tr><td colspan="2"><h2><a name="signals"></a>
  121. Signals</h2></td></tr>
  122. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#af8497c81d6ebd4992a72ae67690b2862">serverStarted</a> ()</td></tr>
  123. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a2c64bbee722808a65e7b1071a45b894c">serverStopped</a> ()</td></tr>
  124. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a2b4ef0d7a5039be2980befb16aa20769">error</a> (<a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995">ErrorCode</a> code)</td></tr>
  125. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a1d7d6f390bcab5053f2608c9b4c3974d">receivingObjectInfo</a> (int overalDataSize, int bytesSent)</td></tr>
  126. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a7ecbc24952e3718d78a3de29b43ae23a">receivingStarted</a> ()</td></tr>
  127. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#aa03808d635bf8ab07b4ca84f87f7dfdd">receivingStopped</a> (const QString &amp;receivedFileName)</td></tr>
  128. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a8eb07f37f6a432ecf80b1d8227430116">transmittingRejected</a> ()</td></tr>
  129. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a1bc804412c9da6f6dafc2d5824a5b3d2">transmittingObjectInfo</a> (int overalDataSize, int byteSent)</td></tr>
  130. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#ab3e895dadb62260f47d0bfcd7e488a58">transmittingStarted</a> (const QString &amp;transmittingfileName)</td></tr>
  131. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a3c191a64409d807128ad477fb34626c9">transmittingStopped</a> (const QString &amp;transmittingfileName)</td></tr>
  132. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#aaad31936c2deaa94c4eadf6208e3dcd2">clientAbortedTransmittion</a> ()</td></tr>
  133. <tr><td colspan="2"><h2><a name="pub-methods"></a>
  134. Public Member Functions</h2></td></tr>
  135. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a35269598c02f30eec239554de7e2ceb0">QBtObjectExchangeServer</a> (QObject *parent)</td></tr>
  136. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a26570b11bfa43d2e24f39a6e4c94518c">~QBtObjectExchangeServer</a> ()</td></tr>
  137. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a40b1805d3469a4295c4c058dc4afef86">isConnected</a> ()</td></tr>
  138. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_q_bt_service.html">QBtService</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a0ad0ac71cf3602136ae65c28a34ab288">getTransmittingServiceInfo</a> ()</td></tr>
  139. <tr><td colspan="2"><h2><a name="pro-methods"></a>
  140. Protected Member Functions</h2></td></tr>
  141. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a1dfab6d7e3a3644718cd144262b8d739">setTransmittingService</a> (const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;service)</td></tr>
  142. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#a64c68f021eab940f1b431552510ee208">startAdvertisingService</a> (const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;service)</td></tr>
  143. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#af77f4c70101be67661fa71b334639389">stopAdvertisingService</a> ()</td></tr>
  144. <tr><td colspan="2"><h2><a name="friends"></a>
  145. Friends</h2></td></tr>
  146. <tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_bt_object_exchange_server.html#abeab8e57515dc0581897f83ccd590bb5">QBtObjectExchangeServerPrivate</a></td></tr>
  147. </table>
  148. <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
  149. <div class="textblock"><p>This class is used to create an OBEX server. After instantiation user can call startServer(const QString&amp;) to start the server. From the serviceName argument user can specify the name of the OBEX service which is how the service will be identified by other devices. By default the name is MyOBEX.</p>
  150. <p>If sever started successfully and is ready to use then <a class="el" href="class_q_bt_object_exchange_server.html#af8497c81d6ebd4992a72ae67690b2862">serverStarted()</a> signal is emitted. At destruction time or if user calls <a class="el" href="class_q_bt_object_exchange_server.html#adca043ec8bbfafbc5a5af556985c6f27">stopServer()</a>,terminates the service transmittion and disconnects from any device connected and <a class="el" href="class_q_bt_object_exchange_server.html#a2c64bbee722808a65e7b1071a45b894c">serverStopped()</a> signal is emitted.</p>
  151. <p>All the remaining signals are only for feedback in case any action that is done. </p>
  152. </div><hr/><h2>Member Enumeration Documentation</h2>
  153. <a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995"></a><!-- doxytag: member="QBtObjectExchangeServer::ErrorCode" ref="a49c02c430ad6d942c4c4d2242e6c8995" args="" -->
  154. <div class="memitem">
  155. <div class="memproto">
  156. <table class="memname">
  157. <tr>
  158. <td class="memname">enum <a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995">QBtObjectExchangeServer::ErrorCode</a></td>
  159. </tr>
  160. </table>
  161. </div>
  162. <div class="memdoc">
  163. <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
  164. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995a7b1babf21e531114c6ed310546b254f7"></a><!-- doxytag: member="QObexServerUndefined" ref="a49c02c430ad6d942c4c4d2242e6c8995a7b1babf21e531114c6ed310546b254f7" args="" -->QObexServerUndefined</em>&nbsp;</td><td>
  165. </td></tr>
  166. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995aa672e5675965b8443c4359a5f7f0e692"></a><!-- doxytag: member="QObexServerFailedToInitialize" ref="a49c02c430ad6d942c4c4d2242e6c8995aa672e5675965b8443c4359a5f7f0e692" args="" -->QObexServerFailedToInitialize</em>&nbsp;</td><td>
  167. </td></tr>
  168. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995a73190083fa6503e844defef4861a4bd5"></a><!-- doxytag: member="QObexServerInUse" ref="a49c02c430ad6d942c4c4d2242e6c8995a73190083fa6503e844defef4861a4bd5" args="" -->QObexServerInUse</em>&nbsp;</td><td>
  169. </td></tr>
  170. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995a10a4d24a46182dde54b0e4fb313f46d1"></a><!-- doxytag: member="QObexServerClientAbortedTransfer" ref="a49c02c430ad6d942c4c4d2242e6c8995a10a4d24a46182dde54b0e4fb313f46d1" args="" -->QObexServerClientAbortedTransfer</em>&nbsp;</td><td>
  171. </td></tr>
  172. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995a09d678b9a71de6f0811eb011277b8fce"></a><!-- doxytag: member="QObexServerAbortedTransmission" ref="a49c02c430ad6d942c4c4d2242e6c8995a09d678b9a71de6f0811eb011277b8fce" args="" -->QObexServerAbortedTransmission</em>&nbsp;</td><td>
  173. </td></tr>
  174. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995a630e742b77cd227570a1c28c730afaef"></a><!-- doxytag: member="QObexServerSessionError" ref="a49c02c430ad6d942c4c4d2242e6c8995a630e742b77cd227570a1c28c730afaef" args="" -->QObexServerSessionError</em>&nbsp;</td><td>
  175. </td></tr>
  176. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995a943ff28311281af69ace7308e9a39ccd"></a><!-- doxytag: member="QObexServerSessionPutRequestProblem" ref="a49c02c430ad6d942c4c4d2242e6c8995a943ff28311281af69ace7308e9a39ccd" args="" -->QObexServerSessionPutRequestProblem</em>&nbsp;</td><td>
  177. </td></tr>
  178. <tr><td valign="top"><em><a class="anchor" id="a49c02c430ad6d942c4c4d2242e6c8995afe31a743cfa409eb9358207550034805"></a><!-- doxytag: member="QObexServerSessionCopyFileError" ref="a49c02c430ad6d942c4c4d2242e6c8995afe31a743cfa409eb9358207550034805" args="" -->QObexServerSessionCopyFileError</em>&nbsp;</td><td>
  179. </td></tr>
  180. </table>
  181. </dd>
  182. </dl>
  183. </div>
  184. </div>
  185. <hr/><h2>Constructor &amp; Destructor Documentation</h2>
  186. <a class="anchor" id="a35269598c02f30eec239554de7e2ceb0"></a><!-- doxytag: member="QBtObjectExchangeServer::QBtObjectExchangeServer" ref="a35269598c02f30eec239554de7e2ceb0" args="(QObject *parent)" -->
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="memname">
  190. <tr>
  191. <td class="memname">QBtObjectExchangeServer::QBtObjectExchangeServer </td>
  192. <td>(</td>
  193. <td class="paramtype">QObject *&#160;</td>
  194. <td class="paramname"><em>parent</em></td><td>)</td>
  195. <td></td>
  196. </tr>
  197. </table>
  198. </div>
  199. <div class="memdoc">
  200. </div>
  201. </div>
  202. <a class="anchor" id="a26570b11bfa43d2e24f39a6e4c94518c"></a><!-- doxytag: member="QBtObjectExchangeServer::~QBtObjectExchangeServer" ref="a26570b11bfa43d2e24f39a6e4c94518c" args="()" -->
  203. <div class="memitem">
  204. <div class="memproto">
  205. <table class="memname">
  206. <tr>
  207. <td class="memname">QBtObjectExchangeServer::~QBtObjectExchangeServer </td>
  208. <td>(</td>
  209. <td class="paramname"></td><td>)</td>
  210. <td></td>
  211. </tr>
  212. </table>
  213. </div>
  214. <div class="memdoc">
  215. </div>
  216. </div>
  217. <hr/><h2>Member Function Documentation</h2>
  218. <a class="anchor" id="aaad31936c2deaa94c4eadf6208e3dcd2"></a><!-- doxytag: member="QBtObjectExchangeServer::clientAbortedTransmittion" ref="aaad31936c2deaa94c4eadf6208e3dcd2" args="()" -->
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="memname">
  222. <tr>
  223. <td class="memname">void QBtObjectExchangeServer::clientAbortedTransmittion </td>
  224. <td>(</td>
  225. <td class="paramname"></td><td>)</td>
  226. <td><code> [signal]</code></td>
  227. </tr>
  228. </table>
  229. </div>
  230. <div class="memdoc">
  231. <p>Emitted if during a transmittion the client aborts it. </p>
  232. </div>
  233. </div>
  234. <a class="anchor" id="a2b4ef0d7a5039be2980befb16aa20769"></a><!-- doxytag: member="QBtObjectExchangeServer::error" ref="a2b4ef0d7a5039be2980befb16aa20769" args="(ErrorCode code)" -->
  235. <div class="memitem">
  236. <div class="memproto">
  237. <table class="memname">
  238. <tr>
  239. <td class="memname">void QBtObjectExchangeServer::error </td>
  240. <td>(</td>
  241. <td class="paramtype"><a class="el" href="class_q_bt_object_exchange_server.html#a49c02c430ad6d942c4c4d2242e6c8995">ErrorCode</a>&#160;</td>
  242. <td class="paramname"><em>code</em></td><td>)</td>
  243. <td><code> [signal]</code></td>
  244. </tr>
  245. </table>
  246. </div>
  247. <div class="memdoc">
  248. <p>Emitted in case of error </p>
  249. </div>
  250. </div>
  251. <a class="anchor" id="a0ad0ac71cf3602136ae65c28a34ab288"></a><!-- doxytag: member="QBtObjectExchangeServer::getTransmittingServiceInfo" ref="a0ad0ac71cf3602136ae65c28a34ab288" args="()" -->
  252. <div class="memitem">
  253. <div class="memproto">
  254. <table class="memname">
  255. <tr>
  256. <td class="memname"><a class="el" href="class_q_bt_service.html">QBtService</a>&amp; QBtObjectExchangeServer::getTransmittingServiceInfo </td>
  257. <td>(</td>
  258. <td class="paramname"></td><td>)</td>
  259. <td></td>
  260. </tr>
  261. </table>
  262. </div>
  263. <div class="memdoc">
  264. <p>If <a class="el" href="class_q_bt_object_exchange_server.html#a311083a250be7156a5b5ba3d877a657b">startServer()</a> function is already called then using this function the user can acquire the information of the transmitting service that represents this server to the outside world. </p>
  265. </div>
  266. </div>
  267. <a class="anchor" id="a40b1805d3469a4295c4c058dc4afef86"></a><!-- doxytag: member="QBtObjectExchangeServer::isConnected" ref="a40b1805d3469a4295c4c058dc4afef86" args="()" -->
  268. <div class="memitem">
  269. <div class="memproto">
  270. <table class="memname">
  271. <tr>
  272. <td class="memname">bool QBtObjectExchangeServer::isConnected </td>
  273. <td>(</td>
  274. <td class="paramname"></td><td>)</td>
  275. <td></td>
  276. </tr>
  277. </table>
  278. </div>
  279. <div class="memdoc">
  280. <p>Returns true if the server is connected. </p>
  281. </div>
  282. </div>
  283. <a class="anchor" id="a1d7d6f390bcab5053f2608c9b4c3974d"></a><!-- doxytag: member="QBtObjectExchangeServer::receivingObjectInfo" ref="a1d7d6f390bcab5053f2608c9b4c3974d" args="(int overalDataSize, int bytesSent)" -->
  284. <div class="memitem">
  285. <div class="memproto">
  286. <table class="memname">
  287. <tr>
  288. <td class="memname">void QBtObjectExchangeServer::receivingObjectInfo </td>
  289. <td>(</td>
  290. <td class="paramtype">int&#160;</td>
  291. <td class="paramname"><em>overalDataSize</em>, </td>
  292. </tr>
  293. <tr>
  294. <td class="paramkey"></td>
  295. <td></td>
  296. <td class="paramtype">int&#160;</td>
  297. <td class="paramname"><em>bytesSent</em>&#160;</td>
  298. </tr>
  299. <tr>
  300. <td></td>
  301. <td>)</td>
  302. <td></td><td><code> [signal]</code></td>
  303. </tr>
  304. </table>
  305. </div>
  306. <div class="memdoc">
  307. <p>Emitted as a feedback of the running receive status of any data (file or byte buffer) </p>
  308. </div>
  309. </div>
  310. <a class="anchor" id="a7ecbc24952e3718d78a3de29b43ae23a"></a><!-- doxytag: member="QBtObjectExchangeServer::receivingStarted" ref="a7ecbc24952e3718d78a3de29b43ae23a" args="()" -->
  311. <div class="memitem">
  312. <div class="memproto">
  313. <table class="memname">
  314. <tr>
  315. <td class="memname">void QBtObjectExchangeServer::receivingStarted </td>
  316. <td>(</td>
  317. <td class="paramname"></td><td>)</td>
  318. <td><code> [signal]</code></td>
  319. </tr>
  320. </table>
  321. </div>
  322. <div class="memdoc">
  323. <p>Emitted when the transmittion of a file or byte buffer is started from a remote client to the local device. </p>
  324. </div>
  325. </div>
  326. <a class="anchor" id="aa03808d635bf8ab07b4ca84f87f7dfdd"></a><!-- doxytag: member="QBtObjectExchangeServer::receivingStopped" ref="aa03808d635bf8ab07b4ca84f87f7dfdd" args="(const QString &amp;receivedFileName)" -->
  327. <div class="memitem">
  328. <div class="memproto">
  329. <table class="memname">
  330. <tr>
  331. <td class="memname">void QBtObjectExchangeServer::receivingStopped </td>
  332. <td>(</td>
  333. <td class="paramtype">const QString &amp;&#160;</td>
  334. <td class="paramname"><em>receivedFileName</em></td><td>)</td>
  335. <td><code> [signal]</code></td>
  336. </tr>
  337. </table>
  338. </div>
  339. <div class="memdoc">
  340. <p>Emitted when a receiving of a file or byte buffer is stopped, being successfull or not.</p>
  341. <dl><dt><b>Parameters:</b></dt><dd>
  342. <table class="params">
  343. <tr><td class="paramname">receivedFileName</td><td></td></tr>
  344. </table>
  345. </dd>
  346. </dl>
  347. </div>
  348. </div>
  349. <a class="anchor" id="af8497c81d6ebd4992a72ae67690b2862"></a><!-- doxytag: member="QBtObjectExchangeServer::serverStarted" ref="af8497c81d6ebd4992a72ae67690b2862" args="()" -->
  350. <div class="memitem">
  351. <div class="memproto">
  352. <table class="memname">
  353. <tr>
  354. <td class="memname">void QBtObjectExchangeServer::serverStarted </td>
  355. <td>(</td>
  356. <td class="paramname"></td><td>)</td>
  357. <td><code> [signal]</code></td>
  358. </tr>
  359. </table>
  360. </div>
  361. <div class="memdoc">
  362. <p>Emitted when server is successfully started and ready to use. </p>
  363. </div>
  364. </div>
  365. <a class="anchor" id="a2c64bbee722808a65e7b1071a45b894c"></a><!-- doxytag: member="QBtObjectExchangeServer::serverStopped" ref="a2c64bbee722808a65e7b1071a45b894c" args="()" -->
  366. <div class="memitem">
  367. <div class="memproto">
  368. <table class="memname">
  369. <tr>
  370. <td class="memname">void QBtObjectExchangeServer::serverStopped </td>
  371. <td>(</td>
  372. <td class="paramname"></td><td>)</td>
  373. <td><code> [signal]</code></td>
  374. </tr>
  375. </table>
  376. </div>
  377. <div class="memdoc">
  378. <p>Emitted when server is disconnected and stopped </p>
  379. </div>
  380. </div>
  381. <a class="anchor" id="a1dfab6d7e3a3644718cd144262b8d739"></a><!-- doxytag: member="QBtObjectExchangeServer::setTransmittingService" ref="a1dfab6d7e3a3644718cd144262b8d739" args="(const QBtService &amp;service)" -->
  382. <div class="memitem">
  383. <div class="memproto">
  384. <table class="memname">
  385. <tr>
  386. <td class="memname">void QBtObjectExchangeServer::setTransmittingService </td>
  387. <td>(</td>
  388. <td class="paramtype">const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;&#160;</td>
  389. <td class="paramname"><em>service</em></td><td>)</td>
  390. <td><code> [protected]</code></td>
  391. </tr>
  392. </table>
  393. </div>
  394. <div class="memdoc">
  395. </div>
  396. </div>
  397. <a class="anchor" id="a64c68f021eab940f1b431552510ee208"></a><!-- doxytag: member="QBtObjectExchangeServer::startAdvertisingService" ref="a64c68f021eab940f1b431552510ee208" args="(const QBtService &amp;service)" -->
  398. <div class="memitem">
  399. <div class="memproto">
  400. <table class="memname">
  401. <tr>
  402. <td class="memname">void QBtObjectExchangeServer::startAdvertisingService </td>
  403. <td>(</td>
  404. <td class="paramtype">const <a class="el" href="class_q_bt_service.html">QBtService</a> &amp;&#160;</td>
  405. <td class="paramname"><em>service</em></td><td>)</td>
  406. <td><code> [protected]</code></td>
  407. </tr>
  408. </table>
  409. </div>
  410. <div class="memdoc">
  411. <p>Initializes a new advertiser and starts the transmitting of the service passed as argument. </p>
  412. </div>
  413. </div>
  414. <a class="anchor" id="a311083a250be7156a5b5ba3d877a657b"></a><!-- doxytag: member="QBtObjectExchangeServer::startServer" ref="a311083a250be7156a5b5ba3d877a657b" args="(const QBtUuid &amp;serviceId, const QString &amp;serviceName=&quot;My OBEX Service&quot;)" -->
  415. <div class="memitem">
  416. <div class="memproto">
  417. <table class="memname">
  418. <tr>
  419. <td class="memname">void QBtObjectExchangeServer::startServer </td>
  420. <td>(</td>
  421. <td class="paramtype">const <a class="el" href="class_q_bt_uuid.html">QBtUuid</a> &amp;&#160;</td>
  422. <td class="paramname"><em>serviceId</em>, </td>
  423. </tr>
  424. <tr>
  425. <td class="paramkey"></td>
  426. <td></td>
  427. <td class="paramtype">const QString &amp;&#160;</td>
  428. <td class="paramname"><em>serviceName</em> = <code>&quot;My&#160;OBEX&#160;Service&quot;</code>&#160;</td>
  429. </tr>
  430. <tr>
  431. <td></td>
  432. <td>)</td>
  433. <td></td><td><code> [slot]</code></td>
  434. </tr>
  435. </table>
  436. </div>
  437. <div class="memdoc">
  438. <p>Starts OBEX server by initializing the components needed and by advertising the service by which the server will be identified by other devices. </p>
  439. </div>
  440. </div>
  441. <a class="anchor" id="af77f4c70101be67661fa71b334639389"></a><!-- doxytag: member="QBtObjectExchangeServer::stopAdvertisingService" ref="af77f4c70101be67661fa71b334639389" args="()" -->
  442. <div class="memitem">
  443. <div class="memproto">
  444. <table class="memname">
  445. <tr>
  446. <td class="memname">void QBtObjectExchangeServer::stopAdvertisingService </td>
  447. <td>(</td>
  448. <td class="paramname"></td><td>)</td>
  449. <td><code> [protected]</code></td>
  450. </tr>
  451. </table>
  452. </div>
  453. <div class="memdoc">
  454. <p>Stops the transmittion of the service (if any) </p>
  455. </div>
  456. </div>
  457. <a class="anchor" id="adca043ec8bbfafbc5a5af556985c6f27"></a><!-- doxytag: member="QBtObjectExchangeServer::stopServer" ref="adca043ec8bbfafbc5a5af556985c6f27" args="()" -->
  458. <div class="memitem">
  459. <div class="memproto">
  460. <table class="memname">
  461. <tr>
  462. <td class="memname">void QBtObjectExchangeServer::stopServer </td>
  463. <td>(</td>
  464. <td class="paramname"></td><td>)</td>
  465. <td><code> [slot]</code></td>
  466. </tr>
  467. </table>
  468. </div>
  469. <div class="memdoc">
  470. <p>Stops the server, terminates the service transmittion and disconnects from any device connected </p>
  471. </div>
  472. </div>
  473. <a class="anchor" id="a1bc804412c9da6f6dafc2d5824a5b3d2"></a><!-- doxytag: member="QBtObjectExchangeServer::transmittingObjectInfo" ref="a1bc804412c9da6f6dafc2d5824a5b3d2" args="(int overalDataSize, int byteSent)" -->
  474. <div class="memitem">
  475. <div class="memproto">
  476. <table class="memname">
  477. <tr>
  478. <td class="memname">void QBtObjectExchangeServer::transmittingObjectInfo </td>
  479. <td>(</td>
  480. <td class="paramtype">int&#160;</td>
  481. <td class="paramname"><em>overalDataSize</em>, </td>
  482. </tr>
  483. <tr>
  484. <td class="paramkey"></td>
  485. <td></td>
  486. <td class="paramtype">int&#160;</td>
  487. <td class="paramname"><em>byteSent</em>&#160;</td>
  488. </tr>
  489. <tr>
  490. <td></td>
  491. <td>)</td>
  492. <td></td><td><code> [signal]</code></td>
  493. </tr>
  494. </table>
  495. </div>
  496. <div class="memdoc">
  497. <p>Emitted as a feedback of the running transmittion status of any data (file or byte buffer) * </p>
  498. </div>
  499. </div>
  500. <a class="anchor" id="a8eb07f37f6a432ecf80b1d8227430116"></a><!-- doxytag: member="QBtObjectExchangeServer::transmittingRejected" ref="a8eb07f37f6a432ecf80b1d8227430116" args="()" -->
  501. <div class="memitem">
  502. <div class="memproto">
  503. <table class="memname">
  504. <tr>
  505. <td class="memname">void QBtObjectExchangeServer::transmittingRejected </td>
  506. <td>(</td>
  507. <td class="paramname"></td><td>)</td>
  508. <td><code> [signal]</code></td>
  509. </tr>
  510. </table>
  511. </div>
  512. <div class="memdoc">
  513. <p>If the server (local device) sends a request to start a transmittion to the remote client connected, the client reserves the right to deny the transmittion before it begins. In that case <a class="el" href="class_q_bt_object_exchange_server.html#a8eb07f37f6a432ecf80b1d8227430116">transmittingRejected()</a> is emitted. </p>
  514. </div>
  515. </div>
  516. <a class="anchor" id="ab3e895dadb62260f47d0bfcd7e488a58"></a><!-- doxytag: member="QBtObjectExchangeServer::transmittingStarted" ref="ab3e895dadb62260f47d0bfcd7e488a58" args="(const QString &amp;transmittingfileName)" -->
  517. <div class="memitem">
  518. <div class="memproto">
  519. <table class="memname">
  520. <tr>
  521. <td class="memname">void QBtObjectExchangeServer::transmittingStarted </td>
  522. <td>(</td>
  523. <td class="paramtype">const QString &amp;&#160;</td>
  524. <td class="paramname"><em>transmittingfileName</em></td><td>)</td>
  525. <td><code> [signal]</code></td>
  526. </tr>
  527. </table>
  528. </div>
  529. <div class="memdoc">
  530. <p>Emitted when a transmittion is started from the local device to a remote device. </p>
  531. </div>
  532. </div>
  533. <a class="anchor" id="a3c191a64409d807128ad477fb34626c9"></a><!-- doxytag: member="QBtObjectExchangeServer::transmittingStopped" ref="a3c191a64409d807128ad477fb34626c9" args="(const QString &amp;transmittingfileName)" -->
  534. <div class="memitem">
  535. <div class="memproto">
  536. <table class="memname">
  537. <tr>
  538. <td class="memname">void QBtObjectExchangeServer::transmittingStopped </td>
  539. <td>(</td>
  540. <td class="paramtype">const QString &amp;&#160;</td>
  541. <td class="paramname"><em>transmittingfileName</em></td><td>)</td>
  542. <td><code> [signal]</code></td>
  543. </tr>
  544. </table>
  545. </div>
  546. <div class="memdoc">
  547. <p>Emitted upon successfull or not end of transmittion from the local device to a remote client. </p>
  548. </div>
  549. </div>
  550. <hr/><h2>Friends And Related Function Documentation</h2>
  551. <a class="anchor" id="abeab8e57515dc0581897f83ccd590bb5"></a><!-- doxytag: member="QBtObjectExchangeServer::QBtObjectExchangeServerPrivate" ref="abeab8e57515dc0581897f83ccd590bb5" args="" -->
  552. <div class="memitem">
  553. <div class="memproto">
  554. <table class="memname">
  555. <tr>
  556. <td class="memname">friend class QBtObjectExchangeServerPrivate<code> [friend]</code></td>
  557. </tr>
  558. </table>
  559. </div>
  560. <div class="memdoc">
  561. </div>
  562. </div>
  563. <hr/>The documentation for this class was generated from the following file:<ul>
  564. <li><a class="el" href="_q_bt_object_exchange_server_8h_source.html">QBtObjectExchangeServer.h</a></li>
  565. </ul>
  566. </div>
  567. </div>
  568. <div id="nav-path" class="navpath">
  569. <ul>
  570. <li class="navelem"><a class="el" href="class_q_bt_object_exchange_server.html">QBtObjectExchangeServer</a> </li>
  571. <!-- window showing the filter options -->
  572. <div id="MSearchSelectWindow"
  573. onmouseover="return searchBox.OnSearchSelectShow()"
  574. onmouseout="return searchBox.OnSearchSelectHide()"
  575. onkeydown="return searchBox.OnSearchSelectKey(event)">
  576. <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>
  577. <!-- iframe showing the search results (closed by default) -->
  578. <div id="MSearchResultsWindow">
  579. <iframe src="javascript:void(0)" frameborder="0"
  580. name="MSearchResults" id="MSearchResults">
  581. </iframe>
  582. </div>
  583. <li class="footer">Generated on Wed Jan 4 2012 21:05:39 for QBluetoothZero by
  584. <a href="http://www.doxygen.org/index.html">
  585. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
  586. </ul>
  587. </div>
  588. </body>
  589. </html>