|
Home2L - C/C++ API v1.4-2-g83f4c (2025-08-23)
Smart Tools for a Private Home
|
Basic definitions for values and their types and state.

Classes | |
| class | CRcValueState |
| Typed value tagged with a state and a time stamp. More... | |
Macros | |
| #define | NO_VALUE_STATE ((CRcValueState *) NULL) |
| Special value meaning "none" for request values, should be used instead of 'NULL'. | |
Enumerations | |
| enum | ERcType { rctNone = 0 , rctBool , rctInt , rctFloat , rctString , rctTime , rctTrigger , rctMutex , rctPercent = rctUnitTypesBase , rctTemp , rctPower , rctUnitTypesEND , rctUseState = rctEnumTypesBase , rctWindowState , rctPhoneState , rctPlayerState , rctEnumTypesEND } |
| Resource major type. More... | |
| enum | ERctUseState { } |
| Use/presence state of the home (for 'rctUseState') More... | |
| enum | ERctWindowState { } |
| Window state (for 'rctWindowState') More... | |
| enum | ERctPhoneState { } |
| Phone state (for 'rctPhoneState') More... | |
| enum | ERctPlayerState { } |
| Music player state (for 'rctPlayerState') More... | |
| enum | ERcState { rcsUnknown = 0 , rcsBusy , rcsValid , rcsNoReport = rcsUnknown } |
| Resource state. More... | |
Functions | |
| ERcType | RcTypeGetBaseType (ERcType t) |
| Return the underlying base type as a unique representative for compatible classes (e.g. rctFloat/rctTemp -> rctFloat) | |
| bool | RcTypeIsStringBased (ERcType t) |
| Return if the base type is 'rctString'; This is the set of types that have dynamic data. | |
| static bool | RcTypeIsUnitType (ERcType t) |
| Return whether the type is a unit type. | |
| const char * | RcTypeGetUnit (ERcType t) |
| Return the unit string; For non-unit types, an empty string is returned. | |
| static bool | RcTypeIsEnumType (ERcType t) |
| Return whether the type is a enumeration type. | |
| int | RcTypeGetEnumValues (ERcType t) |
| Return the number of possible values for an enumeration type. | |
| const char * | RcTypeGetEnumValue (ERcType t, int idx, bool warn=true) |
| Return the value for 'idx' for an enumeration type. Allowed index vaules range from 0 to N-1, where N is the number of possible values. If the index is invalid, "?" is returned and, if 'warn == true', a warning is logged. | |
| int | RcTypeGetEnumIdx (ERcType t, const char *value, bool warn=true) |
| Return the index of some value for an enumeration type. If the 'value' is out of range, -1 is returned and, if 'warn == true', a warning is logged. | |
| enum ERcType |
Resource major type.
Definition at line 278 of file resources.H.
| enum ERctUseState |
Use/presence state of the home (for 'rctUseState')
Definition at line 388 of file resources.H.
| enum ERctWindowState |
Window state (for 'rctWindowState')
| Enumerator | |
|---|---|
| rcvWindowTilted | closed |
| rcvWindowOpen | tilted |
| rcvWindowOpenOrTilted | (wide) open type of opening is not known |
Definition at line 397 of file resources.H.
| enum ERctPhoneState |
Phone state (for 'rctPhoneState')
| Enumerator | |
|---|---|
| rcvPhoneInCall | idle |
| rcvPhoneRinging | in call, including any 'psDialing' and 'psTransfer...' states (anything where a user is actively using the phone) ringing |
Definition at line 406 of file resources.H.
| enum ERctPlayerState |
Music player state (for 'rctPlayerState')
| Enumerator | |
|---|---|
| rcvPlayerPaused | stopped |
| rcvPlayerPlaying | paused playing |
Definition at line 414 of file resources.H.
| enum ERcState |
Resource state.
| Enumerator | |
|---|---|
| rcsUnknown | Value is presently unknown (e.g. outdated). |
| rcsBusy | Devices is busy and/or switching to the value indicated by the associate value. |
| rcsValid | Value is valid. |
| rcsNoReport | Alias to make the 'successState' attribute in CRcEventDriver more intuitive. |
Definition at line 457 of file resources.H.