Plasma
bookmarksrunner.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 BOOKMARKSRUNNER_H
00021 #define BOOKMARKSRUNNER_H
00022
00023 #include <KGenericFactory>
00024 #include <KIcon>
00025
00026 #include <Plasma/AbstractRunner>
00027
00028 class QWidget;
00029
00030 class KBookmark;
00031 class KBookmarkGroup;
00032 class KBookmarkManager;
00033
00034 class BookmarksRunner : public Plasma::AbstractRunner
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 BookmarksRunner(QObject* parent, const QVariantList &args);
00040 ~BookmarksRunner();
00041
00042 void match(Plasma::RunnerContext &context);
00043 void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action);
00044
00045 private:
00046 KIcon getFavicon(const KUrl &url);
00047
00048 private:
00049 KIcon m_icon;
00050 KBookmarkManager *m_bookmarkManager;
00051 };
00052
00053 K_EXPORT_PLASMA_RUNNER(bookmarksrunner, BookmarksRunner)
00054
00055 #endif