KAuth

FakeHelperProxy.cpp
1/*
2 SPDX-FileCopyrightText: 2010 Dario Freddi <drf@kde.org>
3 SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#include "FakeHelperProxy.h"
9
10namespace KAuth
11{
12FakeHelperProxy::FakeHelperProxy()
13 : HelperProxy()
14{
15}
16
17FakeHelperProxy::~FakeHelperProxy()
18{
19}
20
21void FakeHelperProxy::sendProgressStepData(const QVariantMap &step)
22{
23 Q_UNUSED(step)
24}
25
26void FakeHelperProxy::sendProgressStep(int step)
27{
28 Q_UNUSED(step)
29}
30
31void FakeHelperProxy::sendDebugMessage(int level, const char *msg)
32{
33 Q_UNUSED(level)
34 Q_UNUSED(msg)
35}
36
37bool FakeHelperProxy::hasToStopAction()
38{
39 return false;
40}
41
42void FakeHelperProxy::setHelperResponder(QObject *o)
43{
44 Q_UNUSED(o)
45}
46
47bool FakeHelperProxy::initHelper(const QString &name)
48{
49 Q_UNUSED(name)
50 return false;
51}
52
53void FakeHelperProxy::stopAction(const QString &action, const QString &helperID)
54{
55 Q_UNUSED(action)
56 Q_UNUSED(helperID)
57}
58
59void FakeHelperProxy::executeAction(const QString &action, const QString &helperID, const DetailsMap &details, const QVariantMap &arguments, int timeout)
60{
61 Q_UNUSED(helperID)
62 Q_UNUSED(details)
63 Q_UNUSED(arguments)
64 Q_UNUSED(timeout)
65 Q_EMIT actionPerformed(action, KAuth::ActionReply::NoSuchActionReply());
66}
67
68int FakeHelperProxy::callerUid() const
69{
70 return -1;
71}
72
73}
74
75#include "moc_FakeHelperProxy.cpp"
static const ActionReply NoSuchActionReply()
errorCode() == NoSuchAction
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:49:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.