PolkitQt-1
polkitqt1-agent-session.h
81 Session(const PolkitQt1::Identity& identity, const QString &cookie, AsyncResult *result = nullptr, QObject *parent = nullptr);
Encapsulation of GSimpleAsyncResult to QObject class.
Definition polkitqt1-agent-session.h:37
void setCompleted()
Mark the action that is tied to this result as completed.
Definition polkitqt1-agent-session.cpp:143
void setError(const QString &text)
Sets an error for the asynchronous result.
Definition polkitqt1-agent-session.cpp:153
AsyncResult * result()
Get AsyncResult that can be used to finish authentication operation.
Definition polkitqt1-agent-session.cpp:88
void completed(bool gainedAuthorization)
This signal will be emitted when the authentication polkitqt1-agent-session.has been completed or can...
Session(const PolkitQt1::Identity &identity, const QString &cookie, AsyncResult *result=nullptr, QObject *parent=nullptr)
Create a new authentication session.
Definition polkitqt1-agent-session.cpp:39
void request(const QString &request, bool echo)
This signal will be emitted when user is requested to answer a question.
void setResponse(const QString &response)
Method for providing response to requests received via request signal.
Definition polkitqt1-agent-session.cpp:78
void showInfo(const QString &text)
This signal will be emitted when there is information to be displayed to the user.
void showError(const QString &text)
This signal will be emitted when there is information related to an error condition to be displayed t...
Agent.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:55 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:55 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.