PolkitQt-1
polkitqt1-agent-session.cpp
26 static void request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data);
39Session::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);
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);
93void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authorization, gpointer user_data)
104void Session::Private::request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data)
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 setResponse(const QString &response)
Method for providing response to requests received via request signal.
Definition polkitqt1-agent-session.cpp:78
char * data()
QObject * parent() const const
QString fromUtf8(QByteArrayView str)
QByteArray toUtf8() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.