Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 926

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdbusconnectioninterface.cpp -->
  <title>QDBusConnectionInterface 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 >QDBusConnectionInterface</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-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</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">QDBusConnectionInterface Class</h1>
<!-- $$$QDBusConnectionInterface-brief -->
<p>The <a href="qdbusconnectioninterface.html">QDBusConnectionInterface</a> class provides access to the D-Bus bus daemon service. <a href="#details">More...</a></p>
<!-- @@@QDBusConnectionInterface -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QDBusConnectionInterface&gt;</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><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qdbusabstractinterface.html">QDBusAbstractInterface</a></td></tr></table></div><ul>
<li><a href="qdbusconnectioninterface-members.html">List of all members, including inherited members</a></li>
<li><a href="qdbusconnectioninterface-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#RegisterServiceReply-enum">RegisterServiceReply</a></b> { ServiceNotRegistered, ServiceRegistered, ServiceQueued }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#ServiceQueueOptions-enum">ServiceQueueOptions</a></b> { DontQueueService, QueueService, ReplaceExistingService }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#ServiceReplacementOptions-enum">ServiceReplacementOptions</a></b> { DontAllowReplacement, AllowReplacement }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qdbusconnectioninterface.html#registeredServiceNames-prop">registeredServiceNames</a></b> : const QDBusReply&lt;QStringList&gt;</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;bool&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#isServiceRegistered">isServiceRegistered</a></b>(const QString &amp;<i>serviceName</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;QDBusConnectionInterface::RegisterServiceReply&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#registerService">registerService</a></b>(const QString &amp;<i>serviceName</i>, ServiceQueueOptions <i>qoption</i> = DontQueueService, ServiceReplacementOptions <i>roption</i> = DontAllowReplacement)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;QStringList&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#registeredServiceNames-prop">registeredServiceNames</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;QString&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#serviceOwner">serviceOwner</a></b>(const QString &amp;<i>name</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;uint&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#servicePid">servicePid</a></b>(const QString &amp;<i>serviceName</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;uint&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#serviceUid">serviceUid</a></b>(const QString &amp;<i>serviceName</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;void&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#startService">startService</a></b>(const QString &amp;<i>name</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusReply&lt;bool&gt; </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#unregisterService">unregisterService</a></b>(const QString &amp;<i>serviceName</i>)</td></tr>
</table></div>
<ul>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#callWithCallbackFailed">callWithCallbackFailed</a></b>(const QDBusError &amp;<i>error</i>, const QDBusMessage &amp;<i>call</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#serviceRegistered">serviceRegistered</a></b>(const QString &amp;<i>serviceName</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusconnectioninterface.html#serviceUnregistered">serviceUnregistered</a></b>(const QString &amp;<i>serviceName</i>)</td></tr>
</table></div>
<ul>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">15 public functions inherited from <a href="qdbusabstractinterface.html#public-functions">QDBusAbstractInterface</a></li>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QDBusConnectionInterface-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qdbusconnectioninterface.html">QDBusConnectionInterface</a> class provides access to the D-Bus bus daemon service.</p>
<p>The D-Bus bus server daemon provides one special interface <code>org.freedesktop.DBus</code> that allows clients to access certain properties of the bus, such as the current list of clients connected. The <a href="qdbusconnectioninterface.html">QDBusConnectionInterface</a> class provides access to that interface.</p>
<p>The most common uses of this class are to register and unregister service names on the bus using the <a href="qdbusconnectioninterface.html#registerService">registerService</a>() and <a href="qdbusconnectioninterface.html#unregisterService">unregisterService</a>() functions, query about existing names using the <a href="qdbusconnectioninterface.html#isServiceRegistered">isServiceRegistered</a>(), <a href="qdbusconnectioninterface.html#registeredServiceNames-prop">registeredServiceNames</a>() and <a href="qdbusconnectioninterface.html#serviceOwner">serviceOwner</a>() functions, and to receive notification that a client has registered or de-registered through the <a href="qdbusconnectioninterface.html#serviceRegistered">serviceRegistered</a>(), <a href="qdbusconnectioninterface.html#serviceUnregistered">serviceUnregistered</a>() and serviceOwnerChanged() signals.</p>
</div>
<!-- @@@QDBusConnectionInterface -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$RegisterServiceReply$$$ServiceNotRegistered$$$ServiceRegistered$$$ServiceQueued -->
<h3 class="fn" id="RegisterServiceReply-enum"><a name="RegisterServiceReply-enum"></a>enum QDBusConnectionInterface::<span class="name">RegisterServiceReply</span></h3>
<p>The possible return values from <a href="qdbusconnectioninterface.html#registerService">registerService</a>():</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::ServiceNotRegistered</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The call failed and the service name was not registered.</td></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::ServiceRegistered</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">The caller is now the owner of the service name.</td></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::ServiceQueued</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The caller specified the <a href="qdbusconnectioninterface.html#ServiceQueueOptions-enum">QueueService</a> flag and the service was already registered, so we are in queue.</td></tr>
</table></div>
<p>The <a href="qdbusconnectioninterface.html#serviceRegistered">serviceRegistered</a>() signal will be emitted when the service is acquired by this application.</p>
<!-- @@@RegisterServiceReply -->
<!-- $$$ServiceQueueOptions$$$DontQueueService$$$QueueService$$$ReplaceExistingService -->
<h3 class="fn" id="ServiceQueueOptions-enum"><a name="ServiceQueueOptions-enum"></a>enum QDBusConnectionInterface::<span class="name">ServiceQueueOptions</span></h3>
<p>Flags for determining how a service registration should behave, in case the service name is already registered.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::DontQueueService</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">If an application requests a name that is already owned, no queueing will be performed. The registeredService() call will simply fail. This is the default.</td></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::QueueService</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Attempts to register the requested service, but do not try to replace it if another application already has it registered. Instead, simply put this application in queue, until it is given up. The <a href="qdbusconnectioninterface.html#serviceRegistered">serviceRegistered</a>() signal will be emitted when that happens.</td></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::ReplaceExistingService</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">If another application already has the service name registered, attempt to replace it.</td></tr>
</table></div>
<p><b>See also </b><a href="qdbusconnectioninterface.html#ServiceReplacementOptions-enum">ServiceReplacementOptions</a>.</p>
<!-- @@@ServiceQueueOptions -->
<!-- $$$ServiceReplacementOptions$$$DontAllowReplacement$$$AllowReplacement -->
<h3 class="fn" id="ServiceReplacementOptions-enum"><a name="ServiceReplacementOptions-enum"></a>enum QDBusConnectionInterface::<span class="name">ServiceReplacementOptions</span></h3>
<p>Flags for determining if the D-Bus server should allow another application to replace a name that this application has registered with the <a href="qdbusconnectioninterface.html#ServiceQueueOptions-enum">ReplaceExistingService</a> option.</p>
<p>The possible values are:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::DontAllowReplacement</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Do not allow another application to replace us. The service must be explicitly unregistered with <a href="qdbusconnectioninterface.html#unregisterService">unregisterService</a>() for another application to acquire it. This is the default.</td></tr>
<tr><td class="topAlign"><code>QDBusConnectionInterface::AllowReplacement</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Allow other applications to replace us with the <a href="qdbusconnectioninterface.html#ServiceQueueOptions-enum">ReplaceExistingService</a> option to <a href="qdbusconnectioninterface.html#registerService">registerService</a>() without intervention. If that happens, the <a href="qdbusconnectioninterface.html#serviceUnregistered">serviceUnregistered</a>() signal will be emitted.</td></tr>
</table></div>
<p><b>See also </b><a href="qdbusconnectioninterface.html#ServiceQueueOptions-enum">ServiceQueueOptions</a>.</p>
<!-- @@@ServiceReplacementOptions -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$registeredServiceNames-prop$$$registeredServiceNames -->
<h3 class="fn" id="registeredServiceNames-prop"><a name="registeredServiceNames-prop"></a><span class="name">registeredServiceNames</span> : const <span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span>&gt;</h3>
<p>holds the registered service names</p>
<p>Lists all names currently registered on the bus.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDBusReply&lt;QStringList&gt; </td><td class="memItemRight bottomAlign"><span class="name"><b>registeredServiceNames</b></span>() const</td></tr>
</table></div>
<!-- @@@registeredServiceNames -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$callWithCallbackFailed[overload1]$$$callWithCallbackFailedconstQDBusError&constQDBusMessage& -->
<h3 class="fn" id="callWithCallbackFailed"><a name="callWithCallbackFailed"></a><code>[signal] </code><span class="type">void</span> QDBusConnectionInterface::<span class="name">callWithCallbackFailed</span>(const <span class="type"><a href="qdbuserror.html">QDBusError</a></span> &amp;<i>error</i>, const <span class="type"><a href="qdbusmessage.html">QDBusMessage</a></span> &amp;<i>call</i>)</h3>
<p>This signal is emitted when there is an error during a <a href="qdbusconnection.html#callWithCallback">QDBusConnection::callWithCallback</a>(). <i>error</i> specifies the error. <i>call</i> is the message that couldn't be delivered.</p>
<p><b>See also </b><a href="qdbusconnection.html#callWithCallback">QDBusConnection::callWithCallback</a>().</p>
<!-- @@@callWithCallbackFailed -->
<!-- $$$isServiceRegistered[overload1]$$$isServiceRegisteredconstQString& -->
<h3 class="fn" id="isServiceRegistered"><a name="isServiceRegistered"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type">bool</span>&gt; QDBusConnectionInterface::<span class="name">isServiceRegistered</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>) const</h3>
<p>Returns <code>true</code> if the service name <i>serviceName</i> has is currently registered.</p>
<!-- @@@isServiceRegistered -->
<!-- $$$registerService[overload1]$$$registerServiceconstQString&ServiceQueueOptionsServiceReplacementOptions -->
<h3 class="fn" id="registerService"><a name="registerService"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type"><a href="qdbusconnectioninterface.html#RegisterServiceReply-enum">QDBusConnectionInterface::RegisterServiceReply</a></span>&gt; QDBusConnectionInterface::<span class="name">registerService</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>, <span class="type"><a href="qdbusconnectioninterface.html#ServiceQueueOptions-enum">ServiceQueueOptions</a></span> <i>qoption</i> = DontQueueService, <span class="type"><a href="qdbusconnectioninterface.html#ServiceReplacementOptions-enum">ServiceReplacementOptions</a></span> <i>roption</i> = DontAllowReplacement)</h3>
<p>Requests to register the service name <i>serviceName</i> on the bus. The <i>qoption</i> flag specifies how the D-Bus server should behave if <i>serviceName</i> is already registered. The <i>roption</i> flag specifies if the server should allow another application to replace our registered name.</p>
<p>If the service registration succeeds, the <a href="qdbusconnectioninterface.html#serviceRegistered">serviceRegistered</a>() signal will be emitted. If we are placed in queue, the signal will be emitted when we obtain the name. If <i>roption</i> is <a href="qdbusconnectioninterface.html#ServiceReplacementOptions-enum">AllowReplacement</a>, the <a href="qdbusconnectioninterface.html#serviceUnregistered">serviceUnregistered</a>() signal will be emitted if another application replaces this one.</p>
<p><b>See also </b><a href="qdbusconnectioninterface.html#unregisterService">unregisterService</a>().</p>
<!-- @@@registerService -->
<!-- $$$serviceOwner[overload1]$$$serviceOwnerconstQString& -->
<h3 class="fn" id="serviceOwner"><a name="serviceOwner"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type"><a href="../qtcore/qstring.html">QString</a></span>&gt; QDBusConnectionInterface::<span class="name">serviceOwner</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>name</i>) const</h3>
<p>Returns the unique connection name of the primary owner of the name <i>name</i>. If the requested name doesn't have an owner, returns a <code>org.freedesktop.DBus.Error.NameHasNoOwner</code> error.</p>
<!-- @@@serviceOwner -->
<!-- $$$servicePid[overload1]$$$servicePidconstQString& -->
<h3 class="fn" id="servicePid"><a name="servicePid"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span>&gt; QDBusConnectionInterface::<span class="name">servicePid</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>) const</h3>
<p>Returns the Unix Process ID (PID) for the process currently holding the bus service <i>serviceName</i>.</p>
<!-- @@@servicePid -->
<!-- $$$serviceRegistered[overload1]$$$serviceRegisteredconstQString& -->
<h3 class="fn" id="serviceRegistered"><a name="serviceRegistered"></a><code>[signal] </code><span class="type">void</span> QDBusConnectionInterface::<span class="name">serviceRegistered</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>)</h3>
<p>This signal is emitted by the D-Bus server when the bus service name (unique connection name or well-known service name) given by <i>serviceName</i> is acquired by this application.</p>
<p>Acquisition happens after this application has requested a name using <a href="qdbusconnectioninterface.html#registerService">registerService</a>().</p>
<!-- @@@serviceRegistered -->
<!-- $$$serviceUid[overload1]$$$serviceUidconstQString& -->
<h3 class="fn" id="serviceUid"><a name="serviceUid"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type"><a href="../qtcore/qtglobal.html#uint-typedef">uint</a></span>&gt; QDBusConnectionInterface::<span class="name">serviceUid</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>) const</h3>
<p>Returns the Unix User ID (UID) for the process currently holding the bus service <i>serviceName</i>.</p>
<!-- @@@serviceUid -->
<!-- $$$serviceUnregistered[overload1]$$$serviceUnregisteredconstQString& -->
<h3 class="fn" id="serviceUnregistered"><a name="serviceUnregistered"></a><code>[signal] </code><span class="type">void</span> QDBusConnectionInterface::<span class="name">serviceUnregistered</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>)</h3>
<p>This signal is emitted by the D-Bus server when this application loses ownership of the bus service name given by <i>serviceName</i>.</p>
<!-- @@@serviceUnregistered -->
<!-- $$$startService[overload1]$$$startServiceconstQString& -->
<h3 class="fn" id="startService"><a name="startService"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type">void</span>&gt; QDBusConnectionInterface::<span class="name">startService</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>name</i>)</h3>
<p>Requests that the bus start the service given by the name <i>name</i>.</p>
<!-- @@@startService -->
<!-- $$$unregisterService[overload1]$$$unregisterServiceconstQString& -->
<h3 class="fn" id="unregisterService"><a name="unregisterService"></a><code>[slot] </code><span class="type"><a href="qdbusreply.html">QDBusReply</a></span>&lt;<span class="type">bool</span>&gt; QDBusConnectionInterface::<span class="name">unregisterService</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>serviceName</i>)</h3>
<p>Releases the claim on the bus service name <i>serviceName</i>, that had been previously registered with <a href="qdbusconnectioninterface.html#registerService">registerService</a>(). If this application had ownership of the name, it will be released for other applications to claim. If it only had the name queued, it gives up its position in the queue.</p>
<!-- @@@unregisterService -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>