![]() |
![]() |
![]() |
UPower Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
typedef UpStatsItemPrivate; UpStatsItem * up_stats_item_new (void); gdouble up_stats_item_get_value (UpStatsItem *stats_item); void up_stats_item_set_value (UpStatsItem *stats_item, gdouble value); gdouble up_stats_item_get_accuracy (UpStatsItem *stats_item); void up_stats_item_set_accuracy (UpStatsItem *stats_item, gdouble accuracy);
This object represents one item of data which may be returned from the daemon in response to a query.
See also: UpDevice, UpClient
UpStatsItem * up_stats_item_new (void);
Returns : |
a new UpStatsItem object. |
Since 0.9.0
gdouble up_stats_item_get_value (UpStatsItem *stats_item);
Gets the item value.
Since 0.9.0
void up_stats_item_set_value (UpStatsItem *stats_item, gdouble value);
Sets the item value.
Since 0.9.0
gdouble up_stats_item_get_accuracy (UpStatsItem *stats_item);
Gets the item accuracy.
Since 0.9.0
void up_stats_item_set_accuracy (UpStatsItem *stats_item, gdouble accuracy);
Sets the item accuracy.
Since 0.9.0