![]() |
![]() |
![]() |
UPower Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
typedef UpHistoryItemPrivate; UpHistoryItem * up_history_item_new (void
); gdouble up_history_item_get_value (UpHistoryItem *history_item
); void up_history_item_set_value (UpHistoryItem *history_item
,gdouble value
); guint up_history_item_get_time (UpHistoryItem *history_item
); void up_history_item_set_time (UpHistoryItem *history_item
,guint time
); UpDeviceState up_history_item_get_state (UpHistoryItem *history_item
); void up_history_item_set_state (UpHistoryItem *history_item
,UpDeviceState state
);
This object represents one item of data which may be returned from the daemon in response to a query.
See also: UpDevice, UpClient
UpHistoryItem * up_history_item_new (void
);
Returns : |
a new UpHistoryItem object. |
Since 0.9.0
gdouble up_history_item_get_value (UpHistoryItem *history_item
);
Gets the item value.
|
UpHistoryItem |
Returns : |
Since 0.9.0
void up_history_item_set_value (UpHistoryItem *history_item
,gdouble value
);
Sets the item value.
|
UpHistoryItem |
|
the new value |
Since 0.9.0
guint up_history_item_get_time (UpHistoryItem *history_item
);
Gets the item time.
|
UpHistoryItem |
Returns : |
Since 0.9.0
void up_history_item_set_time (UpHistoryItem *history_item
,guint time
);
Sets the item time.
|
UpHistoryItem |
|
the new value |
Since 0.9.0
UpDeviceState up_history_item_get_state (UpHistoryItem *history_item
);
Gets the item state.
|
UpHistoryItem |
Returns : |
Since 0.9.0
void up_history_item_set_state (UpHistoryItem *history_item
,UpDeviceState state
);
Sets the item state.
|
UpHistoryItem |
|
the new value |
Since 0.9.0