mirror of https://github.com/nymea/nymea.git
360 lines
14 KiB
Plaintext
360 lines
14 KiB
Plaintext
/*!
|
|
\page typeutils.h
|
|
\title Type Utils
|
|
|
|
\chapter Types::StateOperator
|
|
\table
|
|
\header
|
|
\li Constant
|
|
\li Value
|
|
\li Description
|
|
\row
|
|
\li Types::StateOperatorAnd
|
|
\li 0
|
|
\li The logical AND \tt & operator for two \l{State}{States}
|
|
\row
|
|
\li Types::StateOperatorOr
|
|
\li 1
|
|
\li The logical OR \tt | operator for two \l{State}{States}
|
|
\endtable
|
|
|
|
\chapter Types::ValueOperator
|
|
\table
|
|
\header
|
|
\li Constant
|
|
\li Value
|
|
\li Description
|
|
\row
|
|
\li Types::ValueOperatorEquals
|
|
\li 0
|
|
\li The \tt = operator to compare two \a values of a \l{Param}.
|
|
\row
|
|
\li Types::ValueOperatorNotEquals
|
|
\li 1
|
|
\li The \tt != operator to compare two \a values of a \l{Param}.
|
|
\row
|
|
\li Types::ValueOperatorLess
|
|
\li 2
|
|
\li The \tt < operator to compare two \a values of a \l{Param}.
|
|
\row
|
|
\li Types::ValueOperatorGreater
|
|
\li 3
|
|
\li The \tt > operator to compare two \a values of a \l{Param}.
|
|
\row
|
|
\li Types::ValueOperatorLessOrEqual
|
|
\li 4
|
|
\li The \tt <= operator to compare two \a values of a \l{Param}.
|
|
\row
|
|
\li Types::ValueOperatorGreaterOrEqual
|
|
\li 5
|
|
\li The \tt >= operator to compare two \a values of a \l{Param}.
|
|
\endtable
|
|
|
|
|
|
\chapter Types::InputType
|
|
\table
|
|
\header
|
|
\li Constant
|
|
\li Value
|
|
\li Description
|
|
\row
|
|
\li Types::InputTypeNone
|
|
\li 0
|
|
\li The \l{ParamType} has no \l{Types::InputType}{InputType}
|
|
\row
|
|
\li Types::InputTypeTextLine
|
|
\li 1
|
|
\li The \l{ParamType} suggests a string text line as \l{Types::InputType}{InputType}
|
|
\row
|
|
\li Types::InputTypeTextArea
|
|
\li 2
|
|
\li The \l{ParamType} suggests a string text area as \l{Types::InputType}{InputType}
|
|
\row
|
|
\li Types::InputTypePassword
|
|
\li 3
|
|
\li The \l{ParamType} indicates that this is a password \l{Types::InputType}{InputType}. Maby the characters should be covered.
|
|
\row
|
|
\li Types::InputTypeSearch
|
|
\li 4
|
|
\li The \l{ParamType} indicates that this is a search \l{Types::InputType}{InputType}.
|
|
\row
|
|
\li Types::InputTypeMail
|
|
\li 5
|
|
\li The \l{ParamType} indicates that a mail address is requested as \l{Types::InputType}{InputType}.
|
|
\row
|
|
\li Types::InputTypeIPv4Address
|
|
\li 6
|
|
\li The \l{ParamType} indicates that a IPv4 address is requested as \l{Types::InputType}{InputType}.
|
|
\row
|
|
\li Types::InputTypeIPv6Address
|
|
\li 7
|
|
\li The \l{ParamType} indicates that a IPv6 address is requested as \l{Types::InputType}{InputType}.
|
|
\row
|
|
\li Types::InputTypeUrl
|
|
\li 8
|
|
\li The \l{ParamType} indicates that a URL is requested as \l{Types::InputType}{InputType}.
|
|
\row
|
|
\li Types::InputTypeMacAddress
|
|
\li 9
|
|
\li The \l{ParamType} indicates that a MAC hardware address is requested as \l{Types::InputType}{InputType}.
|
|
\endtable
|
|
|
|
\chapter Types::Unit
|
|
\table
|
|
\header
|
|
\li Constant
|
|
\li Value
|
|
\li Description
|
|
\row
|
|
\li Types::UnitNone
|
|
\li 0
|
|
\li The value of the \l{Param} has no unit.
|
|
\row
|
|
\li Types::UnitSeconds
|
|
\li 1
|
|
\li The value of the \l{Param} has unit \tt [s] \unicode{0x2192} seconds.
|
|
\row
|
|
\li Types::UnitMinutes
|
|
\li 2
|
|
\li The value of the \l{Param} has unit \tt [min] \unicode{0x2192} minutes.
|
|
\row
|
|
\li Types::UnitHours
|
|
\li 3
|
|
\li The value of the \l{Param} has unit \tt [h] \unicode{0x2192} hours.
|
|
\row
|
|
\li Types::UnitUnixTime
|
|
\li 4
|
|
\li The value of the \l{Param} has unit \tt [s] \unicode{0x2192} seconds since epoch.
|
|
\row
|
|
\li Types::UnitMeterPerSecond
|
|
\li 5
|
|
\li The value of the \l{Param} has unit \tt [m/s] \unicode{0x2192} meters per second.
|
|
\row
|
|
\li Types::UnitKiloMeterPerHour
|
|
\li 6
|
|
\li The value of the \l{Param} has unit \tt [km/h] \unicode{0x2192} kilo meters per hour.
|
|
\row
|
|
\li Types::UnitDegree
|
|
\li 7
|
|
\li The value of the \l{Param} has unit \tt {[\unicode{0x00B0}]} \unicode{0x2192} degree.
|
|
\row
|
|
\li Types::UnitRadiant
|
|
\li 8
|
|
\li The value of the \l{Param} has unit \tt [rad] \unicode{0x2192} radiant.
|
|
\row
|
|
\li Types::UnitDegreeCelsius
|
|
\li 9
|
|
\li The value of the \l{Param} has unit \tt {[\unicode{0x00B0}C]} \unicode{0x2192} degree celsius.
|
|
\row
|
|
\li Types::UnitDegreeKelvin
|
|
\li 10
|
|
\li The value of the \l{Param} has unit \tt {[\unicode{0x00B0}K]} \unicode{0x2192} kelvin.
|
|
\row
|
|
\li Types::UnitMired
|
|
\li 11
|
|
\li The value of the \l{Param} has unit \tt {[mir]} \unicode{0x2192} mired.
|
|
\row
|
|
\li Types::UnitMilliBar
|
|
\li 12
|
|
\li The value of the \l{Param} has unit \tt {[mbar]} \unicode{0x2192} milli bar.
|
|
\row
|
|
\li Types::UnitBar
|
|
\li 13
|
|
\li The value of the \l{Param} has unit \tt {[bar]} \unicode{0x2192} bar.
|
|
\row
|
|
\li Types::UnitPascal
|
|
\li 14
|
|
\li The value of the \l{Param} has unit \tt {[Pa]} \unicode{0x2192} pascal.
|
|
\row
|
|
\li Types::UnitHectoPascal
|
|
\li 15
|
|
\li The value of the \l{Param} has unit \tt {[hPa]} \unicode{0x2192} hecto pascal.
|
|
\row
|
|
\li Types::UnitAtmosphere
|
|
\li 16
|
|
\li The value of the \l{Param} has unit \tt {[atm]} \unicode{0x2192} atmosphere.
|
|
\row
|
|
\li Types::UnitLumen
|
|
\li 17
|
|
\li The value of the \l{Param} has unit \tt {[lm]} \unicode{0x2192} lumen.
|
|
\row
|
|
\li Types::UnitLux
|
|
\li 18
|
|
\li The value of the \l{Param} has unit \tt {[lx]} \unicode{0x2192} lux.
|
|
\row
|
|
\li Types::UnitCandela
|
|
\li 19
|
|
\li The value of the \l{Param} has unit \tt {[cd]} \unicode{0x2192} candela.
|
|
\row
|
|
\li Types::UnitMilliMeter
|
|
\li 20
|
|
\li The value of the \l{Param} has unit \tt {[mm]} \unicode{0x2192} milli meter.
|
|
\row
|
|
\li Types::UnitCentiMeter
|
|
\li 21
|
|
\li The value of the \l{Param} has unit \tt {[cm]} \unicode{0x2192} centi meter.
|
|
\row
|
|
\li Types::UnitMeter
|
|
\li 22
|
|
\li The value of the \l{Param} has unit \tt {[m]} \unicode{0x2192} meter.
|
|
\row
|
|
\li Types::UnitKiloMeter
|
|
\li 23
|
|
\li The value of the \l{Param} has unit \tt {[km]} \unicode{0x2192} kilo meter.
|
|
\row
|
|
\li Types::UnitGram
|
|
\li 24
|
|
\li The value of the \l{Param} has unit \tt {[g]} \unicode{0x2192} gram.
|
|
\row
|
|
\li Types::UnitKiloGram
|
|
\li 25
|
|
\li The value of the \l{Param} has unit \tt {[gg]} \unicode{0x2192} kilo gram.
|
|
\row
|
|
\li Types::UnitDezibel
|
|
\li 26
|
|
\li The value of the \l{Param} has unit \tt {[db]} \unicode{0x2192} dezibel.
|
|
\row
|
|
\li Types::UnitBpm
|
|
\li 27
|
|
\li The value of the \l{Param} has unit \tt {[bpm]} \unicode{0x2192} beats per minute.
|
|
\row
|
|
\li Types::UnitKiloByte
|
|
\li 28
|
|
\li The value of the \l{Param} has unit \tt {[kB]} \unicode{0x2192} kilo byte.
|
|
\row
|
|
\li Types::UnitMegaByte
|
|
\li 29
|
|
\li The value of the \l{Param} has unit \tt {[MB]} \unicode{0x2192} mega byte.
|
|
\row
|
|
\li Types::UnitGigaByte
|
|
\li 30
|
|
\li The value of the \l{Param} has unit \tt {[GB]} \unicode{0x2192} giga byte.
|
|
\row
|
|
\li Types::UnitTeraByte
|
|
\li 31
|
|
\li The value of the \l{Param} has unit \tt {[TB]} \unicode{0x2192} tera byte.
|
|
\row
|
|
\li Types::UnitMilliWatt
|
|
\li 32
|
|
\li The value of the \l{Param} has unit \tt {[mW]} \unicode{0x2192} milli watt.
|
|
\row
|
|
\li Types::UnitWatt
|
|
\li 33
|
|
\li The value of the \l{Param} has unit \tt {[W]} \unicode{0x2192} watt.
|
|
\row
|
|
\li Types::UnitKiloWatt
|
|
\li 34
|
|
\li The value of the \l{Param} has unit \tt {[kW]} \unicode{0x2192} kilo watt.
|
|
\row
|
|
\li Types::UnitKiloWattHour
|
|
\li 35
|
|
\li The value of the \l{Param} has unit \tt {[kWh]} \unicode{0x2192} kilo watt hour.
|
|
\row
|
|
\li Types::UnitEuroPerMegaWattHour
|
|
\li 36
|
|
\li The value of the \l{Param} has unit \tt {[€/MWh]} \unicode{0x2192} euro per mega watt hour.
|
|
\row
|
|
\li Types::UnitPercentage
|
|
\li 37
|
|
\li The value of the \l{Param} has unit \tt {[\%]} \unicode{0x2192} percentage.
|
|
\row
|
|
\li Types::UnitPartsPerMillion
|
|
\li 38
|
|
\li The value of the \l{Param} has unit \tt {[ppm]} \unicode{0x2192} parts per million.
|
|
\row
|
|
\li Types::UnitEuro
|
|
\li 39
|
|
\li The value of the \l{Param} has unit \tt {[€]} \unicode{0x2192} euro.
|
|
\row
|
|
\li Types::UnitDollar
|
|
\li 40
|
|
\li The value of the \l{Param} has unit \tt {[\$]} \unicode{0x2192} dollar.
|
|
\row
|
|
\li Types::UnitHertz
|
|
\li 41
|
|
\li The value of the \l{Param} has unit \tt {[Hz]} \unicode{0x2192} herz.
|
|
\row
|
|
\li Types::UnitAmpere
|
|
\li 42
|
|
\li The value of the \l{Param} has unit \tt {[A]} \unicode{0x2192} ampere.
|
|
\row
|
|
\li Types::UnitMilliAmpere
|
|
\li 43
|
|
\li The value of the \l{Param} has unit \tt {[mA]} \unicode{0x2192} milli ampere.
|
|
\row
|
|
\li Types::UnitVolt
|
|
\li 44
|
|
\li The value of the \l{Param} has unit \tt {[V]} \unicode{0x2192} volt.
|
|
\row
|
|
\li Types::UnitMilliVolt
|
|
\li 45
|
|
\li The value of the \l{Param} has unit \tt {[mV]} \unicode{0x2192} milli volt.
|
|
\row
|
|
\li Types::UnitVoltAmpere
|
|
\li 46
|
|
\li The value of the \l{Param} has unit \tt {[VA]} \unicode{0x2192} volt ampere.
|
|
\row
|
|
\li Types::UnitVoltAmpereReactive
|
|
\li 47
|
|
\li The value of the \l{Param} has unit \tt {[var]} \unicode{0x2192} volt-ampere reactive.
|
|
\row
|
|
\li Types::UnitAmpereHour
|
|
\li 48
|
|
\li The value of the \l{Param} has unit \tt {[Ah]} \unicode{0x2192} ampere hour.
|
|
\row
|
|
\li Types::UnitMicroSiemensPerCentimeter
|
|
\li 49
|
|
\li The value of the \l{Param} has unit \tt {[μS/cm]} \unicode{0x2192} microsiemens per centimeter (conductivity).
|
|
\row
|
|
\li Types::UnitDuration
|
|
\li 50
|
|
\li The value of the \l{Param} has unit \tt {[ms]} \unicode{0x2192} milliseconds and represents a duration.
|
|
\endtable
|
|
|
|
\chapter UUID Types
|
|
|
|
\section2 PluginId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{DevicePlugin}.
|
|
|
|
\section2 VendorId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{Vendor}.
|
|
|
|
\section2 ParamTypeId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{ParamType}.
|
|
|
|
\section2 DeviceClassId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{DeviceClass}.
|
|
|
|
\section2 DeviceId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{Device}.
|
|
|
|
\section2 DeviceDescriptorId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{DeviceDescriptor}.
|
|
|
|
\section2 EventTypeId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{EventType}.
|
|
|
|
\section2 EventId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{Event}.
|
|
|
|
\section2 StateTypeId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{StateType}.
|
|
|
|
\section2 StateId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{State}.
|
|
|
|
\section2 ActionTypeId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{ActionType}.
|
|
|
|
\section2 ActionId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{Action} and \l{RuleAction}.
|
|
|
|
\section2 RuleId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a \l{nymeaserver::Rule}.
|
|
|
|
\section2 PairingTransactionId
|
|
This class is a subclass of \l{http://doc.qt.io/qt-5/quuid.html}{QUuid} and represents the \e id of a pairing transaction.
|
|
|
|
*/
|
|
|