Sophie

Sophie

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

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" />
<!-- qdbusserver.cpp -->
  <title>QDBusServer 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 >QDBusServer</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="#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">QDBusServer Class</h1>
<!-- $$$QDBusServer-brief -->
<p>The <a href="qdbusserver.html">QDBusServer</a> class provides peer-to-peer communication between processes on the same computer. <a href="#details">More...</a></p>
<!-- @@@QDBusServer -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QDBusServer&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"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtcore/qobject.html">QObject</a></td></tr></table></div><ul>
<li><a href="qdbusserver-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="qdbusserver.html#QDBusServer">QDBusServer</a></b>(const QString &amp;<i>address</i>, QObject *<i>parent</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#QDBusServer-1">QDBusServer</a></b>(QObject *<i>parent</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#dtor.QDBusServer">~QDBusServer</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#address">address</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#isAnonymousAuthenticationAllowed">isAnonymousAuthenticationAllowed</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#isConnected">isConnected</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusError </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#lastError">lastError</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusserver.html#setAnonymousAuthenticationAllowed">setAnonymousAuthenticationAllowed</a></b>(bool <i>value</i>)</td></tr>
</table></div>
<ul>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">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="qdbusserver.html#newConnection">newConnection</a></b>(const QDBusConnection &amp;<i>connection</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">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">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>
<!-- $$$QDBusServer-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qdbusserver.html">QDBusServer</a> class provides peer-to-peer communication between processes on the same computer.</p>
</div>
<!-- @@@QDBusServer -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QDBusServer[overload1]$$$QDBusServerconstQString&QObject* -->
<h3 class="fn" id="QDBusServer"><a name="QDBusServer"></a>QDBusServer::<span class="name">QDBusServer</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>address</i>, <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a <a href="qdbusserver.html">QDBusServer</a> with the given <i>address</i>, and the given <i>parent</i>.</p>
<!-- @@@QDBusServer -->
<!-- $$$QDBusServer$$$QDBusServerQObject* -->
<h3 class="fn" id="QDBusServer-1"><a name="QDBusServer-1"></a>QDBusServer::<span class="name">QDBusServer</span>(<span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a <a href="qdbusserver.html">QDBusServer</a> with the given <i>parent</i>. The server will listen for connections in <code>/tmp</code> (on Unix systems) or on a TCP port bound to localhost (elsewhere).</p>
<!-- @@@QDBusServer -->
<!-- $$$~QDBusServer[overload1]$$$~QDBusServer -->
<h3 class="fn" id="dtor.QDBusServer"><a name="dtor.QDBusServer"></a><code>[virtual] </code>QDBusServer::<span class="name">~QDBusServer</span>()</h3>
<p>Destructs a <a href="qdbusserver.html">QDBusServer</a></p>
<!-- @@@~QDBusServer -->
<!-- $$$address[overload1]$$$address -->
<h3 class="fn" id="address"><a name="address"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDBusServer::<span class="name">address</span>() const</h3>
<p>Returns the address this server is associated with.</p>
<!-- @@@address -->
<!-- $$$isAnonymousAuthenticationAllowed[overload1]$$$isAnonymousAuthenticationAllowed -->
<h3 class="fn" id="isAnonymousAuthenticationAllowed"><a name="isAnonymousAuthenticationAllowed"></a><span class="type">bool</span> QDBusServer::<span class="name">isAnonymousAuthenticationAllowed</span>() const</h3>
<p>Returns true if anonymous authentication is allowed.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qdbusserver.html#setAnonymousAuthenticationAllowed">setAnonymousAuthenticationAllowed</a>().</p>
<!-- @@@isAnonymousAuthenticationAllowed -->
<!-- $$$isConnected[overload1]$$$isConnected -->
<h3 class="fn" id="isConnected"><a name="isConnected"></a><span class="type">bool</span> QDBusServer::<span class="name">isConnected</span>() const</h3>
<p>Returns <code>true</code> if this <a href="qdbusserver.html">QDBusServer</a> object is connected.</p>
<p>If it isn't connected, you need to call the constructor again.</p>
<!-- @@@isConnected -->
<!-- $$$lastError[overload1]$$$lastError -->
<h3 class="fn" id="lastError"><a name="lastError"></a><span class="type"><a href="qdbuserror.html">QDBusError</a></span> QDBusServer::<span class="name">lastError</span>() const</h3>
<p>Returns the last error that happened in this server.</p>
<p>This function is provided for low-level code.</p>
<!-- @@@lastError -->
<!-- $$$newConnection[overload1]$$$newConnectionconstQDBusConnection& -->
<h3 class="fn" id="newConnection"><a name="newConnection"></a><code>[signal] </code><span class="type">void</span> QDBusServer::<span class="name">newConnection</span>(const <span class="type"><a href="qdbusconnection.html">QDBusConnection</a></span> &amp;<i>connection</i>)</h3>
<p>This signal is emitted when a new client connection <i>connection</i> is established to the server.</p>
<!-- @@@newConnection -->
<!-- $$$setAnonymousAuthenticationAllowed[overload1]$$$setAnonymousAuthenticationAllowedbool -->
<h3 class="fn" id="setAnonymousAuthenticationAllowed"><a name="setAnonymousAuthenticationAllowed"></a><span class="type">void</span> QDBusServer::<span class="name">setAnonymousAuthenticationAllowed</span>(<span class="type">bool</span> <i>value</i>)</h3>
<p>If <i>value</i> is set to true, an incoming connection can proceed even if the connecting client is not authenticated as a user.</p>
<p>By default, this value is false.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qdbusserver.html#isAnonymousAuthenticationAllowed">isAnonymousAuthenticationAllowed</a>().</p>
<!-- @@@setAnonymousAuthenticationAllowed -->
</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>