<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qdbusextratypes.cpp --> <title>QDBusObjectPath Class | Qt D-Bus</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.9</td><td ><a href="qtdbus-index.html">Qt D-Bus</a></td><td ><a href="qtdbus-module.html">C++ Classes</a></td><td >QDBusObjectPath</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <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="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QDBusObjectPath Class</h1> <!-- $$$QDBusObjectPath-brief --> <p>The <a href="qdbusobjectpath.html">QDBusObjectPath</a> class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem. <a href="#details">More...</a></p> <!-- @@@QDBusObjectPath --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QDBusObjectPath></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += dbus</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.2</td></tr></table></div><ul> <li><a href="qdbusobjectpath-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#QDBusObjectPath">QDBusObjectPath</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#QDBusObjectPath-1">QDBusObjectPath</a></b>(const char *<i>path</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#QDBusObjectPath-2">QDBusObjectPath</a></b>(QLatin1String <i>path</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#QDBusObjectPath-3">QDBusObjectPath</a></b>(const QString &<i>path</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#QDBusObjectPath-4">QDBusObjectPath</a></b>(QString &&<i>p</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#path">path</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#setPath">setPath</a></b>(const QString &<i>path</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusobjectpath.html#swap">swap</a></b>(QDBusObjectPath &<i>other</i>)</td></tr> </table></div> <a name="details"></a> <!-- $$$QDBusObjectPath-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qdbusobjectpath.html">QDBusObjectPath</a> class enables the programmer to identify the OBJECT_PATH type provided by the D-Bus typesystem.</p> </div> <p><b>See also </b><a href="qdbustypesystem.html">The Qt D-Bus Type System</a>.</p> <!-- @@@QDBusObjectPath --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QDBusObjectPath[overload1]$$$QDBusObjectPath --> <h3 class="fn" id="QDBusObjectPath"><a name="QDBusObjectPath"></a>QDBusObjectPath::<span class="name">QDBusObjectPath</span>()</h3> <p>Constructs a new object path.</p> <!-- @@@QDBusObjectPath --> <!-- $$$QDBusObjectPath$$$QDBusObjectPathconstchar* --> <h3 class="fn" id="QDBusObjectPath-1"><a name="QDBusObjectPath-1"></a>QDBusObjectPath::<span class="name">QDBusObjectPath</span>(const <span class="type">char</span> *<i>path</i>)</h3> <p>Constructs a new object path from the given <i>path</i>.</p> <p><b>See also </b><a href="qdbusobjectpath.html#setPath">setPath</a>().</p> <!-- @@@QDBusObjectPath --> <!-- $$$QDBusObjectPath$$$QDBusObjectPathQLatin1String --> <h3 class="fn" id="QDBusObjectPath-2"><a name="QDBusObjectPath-2"></a>QDBusObjectPath::<span class="name">QDBusObjectPath</span>(<span class="type"><a href="../qtcore/qlatin1string.html">QLatin1String</a></span> <i>path</i>)</h3> <p>Constructs a new object path from the given <i>path</i>.</p> <!-- @@@QDBusObjectPath --> <!-- $$$QDBusObjectPath$$$QDBusObjectPathconstQString& --> <h3 class="fn" id="QDBusObjectPath-3"><a name="QDBusObjectPath-3"></a>QDBusObjectPath::<span class="name">QDBusObjectPath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>path</i>)</h3> <p>Constructs a new object path from the given <i>path</i>.</p> <!-- @@@QDBusObjectPath --> <!-- $$$QDBusObjectPath$$$QDBusObjectPathQString&& --> <h3 class="fn" id="QDBusObjectPath-4"><a name="QDBusObjectPath-4"></a>QDBusObjectPath::<span class="name">QDBusObjectPath</span>(<span class="type"><a href="../qtcore/qstring.html">QString</a></span> &&<i>p</i>)</h3> <p>Default constructs an instance of QDBusObjectPath.</p><!-- @@@QDBusObjectPath --> <!-- $$$path[overload1]$$$path --> <h3 class="fn" id="path"><a name="path"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDBusObjectPath::<span class="name">path</span>() const</h3> <p>Returns this object path.</p> <p><b>See also </b><a href="qdbusobjectpath.html#setPath">setPath</a>().</p> <!-- @@@path --> <!-- $$$setPath[overload1]$$$setPathconstQString& --> <h3 class="fn" id="setPath"><a name="setPath"></a><span class="type">void</span> QDBusObjectPath::<span class="name">setPath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>path</i>)</h3> <p>Assigns the value of the given <i>path</i> to this object path.</p> <p><b>See also </b><a href="qdbusobjectpath.html#path">path</a>().</p> <!-- @@@setPath --> <!-- $$$swap[overload1]$$$swapQDBusObjectPath& --> <h3 class="fn" id="swap"><a name="swap"></a><span class="type">void</span> QDBusObjectPath::<span class="name">swap</span>(<span class="type"><a href="qdbusobjectpath.html#QDBusObjectPath">QDBusObjectPath</a></span> &<i>other</i>)</h3> <!-- @@@swap --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br> The documentation provided herein is licensed 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.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>