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 | |
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 |
48 | |
49 | #include "moc_FakeBackend.cpp" |
50 |