Top |
const gchar * | up_device_kind_to_string () |
const gchar * | up_device_state_to_string () |
const gchar * | up_device_technology_to_string () |
const gchar * | up_device_level_to_string () |
UpDeviceKind | up_device_kind_from_string () |
UpDeviceState | up_device_state_from_string () |
UpDeviceTechnology | up_device_technology_from_string () |
UpDeviceLevel | up_device_level_from_string () |
These helper functions provide a way to marshal enumerated values to text and back again.
const gchar *
up_device_kind_to_string (UpDeviceKind type_enum
);
Converts a UpDeviceKind to a string.
Since: 0.9.0
const gchar *
up_device_state_to_string (UpDeviceState state_enum
);
Converts a UpDeviceState to a string.
Since: 0.9.0
const gchar *
up_device_technology_to_string (UpDeviceTechnology technology_enum
);
Converts a UpDeviceTechnology to a string.
Since: 0.9.0
const gchar *
up_device_level_to_string (UpDeviceLevel level_enum
);
Converts a UpDeviceLevel to a string.
Since: 1.0
UpDeviceKind
up_device_kind_from_string (const gchar *type
);
Converts a string to a UpDeviceKind.
Since: 0.9.0
UpDeviceState
up_device_state_from_string (const gchar *state
);
Converts a string to a UpDeviceState.
Since: 0.9.0
UpDeviceTechnology
up_device_technology_from_string (const gchar *technology
);
Converts a string to a UpDeviceTechnology.
Since: 0.9.0
UpDeviceLevel
up_device_level_from_string (const gchar *level
);
Converts a string to a UpDeviceLevel.
Since: 1.0
The level of a battery. Only values up to, and including
UP_DEVICE_LEVEL_ACTION
are relevant for the WarningLevel.
The BatteryLevel only uses the following values: