KDECore
Polkit1Backend.cpp
Go to the documentation of this file.
66 setCapabilities(AuthorizeFromHelperCapability | CheckActionExistenceCapability | PreAuthActionCapability);
73 connect(PolkitQt1::Authority::instance(), SIGNAL(enumerateActionsFinished(PolkitQt1::ActionDescription::List)),
96 if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String("org.kde.Polkit1AuthAgent"))) {
107 QDBusMessage::createMethodCall(QLatin1String("org.kde.Polkit1AuthAgent"), QLatin1String("/org/kde/Polkit1AuthAgent"), QLatin1String("org.kde.Polkit1AuthAgent"),
148 PolkitQt1::Authority::Result r = PolkitQt1::Authority::instance()->checkAuthorizationSync(action, subject,
166 AuthBackend::ExtraCallerIDVerificationMethod Polkit1Backend::extraCallerIDVerificationMethod() const
void clear()
virtual Action::AuthStatus actionStatus(const QString &)
Definition: Polkit1Backend.cpp:145
virtual bool actionExists(const QString &action)
Definition: Polkit1Backend.cpp:206
void quit()
Definition: Polkit1Backend.h:65
The user could obtain the authorization after authentication.
Definition: kauthaction.h:83
Definition: Polkit1Backend.h:38
virtual bool isCallerAuthorized(const QString &action, QByteArray callerID)
Definition: Polkit1Backend.cpp:171
PolkitResultEventLoop(QObject *parent=0)
Definition: Polkit1Backend.cpp:42
Type type()
void actionStatusChanged(const QString &action, Action::AuthStatus status)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
virtual void setupAction(const QString &)
Definition: Polkit1Backend.cpp:140
void requestQuit(const PolkitQt1::Authority::Result &result)
Definition: Polkit1Backend.cpp:51
QDBusConnection systemBus()
QDBusConnection sessionBus()
QString baseService() const
Definition: kuitsemantics.cpp:82
QString fromUtf8(const char *str, int size)
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
virtual QByteArray callerID() const
Definition: Polkit1Backend.cpp:161
The authorization has been denied by the authorization backend.
Definition: kauthaction.h:79
ExtraCallerIDVerificationMethod
Definition: AuthBackend.h:46
virtual Action::AuthStatus authorizeAction(const QString &)
Definition: Polkit1Backend.cpp:133
Definition: kfilesystemtype_p.h:29
virtual ~PolkitResultEventLoop()
Definition: Polkit1Backend.cpp:47
The authorization has been granted by the authorization backend.
Definition: kauthaction.h:82
PolkitQt1::Authority::Result result() const
Definition: Polkit1Backend.cpp:57
void setCapabilities(Capabilities capabilities)
Definition: AuthBackend.cpp:52
virtual ExtraCallerIDVerificationMethod extraCallerIDVerificationMethod() const
Definition: PolicyKitBackend.cpp:81
Definition: kuitsemantics.cpp:84
QDBusPendingCall asyncCall(const QDBusMessage &message, int timeout) const
Definition: AuthBackend.h:31
WId effectiveWinId() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method)
virtual void preAuthAction(const QString &action, QWidget *parent)
Definition: Polkit1Backend.cpp:86
singleShot
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.