Changeset View
Changeset View
Standalone View
Standalone View
src/backends/polkit-1/Polkit1Backend.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
---|---|---|---|---|---|
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 | bool isCallerAuthorized(const QString &action, QByteArray callerID) override; | ||
54 | bool actionExists(const QString &action) override; | 54 | bool actionExists(const QString &action) override; | ||
55 | 55 | | |||
56 | private Q_SLOTS: | 56 | private Q_SLOTS: | ||
57 | void checkForResultChanged(); | 57 | void checkForResultChanged(); | ||
58 | void updateCachedActions(const PolkitQt1::ActionDescription::List &actions); | | |||
59 | 58 | | |||
60 | private: | 59 | private: | ||
61 | QHash<QString, Action::AuthStatus> m_cachedResults; | 60 | QHash<QString, Action::AuthStatus> m_cachedResults; | ||
62 | QStringList m_knownActions; | | |||
63 | bool m_flyingActions; | | |||
64 | }; | 61 | }; | ||
65 | 62 | | |||
66 | class PolkitResultEventLoop : public QEventLoop | 63 | class PolkitResultEventLoop : public QEventLoop | ||
67 | { | 64 | { | ||
68 | Q_OBJECT | 65 | Q_OBJECT | ||
69 | public: | 66 | public: | ||
70 | PolkitResultEventLoop(QObject *parent = nullptr); | 67 | PolkitResultEventLoop(QObject *parent = nullptr); | ||
71 | virtual ~PolkitResultEventLoop(); | 68 | virtual ~PolkitResultEventLoop(); | ||
Show All 13 Lines |