KDECore
DBusHelperProxy.cpp
Go to the documentation of this file.
48 message = QDBusMessage::createMethodCall(helperID, QLatin1String("/"), QLatin1String("org.kde.auth"), QLatin1String("stopAction"));
57 bool DBusHelperProxy::executeActions(const QList<QPair<QString, QVariantMap> > &list, const QString &helperID)
66 if (!QDBusConnection::systemBus().connect(helperID, QLatin1String("/"), QLatin1String("org.kde.auth"), QLatin1String("remoteSignal"), this, SLOT(remoteSignalReceived(int,QString,QByteArray)))) {
71 message = QDBusMessage::createMethodCall(helperID, QLatin1String("/"), QLatin1String("org.kde.auth"), QLatin1String("performActions"));
77 QDBusPendingCall reply = QDBusConnection::systemBus().asyncCall(message); // This is a NO_REPLY method
85 ActionReply DBusHelperProxy::executeAction(const QString &action, const QString &helperID, const QVariantMap &arguments)
98 if (!QDBusConnection::systemBus().connect(helperID, QLatin1String("/"), QLatin1String("org.kde.auth"), QLatin1String("remoteSignal"), this, SLOT(remoteSignalReceived(int,QString,QByteArray)))) {
106 message = QDBusMessage::createMethodCall(helperID, QLatin1String("/"), QLatin1String("org.kde.auth"), QLatin1String("performAction"));
137 errorReply.setErrorDescription(i18n("DBus Backend error: received corrupt data from helper %1 %2",
149 Action::AuthStatus DBusHelperProxy::authorizeAction(const QString& action, const QString& helperID)
158 message = QDBusMessage::createMethodCall(helperID, QLatin1String("/"), QLatin1String("org.kde.auth"), QLatin1String("authorizeAction"));
297 QByteArray DBusHelperProxy::performAction(const QString &action, const QByteArray &callerID, QByteArray arguments)
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
Display a long message of a certain type.
Definition: kmessage.cpp:92
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
QByteArray toByteArray() const
QString errorMessage() const
QDBusReply< void > startService(const QString &name)
uint toUInt(bool *ok, int base) const
QDBusConnectionInterface * interface() const
QList< QVariant > arguments() const
QString message() const
T value() const
MessageType type() const
QDBusConnection systemBus()
int size() const
QString fromLocal8Bit(const char *str, int size)
uint toUInt(bool *ok) const
QVariant property(const char *name) const
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
void setErrorDescription(const QString &error)
Sets a human-readble description of the error.
Definition: kauthactionreply.cpp:134
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
T & first()
QString right(int n) const
void stop()
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
QString & replace(int position, int n, QChar after)
static void debugMessageReceived(int t, const QString &message)
Definition: DBusHelperProxy.cpp:407
QByteArray serialized() const
Serialize the reply into a QByteArray.
Definition: kauthactionreply.cpp:139
Definition: DBusHelperProxy.h:32
QByteArray toLatin1() const
bool processEvents(QFlags< QEventLoop::ProcessEventsFlag > flags)
int length() const
char * data()
Class that encapsulates a reply coming from the helper after executing an action. ...
Definition: kauthactionreply.h:370
QDBusPendingCall asyncCall(const QDBusMessage &message, int timeout) const
void setArguments(const QList< QVariant > &arguments)
void start(int msec)
QDBusError lastError() const
void progressStep(int step)
Send a progressStep signal to the caller application.
Definition: kauthhelpersupport.cpp:122
const_iterator constBegin() const
QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.