File indexing completed on 2024-04-28 16:44:42
0001 /* SPDX-FileCopyrightText: 2010 Anton Kreuzkamp <akreuzkamp@web.de> 0002 * SPDX-FileCopyrightText: 2020 Alexander Lohnau <alexander.lohnau@gmx.de> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef CHARRUNNER_H 0008 #define CHARRUNNER_H 0009 0010 #include <KRunner/AbstractRunner> 0011 0012 using namespace Plasma; 0013 0014 class CharacterRunner : public AbstractRunner 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 CharacterRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args); 0020 ~CharacterRunner() override; 0021 0022 void reloadConfiguration() override; 0023 void match(RunnerContext &context) override; 0024 void run(const RunnerContext &context, const QueryMatch &match) override; 0025 0026 private: 0027 // config-variables 0028 QString m_triggerWord; 0029 QList<QString> m_aliases; 0030 QList<QString> m_codes; 0031 }; 0032 0033 #endif