File indexing completed on 2024-04-21 04:44:14
0001 /* 0002 SPDX-FileCopyrightText: 2015 (c) Matthieu Gallien <matthieu_gallien@yahoo.fr> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef UPNPSTATEVARIABLEDESCRIPTION_H 0008 #define UPNPSTATEVARIABLEDESCRIPTION_H 0009 0010 #include "upnplibqt_export.h" 0011 0012 #include <QByteArray> 0013 #include <QString> 0014 #include <QVariant> 0015 #include <QVector> 0016 0017 class QObject; 0018 0019 /** 0020 * @brief The UpnpStateVariableDescription class provides tyhe description of a state variable of an UPnP service. 0021 * 0022 * A service can provides a number of state variables given information about the state of the service. The class \class UpnpStateVariableDescription documents all properties about one state variable. 0023 */ 0024 class UPNPLIBQT_EXPORT UpnpStateVariableDescription 0025 { 0026 public: 0027 UpnpStateVariableDescription(); 0028 0029 bool mIsValid{false}; 0030 0031 QString mUpnpName; 0032 0033 QObject *mObject{nullptr}; 0034 0035 QByteArray mPropertyName; 0036 0037 int mPropertyIndex{-1}; 0038 0039 bool mEvented{false}; 0040 0041 QString mDataType; 0042 0043 QVariant mDefaultValue; 0044 0045 QVariant mMinimumValue; 0046 0047 QVariant mMaximumValue; 0048 0049 QVariant mStep; 0050 0051 QVector<QString> mValueList; 0052 }; 0053 0054 #endif // UPNPSTATEVARIABLEDESCRIPTION_H