KAuth

FakeBackend.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Nicola Gigante <nicola.gigante@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#include "FakeBackend.h"
8
9namespace KAuth
10{
11FakeBackend::FakeBackend()
12 : AuthBackend()
13{
14 setCapabilities(NoCapability);
15}
16
17Action::AuthStatus FakeBackend::authorizeAction(const QString &action)
18{
19 Q_UNUSED(action)
20 return Action::DeniedStatus;
21}
22
23void FakeBackend::setupAction(const QString &action)
24{
25 Q_UNUSED(action)
26}
27
28Action::AuthStatus FakeBackend::actionStatus(const QString &action)
29{
30 Q_UNUSED(action)
31 return Action::DeniedStatus;
32}
33
34QByteArray FakeBackend::callerID() const
35{
36 return QByteArray();
37}
38
39bool 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
48
49#include "moc_FakeBackend.cpp"
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.