Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 1503

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qnearfieldtagtype4.cpp -->
  <title>Qt Mobility 1.2: QNearFieldTagType4 Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtconnectivity.html">QtConnectivity</a></li>
<li>QNearFieldTagType4</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QNearFieldTagType4 Class Reference</h1>
<!-- $$$QNearFieldTagType4-brief -->
<p>The QNearFieldTagType4 class provides an interface for communicating with an NFC Tag Type 4 tag. <a href="#details">More...</a></p>
<!-- @@@QNearFieldTagType4 -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QNearFieldTagType4&gt;</span></pre><p><b>Inherits: </b><a href="qnearfieldtarget.html">QNearFieldTarget</a>.</p>
<p>This class was introduced in Qt Mobility 1.2.</p>
<ul>
<li><a href="qnearfieldtagtype4-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#QNearFieldTagType4">QNearFieldTagType4</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#dtor.QNearFieldTagType4">~QNearFieldTagType4</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#read">read</a></b> ( quint16 <i>length</i> = 0, quint16 <i>startOffset</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#select">select</a></b> ( const QByteArray &amp; <i>name</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#select-2">select</a></b> ( quint16 <i>fileIdentifier</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint8 </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#version">version</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#write">write</a></b> ( const QByteArray &amp; <i>data</i>, quint16 <i>startOffset</i> = 0 )</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual Type </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#type">type</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">13 public functions inherited from <a href="qnearfieldtarget.html#public-functions">QNearFieldTarget</a></li>
<li class="fn">29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype4.html#handleResponse">handleResponse</a></b> ( const QNearFieldTarget::RequestId &amp; <i>id</i>, const QByteArray &amp; <i>response</i> )</td></tr>
</table>
<ul>
<li class="fn">1 protected function inherited from <a href="qnearfieldtarget.html#protected-functions">QNearFieldTarget</a></li>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
<li class="fn">5 signals inherited from <a href="qnearfieldtarget.html#signals">QNearFieldTarget</a></li>
<li class="fn">1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qnearfieldtarget.html#protected-functions">QNearFieldTarget</a></li>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QNearFieldTagType4-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QNearFieldTagType4 class provides an interface for communicating with an NFC Tag Type 4 tag.</p>
</div>
<!-- @@@QNearFieldTagType4 -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QNearFieldTagType4[overload1]$$$QNearFieldTagType4QObject* -->
<h3 class="fn"><a name="QNearFieldTagType4"></a>QNearFieldTagType4::<span class="name">QNearFieldTagType4</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a new tag type 4 near field target with <i>parent</i>.</p>
<!-- @@@QNearFieldTagType4 -->
<!-- $$$~QNearFieldTagType4[overload1]$$$~QNearFieldTagType4 -->
<h3 class="fn"><a name="dtor.QNearFieldTagType4"></a>QNearFieldTagType4::<span class="name">~QNearFieldTagType4</span> ()</h3>
<p>Destroys the tag type 4 near field target.</p>
<!-- @@@~QNearFieldTagType4 -->
<!-- $$$handleResponse[overload1]$$$handleResponseconstQNearFieldTarget::RequestId&constQByteArray& -->
<h3 class="fn"><a name="handleResponse"></a><span class="type">bool</span> QNearFieldTagType4::<span class="name">handleResponse</span> ( const <span class="type"><a href="qnearfieldtarget-requestid.html">QNearFieldTarget::RequestId</a></span> &amp; <i>id</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a></span> &amp; <i>response</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#handleResponse">QNearFieldTarget::handleResponse</a>().</p>
<!-- @@@handleResponse -->
<!-- $$$read[overload1]$$$readquint16quint16 -->
<h3 class="fn"><a name="read"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType4::<span class="name">read</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>length</i> = 0, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>startOffset</i> = 0 )<tt> [virtual]</tt></h3>
<p>Requests that <i>length</i> bytes be read from the currently selected file starting from <i>startOffset</i>. If <i>length</i> is 0 all data or the maximum read size bytes will be read, whichever is smaller. Returns a request id which can be used to track the completion status of the request.</p>
<p>Once the request completes successfully the response can be retrieved from the <a href="qnearfieldtarget.html#requestResponse">requestResponse</a>() function. The response of this request will be a <a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a>.</p>
<p><b>See also </b><a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() and <a href="qnearfieldtarget.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@read -->
<!-- $$$select[overload1]$$$selectconstQByteArray& -->
<h3 class="fn"><a name="select"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType4::<span class="name">select</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a></span> &amp; <i>name</i> )<tt> [virtual]</tt></h3>
<p>Requests that the file specified by <i>name</i> be selected. Upon success calls to <a href="qnearfieldtagtype4.html#read">read</a>() and <a href="qnearfieldtagtype4.html#write">write</a>() will act on the selected file. Returns a request id which can be used to track the completion status of the request.</p>
<p>Once the request completes the response can be retrieved from the <a href="qnearfieldtarget.html#requestResponse">requestResponse</a>() function. The response of this request will be a boolean value, true for success; otherwise false.</p>
<p><b>See also </b><a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() and <a href="qnearfieldtarget.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@select -->
<!-- $$$select$$$selectquint16 -->
<h3 class="fn"><a name="select-2"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType4::<span class="name">select</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>fileIdentifier</i> )<tt> [virtual]</tt></h3>
<p>Requests that the file specified by <i>fileIdentifier</i> be selected. Upon success calls to <a href="qnearfieldtagtype4.html#read">read</a>() and <a href="qnearfieldtagtype4.html#write">write</a>() will act on the selected file. Returns a request id which can be used to track the completion status of the request.</p>
<p>Once the request completes the response can be retrieved from the <a href="qnearfieldtarget.html#requestResponse">requestResponse</a>() function. The response of this request will be a boolean value, true for success; otherwise false.</p>
<p><b>See also </b><a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() and <a href="qnearfieldtarget.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@select -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qnearfieldtarget.html#Type-enum">Type</a></span> QNearFieldTagType4::<span class="name">type</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#type">QNearFieldTarget::type</a>().</p>
<!-- @@@type -->
<!-- $$$version[overload1]$$$version -->
<h3 class="fn"><a name="version"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint8-typedef">quint8</a></span> QNearFieldTagType4::<span class="name">version</span> ()</h3>
<p>Returns the NFC Tag Type 4 specification version number that the tag supports.</p>
<!-- @@@version -->
<!-- $$$write[overload1]$$$writeconstQByteArray&quint16 -->
<h3 class="fn"><a name="write"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType4::<span class="name">write</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a></span> &amp; <i>data</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>startOffset</i> = 0 )<tt> [virtual]</tt></h3>
<p>Writes <i>data</i> to the currently selected file starting at <i>startOffset</i>. Returns a request id which can be used to track the completion status of the request.</p>
<p>Once the request completes the response can be retrieved from the <a href="qnearfieldtarget.html#requestResponse">requestResponse</a>() function. The response of this request will be a boolean value, true for success; otherwise false.</p>
<p><b>See also </b><a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() and <a href="qnearfieldtarget.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@write -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used 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.</p>
</div>
</body>
</html>