21 #ifndef POLKITQT1_AGENT_SESSION_H 22 #define POLKITQT1_AGENT_SESSION_H 24 #include <QtCore/QObject> 25 #include "polkitqt1-identity.h" 27 typedef struct _GSimpleAsyncResult GSimpleAsyncResult;
28 typedef struct _PolkitAgentSession PolkitAgentSession;
48 class POLKITQT1_EXPORT AsyncResult
51 explicit AsyncResult(GSimpleAsyncResult *result);
52 virtual ~AsyncResult();
65 void setError(
const QString &text);
80 class POLKITQT1_EXPORT
Session :
public QObject
103 explicit Session(PolkitAgentSession *pkAgentSession, QObject *parent = 0);
122 void setResponse(
const QString &response);
135 AsyncResult *result();
144 void completed(
bool gainedAuthorization);
153 void request(
const QString &request,
bool echo);
161 void showError(
const QString &text);
169 void showInfo(
const QString &text);
Definition: polkitqt1-agent-session.h:80
Abstract class representing identities.
Definition: polkitqt1-identity.h:59
Namespace wrapping Polkit-Qt classes.
Definition: listeneradapter.cpp:26
Namespace wrapping Polkit-Qt Agent classes.