10#include <KConfigLoader>
11#include <KConfigPropertyMap>
12#include <KLocalizedContext>
13#include <KPackage/PackageLoader>
16#include <QStandardItemModel>
20#include "sensorfaces_export.h"
26class SensorFaceController;
34 enum AdditionalRoles {
40 ~FacesModel()
override =
default;
52 enum AdditionalRoles { PluginIdRole =
Qt::UserRole + 1, ConfigRole, WritableRole };
56 ~PresetsModel()
override =
default;
63struct SensorResolver {
64 SensorResolver(SensorFaceController *_controller,
const QJsonArray &_expected);
67 SensorFaceController *controller =
nullptr;
75 std::function<void(SensorResolver *)> callback;
79class SENSORFACES_EXPORT SensorFaceControllerPrivate
82 SensorFaceControllerPrivate();
88 void resolveSensors(
const QJsonArray &partialEntries, std::function<
void(SensorResolver *)>);
89 SensorFace *createGui(
const QString &qmlPath);
90 QQuickItem *createConfigUi(
const QString &file,
const QVariantMap &initialProperties);
92 SensorFaceController *q;
101 bool configNeedsSave =
false;
122 bool shouldSync =
true;
123 FacesModel *availableFacesModel =
nullptr;
124 PresetsModel *availablePresetsModel =
nullptr;
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:48 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.