Sophie

Sophie

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

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" />
<!-- qnearfieldtagtype3.cpp -->
  <title>Qt Mobility 1.2: QNearFieldTagType3 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>QNearFieldTagType3</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">QNearFieldTagType3 Class Reference</h1>
<!-- $$$QNearFieldTagType3-brief -->
<p>The QNearFieldTagType3 class provides an interface for communicating with an NFC Tag Type 3 tag. <a href="#details">More...</a></p>
<!-- @@@QNearFieldTagType3 -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QNearFieldTagType3&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="qnearfieldtagtype3-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="qnearfieldtagtype3.html#QNearFieldTagType3">QNearFieldTagType3</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#check">check</a></b> ( const QMap&lt;quint16, QList&lt;quint16&gt; &gt; &amp; <i>serviceBlockList</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#serviceData">serviceData</a></b> ( quint16 <i>serviceCode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#serviceMemorySize">serviceMemorySize</a></b> ( quint16 <i>serviceCode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;quint16&gt; </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#services">services</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint16 </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#systemCode">systemCode</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#update">update</a></b> ( const QMap&lt;quint16, QList&lt;quint16&gt; &gt; &amp; <i>serviceBlockList</i>, const QByteArray &amp; <i>data</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual RequestId </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.html#writeServiceData">writeServiceData</a></b> ( quint16 <i>serviceCode</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 Type </td><td class="memItemRight bottomAlign"><b><a href="qnearfieldtagtype3.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="qnearfieldtagtype3.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>
<!-- $$$QNearFieldTagType3-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QNearFieldTagType3 class provides an interface for communicating with an NFC Tag Type 3 tag.</p>
</div>
<!-- @@@QNearFieldTagType3 -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QNearFieldTagType3[overload1]$$$QNearFieldTagType3QObject* -->
<h3 class="fn"><a name="QNearFieldTagType3"></a>QNearFieldTagType3::<span class="name">QNearFieldTagType3</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 3 near field target with <i>parent</i>.</p>
<!-- @@@QNearFieldTagType3 -->
<!-- $$$check[overload1]$$$checkconstQMap<quint16,QList<quint16>>& -->
<h3 class="fn"><a name="check"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType3::<span class="name">check</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span>&gt; &gt; &amp; <i>serviceBlockList</i> )<tt> [virtual]</tt></h3>
<p>Sends the <i>check</i> request to the target. Requests the service data blocks specified by <i>serviceBlockList</i>. Returns a request id which can be used to track the completion status of the request.</p>
<p>The <i>serviceBlockList</i> parameter is a map with the key being the service code and the value being a list of block indexes to retrieve.</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 <a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a>&lt;quint16, <a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a>&gt;, with the key being the service code and the value being the concatenated blocks retrieved for that service.</p>
<p>This is a low level function, to retrieve the entire data contents of a service use <a href="qnearfieldtagtype3.html#serviceData">serviceData</a>().</p>
<p><b>See also </b><a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() and <a href="qnearfieldtarget.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@check -->
<!-- $$$handleResponse[overload1]$$$handleResponseconstQNearFieldTarget::RequestId&constQByteArray& -->
<h3 class="fn"><a name="handleResponse"></a><span class="type">bool</span> QNearFieldTagType3::<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 -->
<!-- $$$serviceData[overload1]$$$serviceDataquint16 -->
<h3 class="fn"><a name="serviceData"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType3::<span class="name">serviceData</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>serviceCode</i> )<tt> [virtual]</tt></h3>
<p>Requests the data contents of the service specified by <i>serviceCode</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 service data 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>
<!-- @@@serviceData -->
<!-- $$$serviceMemorySize[overload1]$$$serviceMemorySizequint16 -->
<h3 class="fn"><a name="serviceMemorySize"></a><span class="type">int</span> QNearFieldTagType3::<span class="name">serviceMemorySize</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>serviceCode</i> )</h3>
<p>Returns the memory size of the service specified by <i>serviceCode</i>.</p>
<!-- @@@serviceMemorySize -->
<!-- $$$services[overload1]$$$services -->
<h3 class="fn"><a name="services"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span>&gt; QNearFieldTagType3::<span class="name">services</span> ()</h3>
<p>Returns a list of available services.</p>
<!-- @@@services -->
<!-- $$$systemCode[overload1]$$$systemCode -->
<h3 class="fn"><a name="systemCode"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> QNearFieldTagType3::<span class="name">systemCode</span> ()</h3>
<p>Returns the system code of the target.</p>
<!-- @@@systemCode -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qnearfieldtarget.html#Type-enum">Type</a></span> QNearFieldTagType3::<span class="name">type</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qnearfieldtarget.html#type">QNearFieldTarget::type</a>().</p>
<!-- @@@type -->
<!-- $$$update[overload1]$$$updateconstQMap<quint16,QList<quint16>>&constQByteArray& -->
<h3 class="fn"><a name="update"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType3::<span class="name">update</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qmap.html">QMap</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a></span>&lt;<span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span>&gt; &gt; &amp; <i>serviceBlockList</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>Sends the <i>update</i> request to the target. Writes <i>data</i> to the services and block indexes sepecified by <i>serviceBlockList</i>. Returns a request id which can be used to track the completion status of the request.</p>
<p>The <i>serviceBlockList</i> parameter is a map with the key being the service code and the value being a list of block indexes to write to.</p>
<p>Once the request completes the response can be retried 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>This is a low level function, to write the entire data contents of a service use <a href="qnearfieldtagtype3.html#writeServiceData">writeServiceData</a>().</p>
<p><b>See also </b><a href="qnearfieldtarget.html#requestCompleted">requestCompleted</a>() and <a href="qnearfieldtarget.html#waitForRequestCompleted">waitForRequestCompleted</a>().</p>
<!-- @@@update -->
<!-- $$$writeServiceData[overload1]$$$writeServiceDataquint16constQByteArray& -->
<h3 class="fn"><a name="writeServiceData"></a><span class="type"><a href="qnearfieldtarget-requestid.html">RequestId</a></span> QNearFieldTagType3::<span class="name">writeServiceData</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qtglobal.html#quint16-typedef">quint16</a></span> <i>serviceCode</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 <i>data</i> to the the service specified by <i>serviceCode</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>
<!-- @@@writeServiceData -->
</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>