File indexing completed on 2024-05-05 05:34:36

0001 /*
0002     SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "SensorsPlugin.h"
0008 
0009 #include "Sensor.h"
0010 #include "SensorDataModel.h"
0011 #include "SensorTreeModel.h"
0012 #include "SensorUnitModel.h"
0013 
0014 #include <QQmlEngine>
0015 
0016 using namespace KSysGuard;
0017 
0018 void SensorsPlugin::registerTypes(const char *uri)
0019 {
0020     Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.ksysguard.sensors"));
0021 
0022     qmlRegisterType<SensorDataModel>(uri, 1, 0, "SensorDataModel");
0023     qmlRegisterType<SensorTreeModel>(uri, 1, 0, "SensorTreeModel");
0024     qmlRegisterType<Sensor>(uri, 1, 0, "Sensor");
0025     qmlRegisterType<SensorUnitModel>(uri, 1, 0, "SensorUnitModel");
0026 }