File indexing completed on 2025-01-26 05:07:36

0001 /*
0002  * SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #include "nightcolorinhibitor.h"
0008 #include "nightcolormonitor.h"
0009 
0010 #include <QQmlEngine>
0011 #include <QQmlExtensionPlugin>
0012 
0013 class Plugin : public QQmlExtensionPlugin
0014 {
0015     Q_OBJECT
0016     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
0017 
0018 public:
0019     void registerTypes(const char *uri) override
0020     {
0021         qmlRegisterType<NightColorInhibitor>(uri, 1, 0, "NightColorInhibitor");
0022         qmlRegisterType<NightColorMonitor>(uri, 1, 0, "NightColorMonitor");
0023     }
0024 };
0025 
0026 #include "plugin.moc"