KAuth

FakeHelperProxy.h
1 /*
2  SPDX-FileCopyrightText: 2010 Dario Freddi <[email protected]>
3  SPDX-FileCopyrightText: 2020 Harald Sitter <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef FAKEHELPERPROXY_H
9 #define FAKEHELPERPROXY_H
10 
11 #include "HelperProxy.h"
12 
13 namespace KAuth
14 {
15 class FakeHelperProxy : public HelperProxy
16 {
17  Q_OBJECT
18  Q_INTERFACES(KAuth::HelperProxy)
19 
20 public:
21  FakeHelperProxy();
22  ~FakeHelperProxy() override;
23 
24  void sendProgressStepData(const QVariantMap &step) override;
25  void sendProgressStep(int step) override;
26  void sendDebugMessage(int level, const char *msg) override;
27  bool hasToStopAction() override;
28  void setHelperResponder(QObject *o) override;
29  bool initHelper(const QString &name) override;
30  void stopAction(const QString &action, const QString &helperID) override;
31  void executeAction(const QString &action, const QString &helperID, const DetailsMap &details, const QVariantMap &arguments, int timeout = -1) override;
32  int callerUid() const override;
33 };
34 
35 }
36 
37 #endif // FAKEHELPERPROXY_H
Q_OBJECTQ_OBJECT
Definition: action.cpp:18
Q_INTERFACES(...)
KAUTHCORE_EXPORT int callerUid()
Obtains the caller user id if available.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:14:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.