Commit 247687bd authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau Committed by Alexander Lohnau

Runners: port to KPluginMetaData argument using AbstractRunner constructor

parent e3e601d2
......@@ -10,7 +10,7 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
endif()
set(QT_MIN_VERSION 5.15.0)
set(KF5_MIN_VERSION 5.74.0)
set(KF5_MIN_VERSION 5.77.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
......
......@@ -15,10 +15,9 @@
#include <QDebug>
#include <QClipboard>
CharacterRunner::CharacterRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
CharacterRunner::CharacterRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args)
{
Q_UNUSED(args)
setObjectName(QStringLiteral("CharacterRunner"));
}
......
......@@ -14,7 +14,7 @@ class CharacterRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
CharacterRunner(QObject* parent, const QVariantList &args);
CharacterRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~CharacterRunner() override;
void reloadConfiguration() override;
......
......@@ -41,7 +41,7 @@ void ConverterRunnerTest::initTestCase()
setlocale(LC_ALL, "C.utf8");
qputenv("LANG", "en_US");
QLocale::setDefault(QLocale::English);
runner = new ConverterRunner(this, QVariantList());
runner = new ConverterRunner(this, KPluginMetaData(), QVariantList());
runner->init();
}
......
......@@ -15,8 +15,8 @@
#include <cmath>
ConverterRunner::ConverterRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
ConverterRunner::ConverterRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args)
{
setObjectName(QStringLiteral("Converter"));
......
......@@ -24,7 +24,7 @@ class ConverterRunner: public Plasma::AbstractRunner
Q_OBJECT
public:
ConverterRunner(QObject *parent, const QVariantList &args);
ConverterRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
void init() override;
void insertCompatibleUnits();
~ConverterRunner() override;
......
......@@ -17,8 +17,8 @@
static const QString dateWord = i18nc("Note this is a KRunner keyword", "date");
static const QString timeWord = i18nc("Note this is a KRunner keyword", "time");
DateTimeRunner::DateTimeRunner(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
DateTimeRunner::DateTimeRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args)
{
setObjectName(QLatin1String( "DataTimeRunner" ));
......
......@@ -24,7 +24,7 @@ class DateTimeRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
DateTimeRunner(QObject *parent, const QVariantList &args);
DateTimeRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~DateTimeRunner() override;
void match(Plasma::RunnerContext &context) override;
......
......@@ -10,8 +10,8 @@
static const char CONFIG_TRIGGERWORD[] = "triggerWord";
DictionaryRunner::DictionaryRunner(QObject *parent, const QVariantList &args)
: AbstractRunner(parent, args)
DictionaryRunner::DictionaryRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: AbstractRunner(parent, metaData, args)
{
m_engine = new DictionaryMatchEngine(dataEngine(QStringLiteral("dict")), this);
......
......@@ -14,7 +14,7 @@ class DictionaryRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
explicit DictionaryRunner(QObject *parent, const QVariantList &args);
explicit DictionaryRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
void match(Plasma::RunnerContext &context) override;
void reloadConfiguration() override;
......
......@@ -21,8 +21,8 @@
K_EXPORT_PLASMA_RUNNER_WITH_JSON(KateSessions, "plasma-runner-katesessions.json")
KateSessions::KateSessions(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
KateSessions::KateSessions(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args)
{
setObjectName(QStringLiteral("Kate Sessions"));
......
......@@ -17,7 +17,7 @@ class KateSessions : public Plasma::AbstractRunner {
Q_OBJECT
public:
explicit KateSessions(QObject *parent, const QVariantList& args);
explicit KateSessions(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~KateSessions() override;
void match(Plasma::RunnerContext &context) override;
......
......@@ -20,8 +20,8 @@
#include <QStandardPaths>
KonsoleProfiles::KonsoleProfiles(QObject *parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
KonsoleProfiles::KonsoleProfiles(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args)
{
setObjectName(QStringLiteral("Konsole Profiles"));
......
......@@ -25,7 +25,7 @@ class KonsoleProfiles: public Plasma::AbstractRunner
Q_OBJECT
public:
explicit KonsoleProfiles(QObject *parent, const QVariantList &args);
explicit KonsoleProfiles(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~KonsoleProfiles() override;
void init() override;
......
......@@ -16,10 +16,9 @@
#include <KLocalizedString>
SpellCheckRunner::SpellCheckRunner(QObject* parent, const QVariantList &args)
: Plasma::AbstractRunner(parent, args)
SpellCheckRunner::SpellCheckRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: Plasma::AbstractRunner(parent, metaData, args)
{
Q_UNUSED(args)
setObjectName(QStringLiteral("Spell Checker"));
setSpeed(AbstractRunner::SlowSpeed);
}
......
......@@ -21,7 +21,7 @@ class SpellCheckRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
SpellCheckRunner(QObject* parent, const QVariantList &args);
SpellCheckRunner(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~SpellCheckRunner() override;
void match(Plasma::RunnerContext &context) override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment