13#include <QDBusConnection>
14#include <QDBusMessage>
21 RequestOriginatingType m_type;
27 void acceptRequest(
const QVariant &val);
37 return DBusConnection::orgBluez().send(msg);
38 case OrgBluezObexAgent:
39 return DBusConnection::orgBluezObex().send(msg);
46QString RequestPrivate::interfaceName()
50 return QStringLiteral(
"org.bluez.Agent1");
52 return QStringLiteral(
"org.bluez.Profile1");
53 case OrgBluezObexAgent:
54 return QStringLiteral(
"org.bluez.obex.Agent1");
60void RequestPrivate::acceptRequest(
const QVariant &val)
69 if (!sendMessage(reply)) {
70 qCWarning(BLUEZQT) <<
"Request: Failed to put reply on DBus queue";
74void RequestPrivate::rejectRequest()
77 if (!sendMessage(reply)) {
78 qCWarning(BLUEZQT) <<
"Request: Failed to put reply on DBus queue";
82void RequestPrivate::cancelRequest()
85 if (!sendMessage(reply)) {
86 qCWarning(BLUEZQT) <<
"Request: Failed to put reply on DBus queue";
93 : d(new RequestPrivate)
99 : d(new RequestPrivate)
102 d->m_message = message;
128 d->acceptRequest(returnValue);
145 : d(new RequestPrivate)
150 : d(new RequestPrivate)
153 d->m_message = message;
189template class Request<void>;
190template class Request<quint32>;
191template class Request<QString>;
192template class Request<QByteArray>;
void accept(T returnValue) const
Accepts the request.
Request & operator=(const Request &other)
Copy assignment operator.
void cancel() const
Cancels the request.
void reject() const
Rejects the request.
virtual ~Request()
Destroys a Request object.
Request()
Creates a new Request object.
QDBusMessage createErrorReply(QDBusError::ErrorType type, const QString &msg) const const
QDBusMessage createReply(const QList< QVariant > &arguments) const const
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.