File indexing completed on 2024-12-01 09:47:26

0001 /*
0002     SPDX-FileCopyrightText: 2010 Dario Freddi <drf@kde.org>
0003     SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef FAKEHELPERPROXY_H
0009 #define FAKEHELPERPROXY_H
0010 
0011 #include "HelperProxy.h"
0012 
0013 namespace KAuth
0014 {
0015 class FakeHelperProxy : public HelperProxy
0016 {
0017     Q_OBJECT
0018     Q_INTERFACES(KAuth::HelperProxy)
0019 
0020 public:
0021     FakeHelperProxy();
0022     ~FakeHelperProxy() override;
0023 
0024     void sendProgressStepData(const QVariantMap &step) override;
0025     void sendProgressStep(int step) override;
0026     void sendDebugMessage(int level, const char *msg) override;
0027     bool hasToStopAction() override;
0028     void setHelperResponder(QObject *o) override;
0029     bool initHelper(const QString &name) override;
0030     void stopAction(const QString &action, const QString &helperID) override;
0031     void executeAction(const QString &action, const QString &helperID, const DetailsMap &details, const QVariantMap &arguments, int timeout = -1) override;
0032     int callerUid() const override;
0033 };
0034 
0035 }
0036 
0037 #endif // FAKEHELPERPROXY_H