Sophie

Sophie

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

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" />
<!-- qdbusabstractinterface.cpp -->
  <title>QDBusAbstractInterface 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 >QDBusAbstractInterface</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">QDBusAbstractInterface Class</h1>
<!-- $$$QDBusAbstractInterface-brief -->
<p>The <a href="qdbusabstractinterface.html">QDBusAbstractInterface</a> class is the base class for all D-Bus interfaces in the Qt D-Bus binding, allowing access to remote interfaces <a href="#details">More...</a></p>
<!-- @@@QDBusAbstractInterface -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QDBusAbstractInterface&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="../qtcore/qobject.html">QObject</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qdbusconnectioninterface.html">QDBusConnectionInterface</a> and <a href="qdbusinterface.html">QDBusInterface</a></p>
</td></tr></table></div><ul>
<li><a href="qdbusabstractinterface-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"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#dtor.QDBusAbstractInterface">~QDBusAbstractInterface</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusPendingCall </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#asyncCall">asyncCall</a></b>(const QString &amp;<i>method</i>, const QVariant &amp;<i>arg1</i> = QVariant(), const QVariant &amp;<i>arg2</i> = QVariant(), const QVariant &amp;<i>arg3</i> = QVariant(), const QVariant &amp;<i>arg4</i> = QVariant(), const QVariant &amp;<i>arg5</i> = QVariant(), const QVariant &amp;<i>arg6</i> = QVariant(), const QVariant &amp;<i>arg7</i> = QVariant(), const QVariant &amp;<i>arg8</i> = QVariant())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusPendingCall </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#asyncCallWithArgumentList">asyncCallWithArgumentList</a></b>(const QString &amp;<i>method</i>, const QList&lt;QVariant&gt; &amp;<i>args</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusMessage </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#call">call</a></b>(const QString &amp;<i>method</i>, const QVariant &amp;<i>arg1</i> = QVariant(), const QVariant &amp;<i>arg2</i> = QVariant(), const QVariant &amp;<i>arg3</i> = QVariant(), const QVariant &amp;<i>arg4</i> = QVariant(), const QVariant &amp;<i>arg5</i> = QVariant(), const QVariant &amp;<i>arg6</i> = QVariant(), const QVariant &amp;<i>arg7</i> = QVariant(), const QVariant &amp;<i>arg8</i> = QVariant())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusMessage </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#call-1">call</a></b>(QDBus::CallMode <i>mode</i>, const QString &amp;<i>method</i>, const QVariant &amp;<i>arg1</i> = QVariant(), const QVariant &amp;<i>arg2</i> = QVariant(), const QVariant &amp;<i>arg3</i> = QVariant(), const QVariant &amp;<i>arg4</i> = QVariant(), const QVariant &amp;<i>arg5</i> = QVariant(), const QVariant &amp;<i>arg6</i> = QVariant(), const QVariant &amp;<i>arg7</i> = QVariant(), const QVariant &amp;<i>arg8</i> = QVariant())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusMessage </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#callWithArgumentList">callWithArgumentList</a></b>(QDBus::CallMode <i>mode</i>, const QString &amp;<i>method</i>, const QList&lt;QVariant&gt; &amp;<i>args</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#callWithCallback">callWithCallback</a></b>(const QString &amp;<i>method</i>, const QList&lt;QVariant&gt; &amp;<i>args</i>, QObject *<i>receiver</i>, const char *<i>returnMethod</i>, const char *<i>errorMethod</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#callWithCallback-1">callWithCallback</a></b>(const QString &amp;<i>method</i>, const QList&lt;QVariant&gt; &amp;<i>args</i>, QObject *<i>receiver</i>, const char *<i>slot</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusConnection </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#connection">connection</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#interface">interface</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#isValid">isValid</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDBusError </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#lastError">lastError</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#path">path</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#service">service</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#setTimeout">setTimeout</a></b>(int <i>timeout</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qdbusabstractinterface.html#timeout">timeout</a></b>() const</td></tr>
</table></div>
<ul>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">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">2 signals inherited from <a href="../qtcore/qobject.html#signals">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>
<!-- $$$QDBusAbstractInterface-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qdbusabstractinterface.html">QDBusAbstractInterface</a> class is the base class for all D-Bus interfaces in the Qt D-Bus binding, allowing access to remote interfaces</p>
<p>Generated-code classes also derive from <a href="qdbusabstractinterface.html">QDBusAbstractInterface</a>, all methods described here are also valid for generated-code classes. In addition to those described here, generated-code classes provide member functions for the remote methods, which allow for compile-time checking of the correct parameters and return values, as well as property type-matching and signal parameter-matching.</p>
</div>
<p><b>See also </b><a href="qdbusxml2cpp.html">The QDBus compiler</a> and <a href="qdbusinterface.html">QDBusInterface</a>.</p>
<!-- @@@QDBusAbstractInterface -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QDBusAbstractInterface[overload1]$$$~QDBusAbstractInterface -->
<h3 class="fn" id="dtor.QDBusAbstractInterface"><a name="dtor.QDBusAbstractInterface"></a><code>[virtual] </code>QDBusAbstractInterface::<span class="name">~QDBusAbstractInterface</span>()</h3>
<p>Releases this object's resources.</p>
<!-- @@@~QDBusAbstractInterface -->
<!-- $$$asyncCall[overload1]$$$asyncCallconstQString&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant& -->
<h3 class="fn" id="asyncCall"><a name="asyncCall"></a><span class="type"><a href="qdbuspendingcall.html">QDBusPendingCall</a></span> QDBusAbstractInterface::<span class="name">asyncCall</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg1</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg2</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg3</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg4</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg5</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg6</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg7</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg8</i> = QVariant())</h3>
<p>Calls the method <i>method</i> on this interface and passes the parameters to this function to the method.</p>
<p>The parameters to <code>call</code> are passed on to the remote function via D-Bus as input arguments. The returned <a href="qdbuspendingcall.html">QDBusPendingCall</a> object can be used to find out information about the reply.</p>
<p>This function can be used with up to 8 parameters, passed in arguments <i>arg1</i>, <i>arg2</i>, <i>arg3</i>, <i>arg4</i>, <i>arg5</i>, <i>arg6</i>, <i>arg7</i> and <i>arg8</i>. If you need more than 8 parameters or if you have a variable number of parameters to be passed, use <a href="qdbusabstractinterface.html#asyncCallWithArgumentList">asyncCallWithArgumentList</a>().</p>
<p>It can be used the following way:</p>
<pre class="cpp">

  <span class="type"><a href="../qtcore/qstring.html">QString</a></span> value <span class="operator">=</span> retrieveValue();
  <span class="type"><a href="qdbuspendingcall.html">QDBusPendingCall</a></span> pcall <span class="operator">=</span> interface<span class="operator">-</span><span class="operator">&gt;</span>asyncCall(QLatin1String(<span class="string">&quot;Process&quot;</span>)<span class="operator">,</span> value);

  <span class="type"><a href="qdbuspendingcallwatcher.html">QDBusPendingCallWatcher</a></span> <span class="operator">*</span>watcher <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qdbuspendingcallwatcher.html">QDBusPendingCallWatcher</a></span>(pcall<span class="operator">,</span> <span class="keyword">this</span>);

  <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span><span class="operator">::</span>connect(watcher<span class="operator">,</span> SIGNAL(finished(<span class="type"><a href="qdbuspendingcallwatcher.html">QDBusPendingCallWatcher</a></span><span class="operator">*</span>))<span class="operator">,</span>
                   <span class="keyword">this</span><span class="operator">,</span> SLOT(callFinishedSlot(<span class="type"><a href="qdbuspendingcallwatcher.html">QDBusPendingCallWatcher</a></span><span class="operator">*</span>)));

