Plasma
servicerunner.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 #ifndef SERVICERUNNER_H
00020 #define SERVICERUNNER_H
00021
00022 #include <QAction>
00023
00024 #include <KService>
00025
00026 #include <Plasma/AbstractRunner>
00027
00028 class QWidget;
00029
00037 class ServiceRunner : public Plasma::AbstractRunner
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 ServiceRunner(QObject *parent, const QVariantList &args);
00043 ~ServiceRunner();
00044
00045 void match(Plasma::RunnerContext &context);
00046 void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action);
00047
00048 protected:
00049 void setupAction(const KService::Ptr &service, Plasma::QueryMatch &action);
00050 };
00051
00052 K_EXPORT_PLASMA_RUNNER(services, ServiceRunner)
00053
00054 #endif
00055