13#include <private/qobject_p.h>
14#include <private/qlocking_p.h>
103 q_dbus_pending_call_cancel(
pending);
104 q_dbus_pending_call_unref(
pending);
117 if (!member || !*member) {
119 qWarning(
"QDBusPendingCall::setReplyCallback: error: cannot deliver a reply to %s::%s (%s)",
121 member ? member + 1 :
"(null)",
134 qWarning(
"QDBusPendingCall::setReplyCallback: error: cannot deliver a reply to %s::%s (%s) "
168 qFatal(
"QDBusPendingReply: type %s is not registered with QtDBus",
types[
i].
name());
190 const auto errorMsg =
"Unexpected reply signature: got \"%1\", expected \"%2\""_L1;
200 const auto locker = qt_scoped_lock(
mutex);
299 const auto locker = qt_scoped_lock(
d->
mutex);
321 const auto locker = qt_scoped_lock(
d->
mutex);
338 const auto locker = qt_scoped_lock(
d->
mutex);
353 const auto locker = qt_scoped_lock(
d->
mutex);
378 const auto locker = qt_scoped_lock(
d->
mutex);
401bool QDBusPendingCall::setReplyCallback(
QObject *
target,
const char *member)
472 const auto locker = qt_scoped_lock(
d->
mutex);
517#include "moc_qdbuspendingcall_p.cpp"
521#include "moc_qdbuspendingcall.cpp"
void storeRelaxed(T newValue) noexcept
void reserve(qsizetype size)
Attempts to allocate memory for at least size bytes.
static void sendPostedEvents(QObject *receiver=nullptr, int event_type=0)
Immediately dispatches all events which have been previously queued with QCoreApplication::postEvent(...
static int findSlot(QObject *obj, const QByteArray &normalizedName, QList< QMetaType > ¶ms, QString &errorMsg)
static QDBusMessage createError(const QString &name, const QString &msg)
Constructs a new DBus message representing an error, with the given name and msg.
MessageType type() const
Returns the message type.
QString signature() const
Returns the signature of the signal that was received or for the output arguments of a method call.
QPointer< QObject > receiver
QDBusPendingCallWatcherHelper * watcherHelper
QWaitCondition waitForFinishedCondition
QString expectedReplySignature
bool setReplyCallback(QObject *target, const char *member)
QList< QMetaType > metaTypes
void setMetaTypes(int count, const QMetaType *types)
QDBusMessage replyMessage
~QDBusPendingCallPrivate()
void checkReceivedSignature()
DBusPendingCall * pending
void add(QDBusPendingCallWatcher *watcher)
void waitForFinished()
Suspends the execution of the calling thread until the reply is received and processed.
~QDBusPendingCallWatcher()
Destroys this object.
static QDBusPendingCall fromError(const QDBusError &error)
QExplicitlySharedDataPointer< QDBusPendingCallPrivate > d
QDBusPendingCall & operator=(QDBusPendingCall &&other) noexcept
QDBusPendingCall(const QDBusPendingCall &other)
Creates a copy of the other pending asynchronous call.
QDBusMessage reply() const
~QDBusPendingCall()
Destroys this copy of the QDBusPendingCall object.
static QDBusPendingCall fromCompletedCall(const QDBusMessage &message)
friend class QDBusPendingCallWatcher
friend class QDBusPendingCallPrivate
qsizetype size() const noexcept
const_pointer constData() const noexcept
const_reference at(qsizetype i) const noexcept
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isNull() const
Returns true if this string is null; otherwise returns false.
static QString static QString qsizetype indexOf(QChar c, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool wait(QMutex *, QDeadlineTimer=QDeadlineTimer(QDeadlineTimer::Forever))
QString disconnectedErrorMessage()
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLsizei GLenum GLenum * types
GLenum GLenum GLsizei count
GLdouble GLdouble GLdouble GLdouble q
#define qPrintable(string)
QFutureWatcher< int > watcher
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent