Changeset View
Changeset View
Standalone View
Standalone View
runners/characters/config_keys.h
- This file was copied from runners/characters/charrunner.h.
1 | /* Copyright 2010 Anton Kreuzkamp <akreuzkamp@web.de> | 1 | /* Copyright 2020 Alexander Lohnau <alexander.lohnau@gmx.de> | ||
---|---|---|---|---|---|
2 | * | 2 | * | ||
3 | * This library is free software; you can redistribute it and/or | 3 | * This library is free software; you can redistribute it and/or | ||
4 | * modify it under the terms of the GNU Lesser General Public | 4 | * modify it under the terms of the GNU Lesser General Public | ||
5 | * License as published by the Free Software Foundation; either | 5 | * License as published by the Free Software Foundation; either | ||
6 | * version 2.1 of the License, or (at your option) version 3, or any | 6 | * version 2.1 of the License, or (at your option) version 3, or any | ||
7 | * later version accepted by the membership of KDE e.V. (or its | 7 | * later version accepted by the membership of KDE e.V. (or its | ||
8 | * successor approved by the membership of KDE e.V.), which shall | 8 | * successor approved by the membership of KDE e.V.), which shall | ||
9 | * act as a proxy defined in Section 6 of version 3 of the license. | 9 | * act as a proxy defined in Section 6 of version 3 of the license. | ||
10 | * | 10 | * | ||
11 | * This library is distributed in the hope that it will be useful, | 11 | * This library is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * Lesser General Public License for more details. | 14 | * Lesser General Public License for more details. | ||
15 | * | 15 | * | ||
16 | * You should have received a copy of the GNU Lesser General Public | 16 | * You should have received a copy of the GNU Lesser General Public | ||
17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef CHARRUNNER_H | 20 | #ifndef CONFIG_KEYS_H | ||
21 | #define CHARRUNNER_H | 21 | #define CONFIG_KEYS_H | ||
22 | 22 | | |||
23 | #include <KRunner/AbstractRunner> | 23 | static const char CONFIG_TRIGGERWORD[] = "triggerWord"; | ||
24 | static const char CONFIG_ALIASES[] = "aliases"; | ||||
25 | static const char CONFIG_CODES[] = "codes"; | ||||
26 | static const QString DEFAULT_TRIGGERWORD = QStringLiteral("#"); | ||||
24 | 27 | | |||
25 | class CharacterRunner : public Plasma::AbstractRunner | 28 | #endif //CONFIG_KEYS_H | ||
26 | { | | |||
27 | Q_OBJECT | | |||
28 | | ||||
29 | public: | | |||
30 | CharacterRunner(QObject* parent, const QVariantList &args); | | |||
31 | ~CharacterRunner() override; | | |||
32 | | ||||
33 | void match(Plasma::RunnerContext &context) override; | | |||
34 | void reloadConfiguration() override; | | |||
35 | | ||||
36 | private: | | |||
37 | //config-variables | | |||
38 | QString m_triggerWord; | | |||
39 | QList<QString> m_aliases; | | |||
40 | QList<QString> m_codes; | | |||
41 | }; | | |||
42 | | ||||
43 | #endif | |