Changeset View
Changeset View
Standalone View
Standalone View
src/HelperProxy.h
Show All 25 Lines | |||||
26 | #include <QVariant> | 26 | #include <QVariant> | ||
27 | 27 | | |||
28 | #include "kauthaction.h" | 28 | #include "kauthaction.h" | ||
29 | #include "kauthactionreply.h" | 29 | #include "kauthactionreply.h" | ||
30 | 30 | | |||
31 | namespace KAuth | 31 | namespace KAuth | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | typedef Action::DetailsMap DetailsMap; | ||||
35 | | ||||
34 | class HelperProxy : public QObject | 36 | class HelperProxy : public QObject | ||
35 | { | 37 | { | ||
36 | Q_OBJECT | 38 | Q_OBJECT | ||
37 | 39 | | |||
38 | public: | 40 | public: | ||
39 | virtual ~HelperProxy(); | 41 | virtual ~HelperProxy(); | ||
40 | 42 | | |||
41 | // Application-side methods | 43 | // Application-side methods | ||
42 | virtual void executeAction(const QString &action, const QString &helperID, | 44 | virtual void executeAction(const QString &action, const QString &helperID, | ||
43 | const QVariantMap &arguments, int timeout) = 0; | 45 | const DetailsMap &details, const QVariantMap &arguments, | ||
46 | int timeout) = 0; | ||||
44 | virtual void stopAction(const QString &action, const QString &helperID) = 0; | 47 | virtual void stopAction(const QString &action, const QString &helperID) = 0; | ||
45 | 48 | | |||
46 | // Helper-side methods | 49 | // Helper-side methods | ||
47 | virtual bool initHelper(const QString &name) = 0; | 50 | virtual bool initHelper(const QString &name) = 0; | ||
48 | virtual void setHelperResponder(QObject *o) = 0; | 51 | virtual void setHelperResponder(QObject *o) = 0; | ||
49 | virtual bool hasToStopAction() = 0; | 52 | virtual bool hasToStopAction() = 0; | ||
50 | virtual void sendDebugMessage(int level, const char *msg) = 0; | 53 | virtual void sendDebugMessage(int level, const char *msg) = 0; | ||
51 | virtual void sendProgressStep(int step) = 0; | 54 | virtual void sendProgressStep(int step) = 0; | ||
Show All 14 Lines |