/* SPDX-FileCopyrightText: 2007 Teemu Rytilahti SPDX-License-Identifier: LGPL-2.0-only */ #pragma once #include #include #include class WebshortcutRunner : public KRunner::AbstractRunner { Q_OBJECT public: WebshortcutRunner(QObject *parent, const KPluginMetaData &metaData); void match(KRunner::RunnerContext &context) override; void run(const KRunner::RunnerContext &context, const KRunner::QueryMatch &match) override; void init() override { configurePrivateBrowsingActions(); loadSyntaxes(); } private: Q_SLOT void loadSyntaxes(); void configurePrivateBrowsingActions(); KRunner::QueryMatch m_match; bool m_filterBeforeRun; QChar m_delimiter; QString m_lastFailedKey; QString m_lastKey; QString m_lastProvider; QRegularExpression m_regex; KServiceAction m_privateAction; KRunner::RunnerContext m_lastUsedContext; QString m_defaultKey; KRunner::Action m_action; };