Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 814a2b4c48f3ef6444b2ff5bf854d05a > files > 85

qtconnectivity5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qbluetoothtransferreply.cpp -->
  <title>QBluetoothTransferReply Class | Qt Bluetooth 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtbluetooth-index.html">Qt Bluetooth</a></td><td ><a href="qtbluetooth-module.html">C++ Classes</a></td><td >QBluetoothTransferReply</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtbluetooth-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#protected-variables">Protected Variables</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QBluetoothTransferReply Class</h1>
<!-- $$$QBluetoothTransferReply-brief -->
<p>The <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> class stores the response for a data transfer request. <a href="#details">More...</a></p>
<!-- @@@QBluetoothTransferReply -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QBluetoothTransferReply&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += bluetooth</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.2</td></tr></table></div><ul>
<li><a href="qbluetoothtransferreply-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#TransferError-enum">TransferError</a></b> { NoError, UnknownError, FileNotFoundError, HostNotFoundError, ..., SessionError }</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#dtor.QBluetoothTransferReply">~QBluetoothTransferReply</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QBluetoothTransferReply::TransferError </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#error">error</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#errorString">errorString</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#isFinished">isFinished</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#isRunning">isRunning</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothTransferManager *</td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#manager">manager</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothTransferRequest </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#request">request</a></b>() const</td></tr>
</table></div>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#abort">abort</a></b>()</td></tr>
</table></div>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#error-1">error</a></b>(QBluetoothTransferReply::TransferError <i>errorType</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#finished">finished</a></b>(QBluetoothTransferReply *<i>reply</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#transferProgress">transferProgress</a></b>(qint64 <i>bytesTransferred</i>, qint64 <i>bytesTotal</i>)</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#QBluetoothTransferReply">QBluetoothTransferReply</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#setManager">setManager</a></b>(QBluetoothTransferManager *<i>manager</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#setRequest">setRequest</a></b>(const QBluetoothTransferRequest &amp;<i>request</i>)</td></tr>
</table></div>
<a name="protected-variables"></a>
<h2 id="protected-variables">Protected Variables</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QBluetoothTransferReplyPrivate *</td><td class="memItemRight bottomAlign"><b><a href="qbluetoothtransferreply.html#d_ptr-var">d_ptr</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QBluetoothTransferReply-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> class stores the response for a data transfer request.</p>
<p>In additional to a copy of the <a href="qbluetoothtransferrequest.html">QBluetoothTransferRequest</a> object used to create the request, <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> contains the contents of the reply itself.</p>
<p>After the file transfer has started, <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> emits the <a href="qbluetoothtransferreply.html#transferProgress">transferProgress</a>() signal, which indicates the progress of the file transfer.</p>
</div>
<!-- @@@QBluetoothTransferReply -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$TransferError$$$NoError$$$UnknownError$$$FileNotFoundError$$$HostNotFoundError$$$UserCanceledTransferError$$$IODeviceNotReadableError$$$ResourceBusyError$$$SessionError -->
<h3 class="fn" id="TransferError-enum"><a name="TransferError-enum"></a>enum QBluetoothTransferReply::<span class="name">TransferError</span></h3>
<p>This enum describes the type of error that occurred</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::NoError</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">No error.</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::UnknownError</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Unknown error, no better enum available.</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::FileNotFoundError</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Unable to open the file specified.</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::HostNotFoundError</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Unable to connect to the target host.</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::UserCanceledTransferError</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">User terminated the transfer.</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::IODeviceNotReadableError</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">File was not open before initiating the sending command.</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::ResourceBusyError</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">Unable to access the resource..</td></tr>
<tr><td class="topAlign"><code>QBluetoothTransferReply::SessionError</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">An error occurred during the handling of the session. This enum was introduced by Qt 5.4&#x2e;</td></tr>
</table></div>
<!-- @@@TransferError -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QBluetoothTransferReply[overload1]$$$QBluetoothTransferReplyQObject* -->
<h3 class="fn" id="QBluetoothTransferReply"><a name="QBluetoothTransferReply"></a><code>[protected] </code>QBluetoothTransferReply::<span class="name">QBluetoothTransferReply</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> with <i>parent</i>.</p>
<!-- @@@QBluetoothTransferReply -->
<!-- $$$~QBluetoothTransferReply[overload1]$$$~QBluetoothTransferReply -->
<h3 class="fn" id="dtor.QBluetoothTransferReply"><a name="dtor.QBluetoothTransferReply"></a><code>[virtual] </code>QBluetoothTransferReply::<span class="name">~QBluetoothTransferReply</span>()</h3>
<p>Destroys the <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> object.</p>
<!-- @@@~QBluetoothTransferReply -->
<!-- $$$abort[overload1]$$$abort -->
<h3 class="fn" id="abort"><a name="abort"></a><code>[slot] </code><span class="type">void</span> QBluetoothTransferReply::<span class="name">abort</span>()</h3>
<p>Aborts this reply.</p>
<!-- @@@abort -->
<!-- $$$error[overload1]$$$error -->
<h3 class="fn" id="error"><a name="error"></a><code>[pure virtual] </code><span class="type"><a href="qbluetoothtransferreply.html#TransferError-enum">QBluetoothTransferReply::TransferError</a></span> QBluetoothTransferReply::<span class="name">error</span>() const</h3>
<p>The error code of the error that occurred.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#errorString">errorString</a>().</p>
<!-- @@@error -->
<!-- $$$error$$$errorQBluetoothTransferReply::TransferError -->
<h3 class="fn" id="error-1"><a name="error-1"></a><code>[signal] </code><span class="type">void</span> QBluetoothTransferReply::<span class="name">error</span>(<span class="type"><a href="qbluetoothtransferreply.html#TransferError-enum">QBluetoothTransferReply::TransferError</a></span> <i>errorType</i>)</h3>
<p>This signal is emitted whenever an error has occurred. The <i>errorType</i> parameter indicates the type of error.</p>
<p>To avoid the loss of signal emissions it is recommend to immidiately connect to this signal once a <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> instance has been created.</p>
<p><b>Note:</b> Signal <i>error</i> is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:<pre class="cpp">

  connect(bluetoothTransferReply<span class="operator">,</span> <span class="type">QOverload</span><span class="operator">&lt;</span><span class="type"><a href="qbluetoothtransferreply.html#QBluetoothTransferReply">QBluetoothTransferReply</a></span><span class="operator">::</span>TransferError<span class="operator">&gt;</span><span class="operator">::</span>of(<span class="operator">&amp;</span><span class="type"><a href="qbluetoothtransferreply.html#QBluetoothTransferReply">QBluetoothTransferReply</a></span><span class="operator">::</span>error)<span class="operator">,</span>
      <span class="operator">[</span><span class="operator">=</span><span class="operator">]</span>(<span class="type"><a href="qbluetoothtransferreply.html#QBluetoothTransferReply">QBluetoothTransferReply</a></span><span class="operator">::</span>TransferError errorType){ <span class="comment">/* ... */</span> });

