File indexing completed on 2025-04-13 12:31:11
0001 /* 0002 SPDX-FileCopyrightText: 2008 Nicola Gigante <nicola.gigante@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #include "FakeBackend.h" 0008 0009 namespace KAuth 0010 { 0011 FakeBackend::FakeBackend() 0012 : AuthBackend() 0013 { 0014 setCapabilities(NoCapability); 0015 } 0016 0017 Action::AuthStatus FakeBackend::authorizeAction(const QString &action) 0018 { 0019 Q_UNUSED(action) 0020 return Action::DeniedStatus; 0021 } 0022 0023 void FakeBackend::setupAction(const QString &action) 0024 { 0025 Q_UNUSED(action) 0026 } 0027 0028 Action::AuthStatus FakeBackend::actionStatus(const QString &action) 0029 { 0030 Q_UNUSED(action) 0031 return Action::DeniedStatus; 0032 } 0033 0034 QByteArray FakeBackend::callerID() const 0035 { 0036 return QByteArray(); 0037 } 0038 0039 bool FakeBackend::isCallerAuthorized(const QString &action, const QByteArray &callerID, const QVariantMap &details) 0040 { 0041 Q_UNUSED(action) 0042 Q_UNUSED(callerID) 0043 Q_UNUSED(details) 0044 return false; 0045 } 0046 0047 } // namespace Auth 0048 0049 #include "moc_FakeBackend.cpp"