Libksysguard

SensorsPlugin.cpp
1/*
2 SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "SensorsPlugin.h"
8
9#include "Sensor.h"
10#include "SensorDataModel.h"
11#include "SensorTreeModel.h"
12#include "SensorUnitModel.h"
13
14#include <QQmlEngine>
15
16using namespace KSysGuard;
17
18void SensorsPlugin::registerTypes(const char *uri)
19{
20 Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.ksysguard.sensors"));
21
22 qmlRegisterType<SensorDataModel>(uri, 1, 0, "SensorDataModel");
23 qmlRegisterType<SensorTreeModel>(uri, 1, 0, "SensorTreeModel");
24 qmlRegisterType<Sensor>(uri, 1, 0, "Sensor");
25 qmlRegisterType<SensorUnitModel>(uri, 1, 0, "SensorUnitModel");
26}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:23 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.