3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-12 02:05:54 +00:00
Brooklyn/plasma/kcms/solid_actions/SolidActionData.h
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

45 lines
1.4 KiB
C++

/*
SPDX-FileCopyrightText: 2009 Ben Cooksley <ben@eclipse.endoftheinternet.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef SOLIDACTIONDATA_H
#define SOLIDACTIONDATA_H
#include <QMap>
#include <QObject>
#include <QString>
#include <Solid/DeviceInterface>
class SolidActionData : public QObject
{
Q_OBJECT
public:
QList<QString> propertyList(Solid::DeviceInterface::Type devInterface);
QList<QString> 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<QString> interfaceList();
QList<Solid::DeviceInterface::Type> 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<QMetaObject> fillInterfaceList();
QMap<Solid::DeviceInterface::Type, QMap<QString, QString>> values;
QMap<Solid::DeviceInterface::Type, QString> types;
};
#endif