KDECore
kauthactionreply.cpp
Go to the documentation of this file.
31 QVariantMap data; // User-defined data for success and helper error replies, empty for kauth errors
43 const ActionReply ActionReply::AuthorizationDeniedReply = ActionReply(ActionReply::AuthorizationDenied);
183 return d << reply.d->data << reply.d->errorCode << (quint32)reply.d->type << reply.d->errorDescription;
static const ActionReply InvalidActionReply
errorCode() == InvalidAction
Definition: kauthactionreply.h:390
int errorCode() const
Returns the error code of an error reply.
Definition: kauthactionreply.cpp:116
You tried to execute an invalid action object.
Definition: kauthactionreply.h:403
An error reply generated by the library itself.
Definition: kauthactionreply.h:380
static const ActionReply HelperBusyReply
errorCode() == HelperBusy
Definition: kauthactionreply.h:393
static const ActionReply SuccessReply
An empty successful reply. Same as using the default constructor.
Definition: kauthactionreply.h:385
bool operator==(const ActionReply &reply) const
Comparison operator.
Definition: kauthactionreply.cpp:171
void addData(const QString &key, const QVariant &value)
Convenience method to add some data to the reply.
Definition: kauthactionreply.cpp:86
static const ActionReply HelperErrorReply
An empty reply with type() == HelperError.
Definition: kauthactionreply.h:386
static const ActionReply NoResponderReply
errorCode() == NoResponder
Definition: kauthactionreply.h:388
You don't have the authorization to execute the action.
Definition: kauthactionreply.h:404
static const ActionReply AuthorizationDeniedReply
errorCode() == AuthorizationDenied
Definition: kauthactionreply.h:391
Action execution has been cancelled by the user.
Definition: kauthactionreply.h:405
QVariantMap data() const
Returns the custom data coming from the helper.
Definition: kauthactionreply.cpp:91
An error reply generated by the helper.
Definition: kauthactionreply.h:381
void setErrorDescription(const QString &error)
Sets a human-readble description of the error.
Definition: kauthactionreply.cpp:134
static ActionReply deserialize(const QByteArray &data)
Deserialize a reply from a QByteArray.
Definition: kauthactionreply.cpp:149
void setErrorCode(int errorCode)
Sets the error code of an error reply.
Definition: kauthactionreply.cpp:121
static const ActionReply UserCancelledReply
errorCode() == UserCancelled
Definition: kauthactionreply.h:392
bool operator!=(const ActionReply &reply) const
Negated comparison operator.
Definition: kauthactionreply.cpp:176
static const ActionReply NoSuchActionReply
errorCode() == NoSuchAction
Definition: kauthactionreply.h:389
ActionReply & operator=(const ActionReply &reply)
Assignment operator.
Definition: kauthactionreply.cpp:161
ActionReply()
Default constructor. Sets type() to Success and errorCode() to zero.
Definition: kauthactionreply.cpp:55
QByteArray serialized() const
Serialize the reply into a QByteArray.
Definition: kauthactionreply.cpp:139
The helper responder object hasn't been set. This shouldn't happen if you use the KDE4_AUTH_HELPER ma...
Definition: kauthactionreply.h:401
The action has been completed successfully.
Definition: kauthactionreply.h:382
void setData(const QVariantMap &data)
Sets the custom data to send back to the application.
Definition: kauthactionreply.cpp:81
The helper is busy executing another action (or group of actions). Try later.
Definition: kauthactionreply.h:406
QDataStream & operator>>(QDataStream &stream, ActionReply &reply)
Definition: kauthactionreply.cpp:186
Class that encapsulates a reply coming from the helper after executing an action. ...
Definition: kauthactionreply.h:370
QString errorDescription() const
Gets a human-readble description of the error, if available.
Definition: kauthactionreply.cpp:129
The action you tried to execute doesn't exist.
Definition: kauthactionreply.h:402
QDataStream & operator<<(QDataStream &d, const ActionReply &reply)
Definition: kauthactionreply.cpp:181
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.