UPowerGlib.HistoryItem¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class UPowerGlib.HistoryItem(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
UPowerGlib.HistoryItem
object.- Return type:
New in version 0.9.0.
- get_state()¶
- Return type:
Gets the item state.
New in version 0.9.0.
- set_from_string(text)¶
-
Converts the history item to a string representation.
New in version 0.9.1.
- set_state(state)¶
- Parameters:
state (
UPowerGlib.DeviceState
) – the new value
Sets the item state.
New in version 0.9.0.
- set_time_to_present()¶
Sets the item time to the present value.
New in version 0.9.1.
Property Details¶
- UPowerGlib.HistoryItem.props.state¶
-
New in version 0.9.0.
- UPowerGlib.HistoryItem.props.time¶
-
New in version 0.9.0.