File indexing completed on 2024-11-10 04:57:01

0001 /*
0002     SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "main.h"
0008 #include "windowsrunnerinterface.h"
0009 
0010 #include <KPluginFactory>
0011 
0012 using namespace KWin;
0013 
0014 class KWIN_EXPORT KRunnerIntegrationFactory : public PluginFactory
0015 {
0016     Q_OBJECT
0017     Q_PLUGIN_METADATA(IID PluginFactory_iid FILE "metadata.json")
0018     Q_INTERFACES(KWin::PluginFactory)
0019 
0020 public:
0021     explicit KRunnerIntegrationFactory() = default;
0022 
0023     std::unique_ptr<Plugin> create() const override;
0024 };
0025 
0026 std::unique_ptr<Plugin> KRunnerIntegrationFactory::create() const
0027 {
0028     return std::make_unique<WindowsRunner>();
0029 }
0030 
0031 #include "main.moc"