Changeset View
Changeset View
Standalone View
Standalone View
src/backends/polkit-1/Polkit1Backend.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
---|---|---|---|---|---|
45 | Polkit1Backend(); | 45 | Polkit1Backend(); | ||
46 | virtual ~Polkit1Backend(); | 46 | virtual ~Polkit1Backend(); | ||
47 | void setupAction(const QString &) override; | 47 | void setupAction(const QString &) override; | ||
48 | void preAuthAction(const QString &action, QWidget *parent) override; | 48 | void preAuthAction(const QString &action, QWidget *parent) override; | ||
49 | Action::AuthStatus authorizeAction(const QString &) override; | 49 | Action::AuthStatus authorizeAction(const QString &) override; | ||
50 | Action::AuthStatus actionStatus(const QString &) override; | 50 | Action::AuthStatus actionStatus(const QString &) override; | ||
51 | QByteArray callerID() const override; | 51 | QByteArray callerID() const override; | ||
52 | ExtraCallerIDVerificationMethod extraCallerIDVerificationMethod() const override; | 52 | ExtraCallerIDVerificationMethod extraCallerIDVerificationMethod() const override; | ||
53 | bool isCallerAuthorized(const QString &action, QByteArray callerID) override; | 53 | virtual bool isCallerAuthorized(const QString &action, const QByteArray &callerID, const QVariantMap &details) override; | ||
54 | bool actionExists(const QString &action) override; | 54 | bool actionExists(const QString &action) override; | ||
55 | QVariantMap backendDetails(const DetailsMap &details) override; | ||||
sitter: We generally do not use get prefixes. | |||||
55 | 56 | | |||
56 | private Q_SLOTS: | 57 | private Q_SLOTS: | ||
57 | void checkForResultChanged(); | 58 | void checkForResultChanged(); | ||
58 | 59 | | |||
59 | private: | 60 | private: | ||
60 | QHash<QString, Action::AuthStatus> m_cachedResults; | 61 | QHash<QString, Action::AuthStatus> m_cachedResults; | ||
61 | }; | 62 | }; | ||
62 | 63 | | |||
Show All 19 Lines |
We generally do not use get prefixes.