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

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