KDECore
HelperProxy.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef HELPER_PROXY_H
00021 #define HELPER_PROXY_H
00022
00023 #include <QtPlugin>
00024 #include <QObject>
00025 #include <QMap>
00026 #include <QString>
00027 #include <QVariant>
00028
00029 #include "kauthactionreply.h"
00030 #include "kauthactionwatcher.h"
00031
00032 namespace KAuth
00033 {
00034
00035 class HelperProxy : public QObject
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 virtual ~HelperProxy();
00041
00042
00043 virtual bool executeActions(const QList<QPair<QString, QVariantMap> > &list, const QString &helperID) = 0;
00044 virtual ActionReply executeAction(const QString &action, const QString &helperID, const QVariantMap &arguments) = 0;
00045 virtual void stopAction(const QString &action, const QString &helperID) = 0;
00046
00047
00048 virtual bool initHelper(const QString &name) = 0;
00049 virtual void setHelperResponder(QObject *o) = 0;
00050 virtual bool hasToStopAction() = 0;
00051 virtual void sendDebugMessage(int level, const char *msg) = 0;
00052 virtual void sendProgressStep(int step) = 0;
00053 virtual void sendProgressStep(const QVariantMap &step) = 0;
00054
00055 signals:
00056 void actionStarted(const QString &action);
00057 void actionPerformed(const QString &action, ActionReply reply);
00058 void progressStep(const QString &action, int progress);
00059 void progressStep(const QString &action, const QVariantMap &data);
00060 };
00061
00062 }
00063
00064 Q_DECLARE_INTERFACE(KAuth::HelperProxy, "org.kde.auth.HelperProxy/0.1")
00065
00066 #endif