/* SPDX-FileCopyrightText: 2009 Ben Cooksley SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef SOLIDACTIONDATA_H #define SOLIDACTIONDATA_H #include #include #include #include class SolidActionData : public QObject { Q_OBJECT public: QList propertyList(Solid::DeviceInterface::Type devInterface); QList propertyInternalList(Solid::DeviceInterface::Type devInterface); QString propertyInternal(Solid::DeviceInterface::Type devInterface, QString property); QString propertyName(Solid::DeviceInterface::Type devInterface, QString property); int propertyPosition(Solid::DeviceInterface::Type devInterface, QString property); QList interfaceList(); QList interfaceTypeList(); Solid::DeviceInterface::Type interfaceFromName(const QString &name); QString nameFromInterface(Solid::DeviceInterface::Type devInterface); int interfacePosition(Solid::DeviceInterface::Type devInterface); static SolidActionData *instance(); private: SolidActionData(bool includeFiles); QString generateUserString(QString className); QList fillInterfaceList(); QMap> values; QMap types; }; #endif