Changeset View
Changeset View
Standalone View
Standalone View
autotests/TestBackend.h
Show All 33 Lines | 32 | { | |||
---|---|---|---|---|---|
34 | Q_INTERFACES(KAuth::AuthBackend) | 34 | Q_INTERFACES(KAuth::AuthBackend) | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | TestBackend(); | 37 | TestBackend(); | ||
38 | void setupAction(const QString &) override; | 38 | void setupAction(const QString &) override; | ||
39 | Action::AuthStatus authorizeAction(const QString &) override; | 39 | Action::AuthStatus authorizeAction(const QString &) override; | ||
40 | Action::AuthStatus actionStatus(const QString &) override; | 40 | Action::AuthStatus actionStatus(const QString &) override; | ||
41 | QByteArray callerID() const override; | 41 | QByteArray callerID() const override; | ||
42 | bool isCallerAuthorized(const QString &action, QByteArray callerID) override; | 42 | bool isCallerAuthorized(const QString &action, const QByteArray &callerID, const QVariantMap &details) override; | ||
43 | bool actionExists(const QString &action) override; | 43 | bool actionExists(const QString &action) override; | ||
44 | 44 | | |||
45 | public Q_SLOTS: | 45 | public Q_SLOTS: | ||
46 | void setNewCapabilities(KAuth::AuthBackend::Capabilities capabilities); | 46 | void setNewCapabilities(KAuth::AuthBackend::Capabilities capabilities); | ||
47 | 47 | | |||
48 | private: | 48 | private: | ||
49 | QHash<QString, KAuth::Action::AuthStatus> m_actionStatuses; | 49 | QHash<QString, KAuth::Action::AuthStatus> m_actionStatuses; | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
52 | } // namespace Auth | 52 | } // namespace Auth | ||
53 | 53 | | |||
54 | #endif | 54 | #endif |