</pre>
<p>This example illustrates function calling with 0, 1 and 2 parameters and illustrates different parameter types passed in each (the first call to <code>&quot;ProcessWorkUnicode&quot;</code> will contain one Unicode string, the second call to <code>&quot;ProcessWork&quot;</code> will contain one string and one byte array).</p>
<p>This function was introduced in  Qt 4.5.</p>
<!-- @@@asyncCall -->
<!-- $$$asyncCallWithArgumentList[overload1]$$$asyncCallWithArgumentListconstQString&constQList<QVariant>& -->
<h3 class="fn" id="asyncCallWithArgumentList"><a name="asyncCallWithArgumentList"></a><span class="type"><a href="qdbuspendingcall.html">QDBusPendingCall</a></span> QDBusAbstractInterface::<span class="name">asyncCallWithArgumentList</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span>&gt; &amp;<i>args</i>)</h3>
<p>Places a call to the remote method specified by <i>method</i> on this interface, using <i>args</i> as arguments. This function returns a <a href="qdbuspendingcall.html">QDBusPendingCall</a> object that can be used to track the status of the reply and access its contents once it has arrived.</p>
<p>Normally, you should place calls using <a href="qdbusabstractinterface.html#asyncCall">asyncCall</a>().</p>
<p><b>Note:</b> This function is thread-safe.</p>
<p>This function was introduced in  Qt 4.5.</p>
<!-- @@@asyncCallWithArgumentList -->
<!-- $$$call[overload1]$$$callconstQString&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant& -->
<h3 class="fn" id="call"><a name="call"></a><span class="type"><a href="qdbusmessage.html">QDBusMessage</a></span> QDBusAbstractInterface::<span class="name">call</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg1</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg2</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg3</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg4</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg5</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg6</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg7</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg8</i> = QVariant())</h3>
<p>Calls the method <i>method</i> on this interface and passes the parameters to this function to the method.</p>
<p>The parameters to <code>call</code> are passed on to the remote function via D-Bus as input arguments. Output arguments are returned in the <a href="qdbusmessage.html">QDBusMessage</a> reply. If the reply is an error reply, <a href="qdbusabstractinterface.html#lastError">lastError</a>() will also be set to the contents of the error message.</p>
<p>This function can be used with up to 8 parameters, passed in arguments <i>arg1</i>, <i>arg2</i>, <i>arg3</i>, <i>arg4</i>, <i>arg5</i>, <i>arg6</i>, <i>arg7</i> and <i>arg8</i>. If you need more than 8 parameters or if you have a variable number of parameters to be passed, use <a href="qdbusabstractinterface.html#callWithArgumentList">callWithArgumentList</a>().</p>
<p>It can be used the following way:</p>
<pre class="cpp">

  <span class="type"><a href="../qtcore/qstring.html">QString</a></span> value <span class="operator">=</span> retrieveValue();
  <span class="type"><a href="qdbusmessage.html">QDBusMessage</a></span> reply;

  <span class="type"><a href="qdbusreply.html">QDBusReply</a></span><span class="operator">&lt;</span><span class="type">int</span><span class="operator">&gt;</span> api <span class="operator">=</span> interface<span class="operator">-</span><span class="operator">&gt;</span>call(QLatin1String(<span class="string">&quot;GetAPIVersion&quot;</span>));
  <span class="keyword">if</span> (api <span class="operator">&gt;</span><span class="operator">=</span> <span class="number">14</span>)
    reply <span class="operator">=</span> interface<span class="operator">-</span><span class="operator">&gt;</span>call(QLatin1String(<span class="string">&quot;ProcessWorkUnicode&quot;</span>)<span class="operator">,</span> value);
  <span class="keyword">else</span>
    reply <span class="operator">=</span> interface<span class="operator">-</span><span class="operator">&gt;</span>call(QLatin1String(<span class="string">&quot;ProcessWork&quot;</span>)<span class="operator">,</span> QLatin1String(<span class="string">&quot;UTF-8&quot;</span>)<span class="operator">,</span> value<span class="operator">.</span>toUtf8());

