KAuth

FakeBackend.cpp
1 /*
2  SPDX-FileCopyrightText: 2008 Nicola Gigante <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #include "FakeBackend.h"
8 
9 namespace KAuth
10 {
11 FakeBackend::FakeBackend()
12  : AuthBackend()
13 {
14  setCapabilities(NoCapability);
15 }
16 
17 Action::AuthStatus FakeBackend::authorizeAction(const QString &action)
18 {
19  Q_UNUSED(action)
20  return Action::DeniedStatus;
21 }
22 
23 void FakeBackend::setupAction(const QString &action)
24 {
25  Q_UNUSED(action)
26 }
27 
28 Action::AuthStatus FakeBackend::actionStatus(const QString &action)
29 {
30  Q_UNUSED(action)
31  return Action::DeniedStatus;
32 }
33 
34 QByteArray FakeBackend::callerID() const
35 {
36  return QByteArray();
37 }
38 
39 bool FakeBackend::isCallerAuthorized(const QString &action, const QByteArray &callerID, const QVariantMap &details)
40 {
41  Q_UNUSED(action)
42  Q_UNUSED(callerID)
43  Q_UNUSED(details)
44  return false;
45 }
46 
47 } // namespace Auth
AuthStatus
The three values set by authorization methods.
Definition: action.h:82
void setCapabilities(Capabilities capabilities)
Definition: action.cpp:18
@ DeniedStatus
The authorization has been denied by the authorization backend.
Definition: action.h:83
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.