The QNdefNfcTextRecord class provides an NFC RTD-Text More...
#include <QNdefNfcTextRecord>
Inherits: QNdefRecord.
This class was introduced in Qt Mobility 1.2.
enum | Encoding { Utf8, Utf16 } |
Encoding | encoding () const |
QString | locale () const |
void | setEncoding ( Encoding encoding ) |
void | setLocale ( const QString & locale ) |
void | setText ( const QString text ) |
QString | text () const |
The QNdefNfcTextRecord class provides an NFC RTD-Text
RTD-Text encapsulates a user displayable text record.
This enum describes the text encoding standard used.
Constant | Value | Description |
---|---|---|
QNdefNfcTextRecord::Utf8 | 0 | The text is encoded with UTF-8. |
QNdefNfcTextRecord::Utf16 | 1 | The text is encoding with UTF-16. |
Returns the encoding of the contents.
See also setEncoding().
Returns the locale of the text record.
See also setLocale().
Sets the enconding of the contents to encoding.
See also encoding().
Sets the locale of the text record to locale.
See also locale().
Sets the contents of the text record to text.
See also text().
Returns the contents of the text record as a string.
See also setText().
© 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.
All other trademarks are property of their respective owners. Privacy Policy
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.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.