1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>up-stats-item</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="UPower Reference Manual">
8
<link rel="up" href="libupower-glib.html" title="libpackagekit GObjects">
9
<link rel="prev" href="UPower-up-qos-item.html" title="up-qos-item">
10
<link rel="next" href="UPower-up-wakeup-item.html" title="up-wakeup-item">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="reference" href="ref-dbus.html" title="D-Bus API Reference">
14
<link rel="reference" href="libupower-glib.html" title="libpackagekit GObjects">
15
<link rel="reference" href="libupower-glib-helpers.html" title="libupower-glib helpers">
16
<link rel="reference" href="tools-fileformats.html" title="Manual Pages">
17
<link rel="index" href="ix01.html" title="Index">
18
<link rel="appendix" href="license.html" title="Appendix A. License">
20
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
21
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
23
<td><a accesskey="p" href="UPower-up-qos-item.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
24
<td><a accesskey="u" href="libupower-glib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
25
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
26
<th width="100%" align="center">UPower Reference Manual</th>
27
<td><a accesskey="n" href="UPower-up-wakeup-item.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
29
<tr><td colspan="5" class="shortcuts">
30
<a href="#UPower-up-stats-item.synopsis" class="shortcut">Top</a>
32
<a href="#UPower-up-stats-item.description" class="shortcut">Description</a>
35
<div class="refentry" title="up-stats-item">
36
<a name="UPower-up-stats-item"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="UPower-up-stats-item.top_of_page"></a>up-stats-item</span></h2>
40
<p>up-stats-item — Helper object representing one item of statistics data.</p>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv" title="Synopsis">
45
<a name="UPower-up-stats-item.synopsis"></a><h2>Synopsis</h2>
46
<pre class="synopsis">
47
typedef <a class="link" href="UPower-up-stats-item.html#UpStatsItemPrivate" title="UpStatsItemPrivate">UpStatsItemPrivate</a>;
48
UpStatsItem * <a class="link" href="UPower-up-stats-item.html#up-stats-item-new" title="up_stats_item_new ()">up_stats_item_new</a> (void);
50
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
51
>gdouble</a> <a class="link" href="UPower-up-stats-item.html#up-stats-item-get-value" title="up_stats_item_get_value ()">up_stats_item_get_value</a> (UpStatsItem *stats_item);
52
void <a class="link" href="UPower-up-stats-item.html#up-stats-item-set-value" title="up_stats_item_set_value ()">up_stats_item_set_value</a> (UpStatsItem *stats_item,
54
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
57
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
58
>gdouble</a> <a class="link" href="UPower-up-stats-item.html#up-stats-item-get-accuracy" title="up_stats_item_get_accuracy ()">up_stats_item_get_accuracy</a> (UpStatsItem *stats_item);
59
void <a class="link" href="UPower-up-stats-item.html#up-stats-item-set-accuracy" title="up_stats_item_set_accuracy ()">up_stats_item_set_accuracy</a> (UpStatsItem *stats_item,
61
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
62
>gdouble</a> accuracy);
65
<div class="refsect1" title="Description">
66
<a name="UPower-up-stats-item.description"></a><h2>Description</h2>
68
This object represents one item of data which may be returned from the
69
daemon in response to a query.
72
See also: <span class="type">UpDevice</span>, <span class="type">UpClient</span></p>
74
<div class="refsect1" title="Details">
75
<a name="UPower-up-stats-item.details"></a><h2>Details</h2>
76
<div class="refsect2" title="UpStatsItemPrivate">
77
<a name="UpStatsItemPrivate"></a><h3>UpStatsItemPrivate</h3>
78
<pre class="programlisting">typedef struct UpStatsItemPrivate UpStatsItemPrivate;
82
<div class="refsect2" title="up_stats_item_new ()">
83
<a name="up-stats-item-new"></a><h3>up_stats_item_new ()</h3>
84
<pre class="programlisting">UpStatsItem * up_stats_item_new (void);</pre>
87
<div class="variablelist"><table border="0">
88
<col align="left" valign="top">
90
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
91
<td> a new UpStatsItem object.
96
<p class="since">Since 0.9.0</p>
99
<div class="refsect2" title="up_stats_item_get_value ()">
100
<a name="up-stats-item-get-value"></a><h3>up_stats_item_get_value ()</h3>
101
<pre class="programlisting"><a
102
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
103
>gdouble</a> up_stats_item_get_value (UpStatsItem *stats_item);</pre>
105
Gets the item value.</p>
106
<p class="since">Since 0.9.0</p>
109
<div class="refsect2" title="up_stats_item_set_value ()">
110
<a name="up-stats-item-set-value"></a><h3>up_stats_item_set_value ()</h3>
111
<pre class="programlisting">void up_stats_item_set_value (UpStatsItem *stats_item,
113
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
114
>gdouble</a> value);</pre>
116
Sets the item value.</p>
117
<p class="since">Since 0.9.0</p>
120
<div class="refsect2" title="up_stats_item_get_accuracy ()">
121
<a name="up-stats-item-get-accuracy"></a><h3>up_stats_item_get_accuracy ()</h3>
122
<pre class="programlisting"><a
123
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
124
>gdouble</a> up_stats_item_get_accuracy (UpStatsItem *stats_item);</pre>
126
Gets the item accuracy.</p>
127
<p class="since">Since 0.9.0</p>
130
<div class="refsect2" title="up_stats_item_set_accuracy ()">
131
<a name="up-stats-item-set-accuracy"></a><h3>up_stats_item_set_accuracy ()</h3>
132
<pre class="programlisting">void up_stats_item_set_accuracy (UpStatsItem *stats_item,
134
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
135
>gdouble</a> accuracy);</pre>
137
Sets the item accuracy.</p>
138
<p class="since">Since 0.9.0</p>
144
Generated by GTK-Doc V1.11</div>