Plasma
placesrunner.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 PLACESRUNNER_H
00021 #define PLACESRUNNER_H
00022
00023 #include <KGenericFactory>
00024 #include <KIcon>
00025
00026 #include <plasma/abstractrunner.h>
00027 #include <kfileplacesmodel.h>
00028
00029 class PlacesRunner : public Plasma::AbstractRunner
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 PlacesRunner(QObject* parent, const QVariantList &args);
00035 ~PlacesRunner();
00036
00037 void match(Plasma::RunnerContext &context);
00038 void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action);
00039 private:
00040 KFilePlacesModel *m_filePlaces;
00041 private slots:
00042 void setupComplete(QModelIndex, bool);
00043 };
00044
00045 K_EXPORT_PLASMA_RUNNER(bookmarksrunner, PlacesRunner)
00046
00047 #endif