KAuth

FakeBackend.h
1 /*
2  SPDX-FileCopyrightText: 2008 Nicola Gigante <[email protected]>
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 
13 class QByteArray;
14 
15 namespace KAuth
16 {
17 class FakeBackend : public AuthBackend
18 {
19  Q_OBJECT
20  Q_INTERFACES(KAuth::AuthBackend)
21 
22 public:
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
Q_OBJECTQ_OBJECT
AuthStatus
The three values set by authorization methods.
Definition: action.h:82
KCONFIGCORE_EXPORT bool authorizeAction(const QString &action)
Definition: action.cpp:18
Q_INTERFACES(...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:14:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.