You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
798 B
38 lines
798 B
/* |
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#include "windowsrunnerinterface.h" |
|
#include "main.h" |
|
|
|
#include <KPluginFactory> |
|
|
|
using namespace KWin; |
|
|
|
class KWIN_EXPORT KRunnerIntegrationFactory : public PluginFactory |
|
{ |
|
Q_OBJECT |
|
Q_PLUGIN_METADATA(IID PluginFactory_iid FILE "metadata.json") |
|
Q_INTERFACES(KWin::PluginFactory) |
|
|
|
public: |
|
explicit KRunnerIntegrationFactory(QObject *parent = nullptr); |
|
|
|
Plugin *create() const override; |
|
}; |
|
|
|
KRunnerIntegrationFactory::KRunnerIntegrationFactory(QObject *parent) |
|
: PluginFactory(parent) |
|
{ |
|
} |
|
|
|
Plugin *KRunnerIntegrationFactory::create() const |
|
{ |
|
return new WindowsRunner(); |
|
} |
|
|
|
K_EXPORT_PLUGIN_VERSION(KWIN_PLUGIN_API_VERSION) |
|
|
|
#include "main.moc"
|
|
|