Sophie

Sophie

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

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" />
<!-- qndefmessage.cpp -->
  <title>Qt Mobility 1.2: QNdefMessage 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>QNdefMessage</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="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QNdefMessage Class Reference</h1>
<!-- $$$QNdefMessage-brief -->
<p>The QNdefMessage class provides an NFC NDEF message. <a href="#details">More...</a></p>
<!-- @@@QNdefMessage -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QNdefMessage&gt;</span></pre><p><b>Inherits: </b><a href="http://qt.nokia.com/doc/4.7/qlist.html">QList&lt;QNdefRecord&gt;</a>.</p>
<p>This class was introduced in Qt Mobility 1.2.</p>
<ul>
<li><a href="qndefmessage-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="qndefmessage.html#QNdefMessage">QNdefMessage</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qndefmessage.html#QNdefMessage-2">QNdefMessage</a></b> ( const QNdefRecord &amp; <i>record</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qndefmessage.html#QNdefMessage-3">QNdefMessage</a></b> ( const QNdefMessage &amp; <i>message</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qndefmessage.html#QNdefMessage-4">QNdefMessage</a></b> ( const QList&lt;QNdefRecord&gt; &amp; <i>records</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qndefmessage.html#toByteArray">toByteArray</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qndefmessage.html#operator-eq-eq">operator==</a></b> ( const QNdefMessage &amp; <i>other</i> ) const</td></tr>
</table>
<ul>
<li class="fn">66 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qlist.html#public-functions">QList</a></li>
</ul>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QNdefMessage </td><td class="memItemRight bottomAlign"><b><a href="qndefmessage.html#fromByteArray">fromByteArray</a></b> ( const QByteArray &amp; <i>message</i> )</td></tr>
</table>
<ul>
<li class="fn">3 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qlist.html#static-public-members">QList</a></li>
</ul>
<a name="details"></a>
<!-- $$$QNdefMessage-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QNdefMessage class provides an NFC NDEF message.</p>
<p>A QNdefMessage is a collection of 0 or more QNdefRecords. QNdefMessage inherits from <a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a>&lt;<a href="qndefrecord.html">QNdefRecord</a>&gt; and therefore the standard <a href="http://qt.nokia.com/doc/4.7/qlist.html">QList</a> functions can be used to manipulate the NDEF records in the message.</p>
<p>NDEF messages can be parsed from a byte array conforming to the NFC Data Exchange Format technical specification by using the <a href="qndefmessage.html#fromByteArray">fromByteArray</a>() static function. Conversely QNdefMessages can be converted into a byte array with the <a href="qndefmessage.html#toByteArray">toByteArray</a>() function.</p>
</div>
<!-- @@@QNdefMessage -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QNdefMessage[overload1]$$$QNdefMessage -->
<h3 class="fn"><a name="QNdefMessage"></a>QNdefMessage::<span class="name">QNdefMessage</span> ()</h3>
<p>Constructs a new empty NDEF message.</p>
<!-- @@@QNdefMessage -->
<!-- $$$QNdefMessage$$$QNdefMessageconstQNdefRecord& -->
<h3 class="fn"><a name="QNdefMessage-2"></a>QNdefMessage::<span class="name">QNdefMessage</span> ( const <span class="type"><a href="qndefrecord.html">QNdefRecord</a></span> &amp; <i>record</i> )</h3>
<p>Constructs a new NDEF message containing a single record <i>record</i>.</p>
<!-- @@@QNdefMessage -->
<!-- $$$QNdefMessage$$$QNdefMessageconstQNdefMessage& -->
<h3 class="fn"><a name="QNdefMessage-3"></a>QNdefMessage::<span class="name">QNdefMessage</span> ( const <span class="type">QNdefMessage</span> &amp; <i>message</i> )</h3>
<p>Constructs a new NDEF message that is a copy of <i>message</i>.</p>
<!-- @@@QNdefMessage -->
<!-- $$$QNdefMessage$$$QNdefMessageconstQList<QNdefRecord>& -->
<h3 class="fn"><a name="QNdefMessage-4"></a>QNdefMessage::<span class="name">QNdefMessage</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="qndefrecord.html">QNdefRecord</a></span>&gt; &amp; <i>records</i> )</h3>
<p>Constructs a new NDEF message that contains all of the records in <i>records</i>.</p>
<!-- @@@QNdefMessage -->
<!-- $$$fromByteArray[overload1]$$$fromByteArrayconstQByteArray& -->
<h3 class="fn"><a name="fromByteArray"></a><span class="type">QNdefMessage</span> QNdefMessage::<span class="name">fromByteArray</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a></span> &amp; <i>message</i> )<tt> [static]</tt></h3>
<p>Returns an NDEF message parsed from the contents of <i>message</i>.</p>
<p>The <i>message</i> parameter is interpreted as the raw message format defined in the NFC Data Exchange Format technical specification.</p>
<p>If a parse error occurs an empty NDEF message is returned.</p>
<!-- @@@fromByteArray -->
<!-- $$$toByteArray[overload1]$$$toByteArray -->
<h3 class="fn"><a name="toByteArray"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qbytearray.html">QByteArray</a></span> QNdefMessage::<span class="name">toByteArray</span> () const</h3>
<p>Returns the NDEF message as a byte array.</p>
<p>The return value of this function conforms to the format defined in the NFC Data Exchange Format technical specification.</p>
<!-- @@@toByteArray -->
<!-- $$$operator==[overload1]$$$operator==constQNdefMessage& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QNdefMessage::<span class="name">operator==</span> ( const <span class="type">QNdefMessage</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this NDEF message is equivalent to <i>other</i>; otherwise returns false.</p>
<p>An empty message (i.e&#x2e; <a href="http://qt.nokia.com/doc/4.7/qlist.html#isEmpty">isEmpty</a>() returns true) is equivalent to a NDEF message containing a single record of type <a href="qndefrecord.html#TypeNameFormat-enum">QNdefRecord::Empty</a>.</p>
<!-- @@@operator== -->
</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>