1/*
2 SPDX-FileCopyrightText: 2008 Nicola Gigante <nicola.gigante@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef FAKE_BACKEND_H
8#define FAKE_BACKEND_H
9
10#include "AuthBackend.h"
11#include <QHash>
12
13class QByteArray;
14
15namespace KAuth
16{
17class FakeBackend : public AuthBackend
18{
19 Q_OBJECT
20 Q_INTERFACES(KAuth::AuthBackend)
21
22public:
23 FakeBackend();
24 void setupAction(const QString &) override;
25 Action::AuthStatus authorizeAction(const QString &) override;
26 Action::AuthStatus actionStatus(const QString &) override;
27 QByteArray callerID() const override;
28 bool isCallerAuthorized(const QString &action, const QByteArray &callerID, const QVariantMap &details) override;
29};
30
31} // namespace Auth
32
33#endif
34

source code of kauth/src/backends/fake/FakeBackend.h