PolkitQt-1
polkitqt1-agent-session.cpp
26 static void request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data);
39 Session::Session(const PolkitQt1::Identity &identity, const QString &cookie, AsyncResult *result, QObject *parent)
45 g_signal_connect(G_OBJECT(d->polkitAgentSession), "completed", G_CALLBACK(Private::completed), this);
46 g_signal_connect(G_OBJECT(d->polkitAgentSession), "request", G_CALLBACK(Private::request), this);
47 g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-error", G_CALLBACK(Private::showError), this);
48 g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-info", G_CALLBACK(Private::showInfo), this);
59 g_signal_connect(G_OBJECT(d->polkitAgentSession), "completed", G_CALLBACK(Private::completed), this);
60 g_signal_connect(G_OBJECT(d->polkitAgentSession), "request", G_CALLBACK(Private::request), this);
61 g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-error", G_CALLBACK(Private::showError), this);
62 g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-info", G_CALLBACK(Private::showInfo), this);
93 void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authorization, gpointer user_data)
104 void Session::Private::request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data)
void request(const QString &request, bool echo)
This signal will be emitted when user is requested to answer a question.
void completed(bool gainedAuthorization)
This signal will be emitted when the authentication polkitqt1-agent-session.has been completed or can...
QString fromUtf8(const char *str, int size)
void setResponse(const QString &response)
Method for providing response to requests received via request signal.
Definition: polkitqt1-agent-session.cpp:78
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
Encapsulation of GSimpleAsyncResult to QObject class.
Definition: polkitqt1-agent-session.h:36
void setCompleted()
Mark the action that is tied to this result as completed.
Definition: polkitqt1-agent-session.cpp:143
QByteArray toUtf8() const const
void showError(const QString &text)
This signal will be emitted when there is information related to an error condition to be displayed t...
AsyncResult * result()
Get AsyncResult that can be used to finish authentication operation.
Definition: polkitqt1-agent-session.cpp:88
char * data()
void setError(const QString &text)
Sets an error for the asynchronous result.
Definition: polkitqt1-agent-session.cpp:153
void showInfo(const QString &text)
This signal will be emitted when there is information to be displayed to the user.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Jun 26 2022 04:06:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Jun 26 2022 04:06:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.