</pre>
<p>This example illustrates function calling with 0, 1 and 2 parameters and illustrates different parameter types passed in each (the first call to <code>&quot;ProcessWorkUnicode&quot;</code> will contain one Unicode string, the second call to <code>&quot;ProcessWork&quot;</code> will contain one string and one byte array).</p>
<!-- @@@call -->
<!-- $$$call$$$callQDBus::CallModeconstQString&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant&constQVariant& -->
<h3 class="fn" id="call-1"><a name="call-1"></a><span class="type"><a href="qdbusmessage.html">QDBusMessage</a></span> QDBusAbstractInterface::<span class="name">call</span>(<span class="type"><a href="qdbus.html#CallMode-enum">QDBus::CallMode</a></span> <i>mode</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg1</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg2</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg3</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg4</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg5</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg6</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg7</i> = QVariant(), const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>arg8</i> = QVariant())</h3>
<p>This is an overloaded function.</p>
<p>Calls the method <i>method</i> on this interface and passes the parameters to this function to the method. If <i>mode</i> is <code>NoWaitForReply</code>, then this function will return immediately after placing the call, without waiting for a reply from the remote method. Otherwise, <i>mode</i> indicates whether this function should activate the Qt Event Loop while waiting for the reply to arrive.</p>
<p>This function can be used with up to 8 parameters, passed in arguments <i>arg1</i>, <i>arg2</i>, <i>arg3</i>, <i>arg4</i>, <i>arg5</i>, <i>arg6</i>, <i>arg7</i> and <i>arg8</i>. If you need more than 8 parameters or if you have a variable number of parameters to be passed, use <a href="qdbusabstractinterface.html#callWithArgumentList">callWithArgumentList</a>().</p>
<p>If this function reenters the Qt event loop in order to wait for the reply, it will exclude user input. During the wait, it may deliver signals and other method calls to your application. Therefore, it must be prepared to handle a reentrancy whenever a call is placed with <a href="qdbusabstractinterface.html#call">call</a>().</p>
<!-- @@@call -->
<!-- $$$callWithArgumentList[overload1]$$$callWithArgumentListQDBus::CallModeconstQString&constQList<QVariant>& -->
<h3 class="fn" id="callWithArgumentList"><a name="callWithArgumentList"></a><span class="type"><a href="qdbusmessage.html">QDBusMessage</a></span> QDBusAbstractInterface::<span class="name">callWithArgumentList</span>(<span class="type"><a href="qdbus.html#CallMode-enum">QDBus::CallMode</a></span> <i>mode</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span>&gt; &amp;<i>args</i>)</h3>
<p>Places a call to the remote method specified by <i>method</i> on this interface, using <i>args</i> as arguments. This function returns the message that was received as a reply, which can be a normal <a href="qdbusmessage.html#MessageType-enum">QDBusMessage::ReplyMessage</a> (indicating success) or <a href="qdbusmessage.html#MessageType-enum">QDBusMessage::ErrorMessage</a> (if the call failed). The <i>mode</i> parameter specifies how this call should be placed.</p>
<p>If the call succeeds, <a href="qdbusabstractinterface.html#lastError">lastError</a>() will be cleared; otherwise, it will contain the error this call produced.</p>
<p>Normally, you should place calls using <a href="qdbusabstractinterface.html#call">call</a>().</p>
<p><b>Warning:</b> If you use <code>UseEventLoop</code>, your code must be prepared to deal with any reentrancy: other method calls and signals may be delivered before this function returns, as well as other Qt queued signals and events.</p>
<p><b>Note:</b> This function is thread-safe.</p>
<!-- @@@callWithArgumentList -->
<!-- $$$callWithCallback[overload1]$$$callWithCallbackconstQString&constQList<QVariant>&QObject*constchar*constchar* -->
<h3 class="fn" id="callWithCallback"><a name="callWithCallback"></a><span class="type">bool</span> QDBusAbstractInterface::<span class="name">callWithCallback</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span>&gt; &amp;<i>args</i>, <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>receiver</i>, const <span class="type">char</span> *<i>returnMethod</i>, const <span class="type">char</span> *<i>errorMethod</i>)</h3>
<p>Places a call to the remote method specified by <i>method</i> on this interface, using <i>args</i> as arguments. This function returns immediately after queueing the call. The reply from the remote function is delivered to the <i>returnMethod</i> on object <i>receiver</i>. If an error occurs, the <i>errorMethod</i> on object <i>receiver</i> is called instead.</p>
<p>This function returns <code>true</code> if the queueing succeeds. It does not indicate that the executed call succeeded. If it fails, the <i>errorMethod</i> is called. If the queueing failed, this function returns <code>false</code> and no slot will be called.</p>
<p>The <i>returnMethod</i> must have as its parameters the types returned by the function call. Optionally, it may have a <a href="qdbusmessage.html">QDBusMessage</a> parameter as its last or only parameter. The <i>errorMethod</i> must have a <a href="qdbuserror.html">QDBusError</a> as its only parameter.</p>
<p>This function was introduced in  Qt 4.3.</p>
<p><b>See also </b><a href="qdbuserror.html">QDBusError</a> and <a href="qdbusmessage.html">QDBusMessage</a>.</p>
<!-- @@@callWithCallback -->
<!-- $$$callWithCallback$$$callWithCallbackconstQString&constQList<QVariant>&QObject*constchar* -->
<h3 class="fn" id="callWithCallback-1"><a name="callWithCallback-1"></a><span class="type">bool</span> QDBusAbstractInterface::<span class="name">callWithCallback</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>method</i>, const <span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span>&gt; &amp;<i>args</i>, <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>receiver</i>, const <span class="type">char</span> *<i>slot</i>)</h3>
<p>This is an overloaded function.</p>
<p>This function is deprecated. Please use the overloaded version.</p>
<p>Places a call to the remote method specified by <i>method</i> on this interface, using <i>args</i> as arguments. This function returns immediately after queueing the call. The reply from the remote function or any errors emitted by it are delivered to the <i>slot</i> slot on object <i>receiver</i>.</p>
<p>This function returns <code>true</code> if the queueing succeeded: it does not indicate that the call succeeded. If it failed, the slot will be called with an error message. <a href="qdbusabstractinterface.html#lastError">lastError</a>() will not be set under those circumstances.</p>
<p><b>See also </b><a href="qdbuserror.html">QDBusError</a> and <a href="qdbusmessage.html">QDBusMessage</a>.</p>
<!-- @@@callWithCallback -->
<!-- $$$connection[overload1]$$$connection -->
<h3 class="fn" id="connection"><a name="connection"></a><span class="type"><a href="qdbusconnection.html">QDBusConnection</a></span> QDBusAbstractInterface::<span class="name">connection</span>() const</h3>
<p>Returns the connection this interface is associated with.</p>
<!-- @@@connection -->
<!-- $$$interface[overload1]$$$interface -->
<h3 class="fn" id="interface"><a name="interface"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDBusAbstractInterface::<span class="name">interface</span>() const</h3>
<p>Returns the name of this interface.</p>
<!-- @@@interface -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn" id="isValid"><a name="isValid"></a><span class="type">bool</span> QDBusAbstractInterface::<span class="name">isValid</span>() const</h3>
<p>Returns <code>true</code> if this is a valid reference to a remote object. It returns <code>false</code> if there was an error during the creation of this interface (for instance, if the remote application does not exist).</p>
<p>Note: when dealing with remote objects, it is not always possible to determine if it exists when creating a <a href="qdbusinterface.html">QDBusInterface</a>.</p>
<!-- @@@isValid -->
<!-- $$$lastError[overload1]$$$lastError -->
<h3 class="fn" id="lastError"><a name="lastError"></a><span class="type"><a href="qdbuserror.html">QDBusError</a></span> QDBusAbstractInterface::<span class="name">lastError</span>() const</h3>
<p>Returns the error the last operation produced, or an invalid error if the last operation did not produce an error.</p>
<!-- @@@lastError -->
<!-- $$$path[overload1]$$$path -->
<h3 class="fn" id="path"><a name="path"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDBusAbstractInterface::<span class="name">path</span>() const</h3>
<p>Returns the object path that this interface is associated with.</p>
<!-- @@@path -->
<!-- $$$service[overload1]$$$service -->
<h3 class="fn" id="service"><a name="service"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QDBusAbstractInterface::<span class="name">service</span>() const</h3>
<p>Returns the name of the service this interface is associated with.</p>
<!-- @@@service -->
<!-- $$$setTimeout[overload1]$$$setTimeoutint -->
<h3 class="fn" id="setTimeout"><a name="setTimeout"></a><span class="type">void</span> QDBusAbstractInterface::<span class="name">setTimeout</span>(<span class="type">int</span> <i>timeout</i>)</h3>
<p>Sets the timeout in milliseconds for all future DBus calls to <i>timeout</i>. -1 means the default DBus timeout (usually 25 seconds).</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qdbusabstractinterface.html#timeout">timeout</a>().</p>
<!-- @@@setTimeout -->
<!-- $$$timeout[overload1]$$$timeout -->
<h3 class="fn" id="timeout"><a name="timeout"></a><span class="type">int</span> QDBusAbstractInterface::<span class="name">timeout</span>() const</h3>
<p>Returns the current value of the timeout in milliseconds. -1 means the default DBus timeout (usually 25 seconds).</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qdbusabstractinterface.html#setTimeout">setTimeout</a>().</p>
<!-- @@@timeout -->
</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>