Changeset View
Changeset View
Standalone View
Standalone View
runners/webshortcuts/webshortcutrunner.h
Show All 13 Lines | |||||
14 | * License along with this program; if not, write to the | 14 | * License along with this program; if not, write to the | ||
15 | * Free Software Foundation, Inc., | 15 | * Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef WEBSHORTCUTRUNNER_H | 19 | #ifndef WEBSHORTCUTRUNNER_H | ||
20 | #define WEBSHORTCUTRUNNER_H | 20 | #define WEBSHORTCUTRUNNER_H | ||
21 | 21 | | |||
22 | #include <QIcon> | | |||
23 | | ||||
24 | #include <KRunner/AbstractRunner> | 22 | #include <KRunner/AbstractRunner> | ||
25 | 23 | | |||
26 | class WebshortcutRunner : public Plasma::AbstractRunner { | 24 | class WebshortcutRunner : public Plasma::AbstractRunner | ||
25 | { | ||||
27 | Q_OBJECT | 26 | Q_OBJECT | ||
28 | 27 | | |||
29 | public: | 28 | public: | ||
30 | WebshortcutRunner( QObject *parent, const QVariantList& args ); | 29 | WebshortcutRunner(QObject *parent, const QVariantList& args); | ||
31 | ~WebshortcutRunner() override; | 30 | ~WebshortcutRunner() override; | ||
32 | 31 | | |||
33 | void match(Plasma::RunnerContext &context) override; | 32 | void match(Plasma::RunnerContext &context) override; | ||
34 | void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) override; | 33 | void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) override; | ||
35 | 34 | | |||
36 | private: | | |||
37 | void loadSyntaxes(); | | |||
38 | | ||||
39 | private Q_SLOTS: | 35 | private Q_SLOTS: | ||
40 | void readFiltersConfig(); | 36 | void loadSyntaxes(); | ||
41 | void resetState(); | | |||
42 | 37 | | |||
43 | private: | 38 | private: | ||
44 | Plasma::QueryMatch m_match; | 39 | Plasma::QueryMatch m_match; | ||
45 | bool m_filterBeforeRun; | 40 | bool m_filterBeforeRun; | ||
46 | 41 | | |||
47 | QChar m_delimiter; | 42 | QChar m_delimiter; | ||
48 | QString m_lastFailedKey; | 43 | QString m_lastFailedKey; | ||
49 | QString m_lastKey; | 44 | QString m_lastKey; | ||
50 | QString m_lastProvider; | 45 | QString m_lastProvider; | ||
51 | }; | 46 | }; | ||
52 | 47 | | |||
53 | #endif | 48 | #endif |