13#include <private/qobject_p.h>
14#include <private/qlocking_p.h>
104 q_dbus_pending_call_cancel(
pending);
105 q_dbus_pending_call_unref(
pending);
118 if (!member || !*member) {
120 qWarning(
"QDBusPendingCall::setReplyCallback: error: cannot deliver a reply to %s::%s (%s)",
122 member ? member + 1 :
"(null)",
135 qWarning(
"QDBusPendingCall::setReplyCallback: error: cannot deliver a reply to %s::%s (%s) "
169 qFatal(
"QDBusPendingReply: type %s is not registered with QtDBus",
types[
i].
name());
191 const auto errorMsg =
"Unexpected reply signature: got \"%1\", expected \"%2\""_L1;
201 const auto locker = qt_scoped_lock(
mutex);
214 const auto locker = qt_scoped_lock(
mutex);
319 const auto locker = qt_scoped_lock(
d->
mutex);
341 const auto locker = qt_scoped_lock(
d->
mutex);
358 const auto locker = qt_scoped_lock(
d->
mutex);
373 const auto locker = qt_scoped_lock(
d->
mutex);
398 const auto locker = qt_scoped_lock(
d->
mutex);
421bool QDBusPendingCall::setReplyCallback(
QObject *
target,
const char *member)
477 const auto locker = qt_scoped_lock(
d->
mutex);
522#include "moc_qdbuspendingcall_p.cpp"
526#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 waitForFinishedWithGui()
void checkReceivedSignature()
DBusPendingCall * pending
void error(const QDBusError &error, const QDBusMessage &msg)
void reply(const QDBusMessage &msg)
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
int exec(ProcessEventsFlags flags=AllEvents)
Enters the main event loop and waits until exit() is called.
void quit()
Tells the event loop to exit normally.
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
qsizetype indexOf(QLatin1StringView s, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
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.
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
#define qPrintable(string)
QFutureWatcher< int > watcher