</pre>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#error">error</a>() and <a href="qbluetoothtransferreply.html#errorString">errorString</a>().</p>
<!-- @@@error -->
<!-- $$$errorString[overload1]$$$errorString -->
<h3 class="fn" id="errorString"><a name="errorString"></a><code>[pure virtual] </code><span class="type">QString</span> QBluetoothTransferReply::<span class="name">errorString</span>() const</h3>
<p>String describing the error. Can be displayed to the user.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#error">error</a>().</p>
<!-- @@@errorString -->
<!-- $$$finished[overload1]$$$finishedQBluetoothTransferReply* -->
<h3 class="fn" id="finished"><a name="finished"></a><code>[signal] </code><span class="type">void</span> QBluetoothTransferReply::<span class="name">finished</span>(<span class="type"><a href="qbluetoothtransferreply.html#QBluetoothTransferReply">QBluetoothTransferReply</a></span> *<i>reply</i>)</h3>
<p>This signal is emitted when the transfer is complete for <i>reply</i>.</p>
<p>To avoid the loss of signal emissions it is recommend to immidiately connect to this signal once a <code>QBluetoothTransferReply</code> instance has been created.</p>
<!-- @@@finished -->
<!-- $$$isFinished[overload1]$$$isFinished -->
<h3 class="fn" id="isFinished"><a name="isFinished"></a><code>[pure virtual] </code><span class="type">bool</span> QBluetoothTransferReply::<span class="name">isFinished</span>() const</h3>
<p>Returns true if this reply has finished, otherwise false.</p>
<!-- @@@isFinished -->
<!-- $$$isRunning[overload1]$$$isRunning -->
<h3 class="fn" id="isRunning"><a name="isRunning"></a><code>[pure virtual] </code><span class="type">bool</span> QBluetoothTransferReply::<span class="name">isRunning</span>() const</h3>
<p>Returns true if this reply is running, otherwise false.</p>
<!-- @@@isRunning -->
<!-- $$$manager[overload1]$$$manager -->
<h3 class="fn" id="manager"><a name="manager"></a><span class="type"><a href="qbluetoothtransfermanager.html">QBluetoothTransferManager</a></span> *QBluetoothTransferReply::<span class="name">manager</span>() const</h3>
<p>Returns the <a href="qbluetoothtransfermanager.html">QBluetoothTransferManager</a> that was used to create this <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> object. Initially, it is also the parent object.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#setManager">setManager</a>().</p>
<!-- @@@manager -->
<!-- $$$request[overload1]$$$request -->
<h3 class="fn" id="request"><a name="request"></a><span class="type"><a href="qbluetoothtransferrequest.html">QBluetoothTransferRequest</a></span> QBluetoothTransferReply::<span class="name">request</span>() const</h3>
<p>Returns the <a href="qbluetoothtransferrequest.html">QBluetoothTransferRequest</a> that was used to create this <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> object.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#setRequest">setRequest</a>().</p>
<!-- @@@request -->
<!-- $$$setManager[overload1]$$$setManagerQBluetoothTransferManager* -->
<h3 class="fn" id="setManager"><a name="setManager"></a><code>[protected] </code><span class="type">void</span> QBluetoothTransferReply::<span class="name">setManager</span>(<span class="type"><a href="qbluetoothtransfermanager.html">QBluetoothTransferManager</a></span> *<i>manager</i>)</h3>
<p>Set the reply's manager to the <i>manager</i>.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#manager">manager</a>().</p>
<!-- @@@setManager -->
<!-- $$$setRequest[overload1]$$$setRequestconstQBluetoothTransferRequest& -->
<h3 class="fn" id="setRequest"><a name="setRequest"></a><code>[protected] </code><span class="type">void</span> QBluetoothTransferReply::<span class="name">setRequest</span>(const <span class="type"><a href="qbluetoothtransferrequest.html">QBluetoothTransferRequest</a></span> &amp;<i>request</i>)</h3>
<p>Set the reply's request to <i>request</i>.</p>
<p><b>See also </b><a href="qbluetoothtransferreply.html#request">request</a>().</p>
<!-- @@@setRequest -->
<!-- $$$transferProgress[overload1]$$$transferProgressqint64qint64 -->
<h3 class="fn" id="transferProgress"><a name="transferProgress"></a><code>[signal] </code><span class="type">void</span> QBluetoothTransferReply::<span class="name">transferProgress</span>(<span class="type">qint64</span> <i>bytesTransferred</i>, <span class="type">qint64</span> <i>bytesTotal</i>)</h3>
<p>This signal is emitted whenever data is transferred. The <i>bytesTransferred</i> parameter contains the total number of bytes transferred so far out of <i>bytesTotal</i>.</p>
<p>To avoid the loss of signal emissions it is recommend to immidiately connect to this signal once a <a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a> instance has been created.</p>
<!-- @@@transferProgress -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>