KAuth

FakeBackend.h
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{
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
AuthStatus
The three values set by authorization methods.
Definition action.h:84
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 15 2024 11:57:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.