Sophie

Sophie

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

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" />
<!-- qnearfieldtagtype2.cpp -->
  <title>Qt Mobility 1.2: QNearFieldTagType2 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>QNearFieldTagType2</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">QNearFieldTagType2 Class Reference</h1>
<!-- $$$QNearFieldTagType2-brief -->
<p>The QNearFieldTagType2 class provides an interface for communicating with an NFC Tag Type 2 tag. <a href="#details">More...</a></p>
<!-- @@@QNearFieldTagType2 -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QNearFieldTagType2&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="qnearfieldtagtype2-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="qnearfieldtagtype2.html#QNearFieldTagType2">QNearFieldTagType2</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#dtor.QNearFieldTagType2">~QNearFieldTagType2</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#memorySize">memorySize</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#readBlock">readBlock</a></b> ( quint8 <i>blockAddress</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#selectSector">selectSector</a></b> ( quint8 <i>sector</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint8 </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#version">version</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#writeBlock">writeBlock</a></b> ( quint8 <i>blockAddress</i>, const QByteArray &amp; <i>data</i> )</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#hasNdefMessage">hasNdefMessage</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#readNdefMessages">readNdefMessages</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Type </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#type">type</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#waitForRequestCompleted">waitForRequestCompleted</a></b> ( const RequestId &amp; <i>id</i>, int <i>msecs</i> = 5000 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype2.html#writeNdefMessages">writeNdefMessages</a></b> ( const QList&lt;QNdefMessage&gt; &amp; <i>messages</i> )</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="qnearfieldtagtype2.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>
<!-- $$$QNearFieldTagType2-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QNearFieldTagType2 class provides an interface for communicating with an NFC Tag Type 2 tag.</p>
</div>
<!-- @@@QNearFieldTagType2 -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QNearFieldTagType2[overload1]$$$QNearFieldTagType2QObject* -->
<h3 class="fn"><a name="QNearFieldTagType2"></a>QNearFieldTagType2::<span class="name">QNearFieldTagType2</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 2 near field target with <i>parent</i>.</p>
<!-- @@@QNearFieldTagType2 -->
<!-- $$$~QNearFieldTagType2[overload1]$$$~QNearFieldTagType2 -->
<h3 class="fn"><a name="dtor.QNearFieldTagType2"></a>QNearFieldTagType2::<span class="name">~QNearFieldTagType2</span> ()</h3>
<p>Destroys the tag type 2 near field target.</p>
<!-- @@@~QNearFieldTagType2 -->
<!-- $$$handleResponse[overload1]$$$handleResponseconstQNearFieldTarget::RequestId&constQByteArray& -->
<h3 class="fn"><a name="handleResponse"></a><span class="type">bool</span> QNearFieldTagType2::<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 -->
<!-- $$$hasNdefMessage[overload1]$$$hasNdefMessage -->
<h3 class="fn"><a name="hasNdefMessage"></a><span class="type">bool</span> QNearFieldTagType2::<span class="name">hasNdefMessage</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#hasNdefMessage">QNearFieldTarget::hasNdefMessage</a>().</p>
<!-- @@@hasNdefMessage -->
<!-- $$$memorySize[overload1]$$$memorySize -->
<h3 class="fn"><a name="memorySize"></a><span class="type">int</span> QNearFieldTagType2::<span class="name">memorySize</span> ()</h3>
<p>Returns the memory size in bytes of the tag.</p>
<!-- @@@memorySize -->
<!-- $$$readBlock[overload1]$$$readBlockquint8 -->
<h3 class="fn"><a name="readBlock"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType2::<span class="name">readBlock</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint8-typedef">quint8</a></span> <i>blockAddress</i> )<tt> [virtual]</tt></h3>
<p>Requests 16 bytes of data starting at <i>blockAddress</i>. 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="qnearfieldtagtype2.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@readBlock -->
<!-- $$$readNdefMessages[overload1]$$$readNdefMessages -->
<h3 class="fn"><a name="readNdefMessages"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType2::<span class="name">readNdefMessages</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#readNdefMessages">QNearFieldTarget::readNdefMessages</a>().</p>
<!-- @@@readNdefMessages -->
<!-- $$$selectSector[overload1]$$$selectSectorquint8 -->
<h3 class="fn"><a name="selectSector"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType2::<span class="name">selectSector</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint8-typedef">quint8</a></span> <i>sector</i> )<tt> [virtual]</tt></h3>
<p>Selects the <i>sector</i> upon which subsequent <a href="qnearfieldtagtype2.html#readBlock">readBlock</a>() and <a href="qnearfieldtagtype2.html#writeBlock">writeBlock</a>() operations will act.</p>
<p>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>Note:</b> this request has a passive acknowledgement mechanism. The operation is deemed successful if no response is received within 1ms. It will therefore take a minimum of 1 millisecond for the <a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() signal to be emitted and calling <a href="qnearfieldtagtype2.html#waitForRequestCompleted">waitForRequestCompleted</a>() on the returned request id may cause the current thread to block for up to 1 millisecond.</p>
<!-- @@@selectSector -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qnearfieldtarget.html#Type-enum">Type</a></span> QNearFieldTagType2::<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> QNearFieldTagType2::<span class="name">version</span> ()</h3>
<p>Returns the NFC Tag Type 2 specification version number that the tag supports.</p>
<!-- @@@version -->
<!-- $$$waitForRequestCompleted[overload1]$$$waitForRequestCompletedconstRequestId&int -->
<h3 class="fn"><a name="waitForRequestCompleted"></a><span class="type">bool</span> QNearFieldTagType2::<span class="name">waitForRequestCompleted</span> ( const <span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> &amp; <i>id</i>, <span class="type">int</span> <i>msecs</i> = 5000 )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#waitForRequestCompleted">QNearFieldTarget::waitForRequestCompleted</a>().</p>
<!-- @@@waitForRequestCompleted -->
<!-- $$$writeBlock[overload1]$$$writeBlockquint8constQByteArray& -->
<h3 class="fn"><a name="writeBlock"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType2::<span class="name">writeBlock</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint8-typedef">quint8</a></span> <i>blockAddress</i>, const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a></span> &amp; <i>data</i> )<tt> [virtual]</tt></h3>
<p>Writes 4 bytes of <i>data</i> to the block at <i>blockAddress</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>Returns true on success; otherwise returns false.</p>
<!-- @@@writeBlock -->
<!-- $$$writeNdefMessages[overload1]$$$writeNdefMessagesconstQList<QNdefMessage>& -->
<h3 class="fn"><a name="writeNdefMessages"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType2::<span class="name">writeNdefMessages</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="qndefmessage.html">QNdefMessage</a></span>&gt; &amp; <i>messages</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#writeNdefMessages">QNearFieldTarget::writeNdefMessages</a>().</p>
<!-- @@@writeNdefMessages -->
</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>