Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qdbuspendingreply.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Intel Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#include "qdbuspendingreply.h"
7#include "qdbusmetatype.h"
8
9#include <QtCore/private/qlocking_p.h>
10
11#ifndef QT_NO_DBUS
12
212 : QDBusPendingCall(nullptr) // initialize base class empty
213{
214}
215
219
224
226{
227 d = new QDBusPendingCallPrivate(QDBusMessage(), nullptr); // drops the reference to the old one
229}
230
232{
233 if (!d)
234 return QVariant();
235
236 d->waitForFinished(); // bypasses "const"
237
239}
240
242{
243 Q_ASSERT(d);
244 const auto locker = qt_scoped_lock(d->mutex);
247}
248
249#endif // QT_NO_DBUS
\inmodule QtDBus
QList< QVariant > arguments() const
Returns the list of arguments that are going to be sent or were received from D-Bus.
void setMetaTypes(int count, const QMetaType *types)
\inmodule QtDBus
QExplicitlySharedDataPointer< QDBusPendingCallPrivate > d
QDBusPendingCall & operator=(QDBusPendingCall &&other) noexcept
friend class QDBusPendingCallPrivate
void setMetaTypes(int count, const QMetaType *metaTypes)
void assign(const QDBusPendingCall &call)
QVariant argumentAt(int index) const
T value(qsizetype i) const
Definition qlist.h:664
\inmodule QtCore
Definition qmetatype.h:341
\inmodule QtCore
Definition qvariant.h:65
GLuint index
[2]
GLsizei GLenum GLenum * types
GLenum GLenum GLsizei count
GLuint GLsizei const GLchar * message
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
QObject::connect nullptr
QSharedPointer< T > other(t)
[5]