<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qxmlstream.cpp --> <head> <title>Qt 4.6: QXmlStreamNamespaceDeclaration Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QXmlStreamNamespaceDeclaration"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QXmlStreamNamespaceDeclaration Class Reference<br /><span class="small-subtitle">[<a href="qtcore.html">QtCore</a> module]</span> </h1> <p>The QXmlStreamNamespaceDeclaration class represents a namespace declaration. <a href="#details">More...</a></p> <pre> #include <QXmlStreamNamespaceDeclaration></pre><p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <p>This class was introduced in Qt 4.3.</p> <ul> <li><a href="qxmlstreamnamespacedeclaration-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration">QXmlStreamNamespaceDeclaration</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration-2">QXmlStreamNamespaceDeclaration</a></b> ( const QXmlStreamNamespaceDeclaration & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclaration-3">QXmlStreamNamespaceDeclaration</a></b> ( const QString & <i>prefix</i>, const QString & <i>namespaceUri</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#dtor.QXmlStreamNamespaceDeclaration">~QXmlStreamNamespaceDeclaration</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QStringRef </td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#namespaceUri">namespaceUri</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QStringRef </td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#prefix">prefix</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#operator-not-eq">operator!=</a></b> ( const QXmlStreamNamespaceDeclaration & <i>other</i> ) const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QXmlStreamNamespaceDeclaration & </td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#operator-eq">operator=</a></b> ( const QXmlStreamNamespaceDeclaration & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#operator-eq-eq">operator==</a></b> ( const QXmlStreamNamespaceDeclaration & <i>other</i> ) const</td></tr> </table> <hr /> <a name="related-non-members"></a> <h2>Related Non-Members</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top">typedef </td><td class="memItemRight" valign="bottom"><b><a href="qxmlstreamnamespacedeclaration.html#QXmlStreamNamespaceDeclarations-typedef">QXmlStreamNamespaceDeclarations</a></b></td></tr> </table> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QXmlStreamNamespaceDeclaration class represents a namespace declaration.</p> <p>An namespace declaration consists of a <a href="qxmlstreamnamespacedeclaration.html#prefix">prefix</a>() and a <a href="qxmlstreamnamespacedeclaration.html#namespaceUri">namespaceUri</a>().</p> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/QXmlStreamNamespaceDeclaration"></a> <h3 class="fn"><a name="QXmlStreamNamespaceDeclaration"></a>QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ()</h3> <p>Creates an empty namespace declaration.</p> <h3 class="fn"><a name="QXmlStreamNamespaceDeclaration-2"></a>QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ( const QXmlStreamNamespaceDeclaration & <i>other</i> )</h3> <p>Creates a copy of <i>other</i>.</p> <h3 class="fn"><a name="QXmlStreamNamespaceDeclaration-3"></a>QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ( const <a href="qstring.html">QString</a> & <i>prefix</i>, const <a href="qstring.html">QString</a> & <i>namespaceUri</i> )</h3> <p>Creates a namespace declaration with <i>prefix</i> and <i>namespaceUri</i>.</p> <p>This function was introduced in Qt 4.4.</p> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/~QXmlStreamNamespaceDeclaration"></a> <h3 class="fn"><a name="dtor.QXmlStreamNamespaceDeclaration"></a>QXmlStreamNamespaceDeclaration::~QXmlStreamNamespaceDeclaration ()</h3> <p>Destructs this namespace declaration.</p> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/namespaceUri"></a> <h3 class="fn"><a name="namespaceUri"></a><a href="qstringref.html">QStringRef</a> QXmlStreamNamespaceDeclaration::namespaceUri () const</h3> <p>Returns the namespaceUri.</p> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/prefix"></a> <h3 class="fn"><a name="prefix"></a><a href="qstringref.html">QStringRef</a> QXmlStreamNamespaceDeclaration::prefix () const</h3> <p>Returns the prefix.</p> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/operator!="></a> <h3 class="fn"><a name="operator-not-eq"></a>bool QXmlStreamNamespaceDeclaration::operator!= ( const QXmlStreamNamespaceDeclaration & <i>other</i> ) const</h3> <p>Compares this namespace declaration with <i>other</i> and returns true if they are not equal; otherwise returns false.</p> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/operator="></a> <h3 class="fn"><a name="operator-eq"></a>QXmlStreamNamespaceDeclaration & QXmlStreamNamespaceDeclaration::operator= ( const QXmlStreamNamespaceDeclaration & <i>other</i> )</h3> <p>Assigns <i>other</i> to this namespace declaration.</p> <a name="//apple_ref/cpp/instm/QXmlStreamNamespaceDeclaration/operator=="></a> <h3 class="fn"><a name="operator-eq-eq"></a>bool QXmlStreamNamespaceDeclaration::operator== ( const QXmlStreamNamespaceDeclaration & <i>other</i> ) const</h3> <p>Compares this namespace declaration with <i>other</i> and returns true if they are equal; otherwise returns false.</p> <hr /> <h2>Related Non-Members</h2> <a name="//apple_ref/cpp/tdef//QXmlStreamNamespaceDeclarations"></a> <h3 class="fn"><a name="QXmlStreamNamespaceDeclarations-typedef"></a>typedef QXmlStreamNamespaceDeclarations</h3> <p>Synonym for <a href="qvector.html">QVector</a><<a href="qxmlstreamnamespacedeclaration.html">QXmlStreamNamespaceDeclaration</a>>.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>