8
8
<link rel="up" href="libupower-glib.html" title="libupower-glib GObjects">
9
9
<link rel="prev" href="UPower-up-device.html" title="up-device">
10
10
<link rel="next" href="UPower-up-qos-item.html" title="up-qos-item">
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
38
38
<div class="refsynopsisdiv" title="Synopsis">
39
39
<a name="UPower-up-history-item.synopsis"></a><h2>Synopsis</h2>
40
40
<pre class="synopsis">typedef <a class="link" href="UPower-up-history-item.html#UpHistoryItemPrivate" title="UpHistoryItemPrivate">UpHistoryItemPrivate</a>;
41
<span class="returnvalue">UpHistoryItem</span> * <a class="link" href="UPower-up-history-item.html#up-history-item-new" title="up_history_item_new ()">up_history_item_new</a> (void);
42
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="UPower-up-history-item.html#up-history-item-get-value" title="up_history_item_get_value ()">up_history_item_get_value</a> (<span class="returnvalue">UpHistoryItem</span> *history_item);
43
<span class="returnvalue">void</span> <a class="link" href="UPower-up-history-item.html#up-history-item-set-value" title="up_history_item_set_value ()">up_history_item_set_value</a> (<span class="returnvalue">UpHistoryItem</span> *history_item,
44
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> value);
45
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="UPower-up-history-item.html#up-history-item-get-time" title="up_history_item_get_time ()">up_history_item_get_time</a> (<span class="returnvalue">UpHistoryItem</span> *history_item);
46
<span class="returnvalue">void</span> <a class="link" href="UPower-up-history-item.html#up-history-item-set-time" title="up_history_item_set_time ()">up_history_item_set_time</a> (<span class="returnvalue">UpHistoryItem</span> *history_item,
47
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> time);
48
<a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="returnvalue">UpDeviceState</span></a> <a class="link" href="UPower-up-history-item.html#up-history-item-get-state" title="up_history_item_get_state ()">up_history_item_get_state</a> (<span class="returnvalue">UpHistoryItem</span> *history_item);
49
<span class="returnvalue">void</span> <a class="link" href="UPower-up-history-item.html#up-history-item-set-state" title="up_history_item_set_state ()">up_history_item_set_state</a> (<span class="returnvalue">UpHistoryItem</span> *history_item,
50
<a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="returnvalue">UpDeviceState</span></a> state);
41
<span class="returnvalue">UpHistoryItem</span> * <a class="link" href="UPower-up-history-item.html#up-history-item-new" title="up_history_item_new ()">up_history_item_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
42
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> <a class="link" href="UPower-up-history-item.html#up-history-item-get-value" title="up_history_item_get_value ()">up_history_item_get_value</a> (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>);
43
<span class="returnvalue">void</span> <a class="link" href="UPower-up-history-item.html#up-history-item-set-value" title="up_history_item_set_value ()">up_history_item_set_value</a> (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>,
44
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);
45
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="UPower-up-history-item.html#up-history-item-get-time" title="up_history_item_get_time ()">up_history_item_get_time</a> (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>);
46
<span class="returnvalue">void</span> <a class="link" href="UPower-up-history-item.html#up-history-item-set-time" title="up_history_item_set_time ()">up_history_item_set_time</a> (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>,
47
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> time</code></em>);
48
<a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="returnvalue">UpDeviceState</span></a> <a class="link" href="UPower-up-history-item.html#up-history-item-get-state" title="up_history_item_get_state ()">up_history_item_get_state</a> (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>);
49
<span class="returnvalue">void</span> <a class="link" href="UPower-up-history-item.html#up-history-item-set-state" title="up_history_item_set_state ()">up_history_item_set_state</a> (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>,
50
<em class="parameter"><code><a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="type">UpDeviceState</span></a> state</code></em>);
53
53
<div class="refsect1" title="Description">
57
57
daemon in response to a query.
60
See also: <span class="type">UpDevice</span>, <span class="type">UpClient</span></p>
60
See also: <span class="type">UpDevice</span>, <span class="type">UpClient</span>
62
63
<div class="refsect1" title="Details">
63
64
<a name="UPower-up-history-item.details"></a><h2>Details</h2>
70
71
<div class="refsect2" title="up_history_item_new ()">
71
72
<a name="up-history-item-new"></a><h3>up_history_item_new ()</h3>
72
<pre class="programlisting"><span class="returnvalue">UpHistoryItem</span> * up_history_item_new (void);</pre>
73
<pre class="programlisting"><span class="returnvalue">UpHistoryItem</span> * up_history_item_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
73
74
<div class="variablelist"><table border="0">
74
75
<col align="left" valign="top">
85
86
<div class="refsect2" title="up_history_item_get_value ()">
86
87
<a name="up-history-item-get-value"></a><h3>up_history_item_get_value ()</h3>
87
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> up_history_item_get_value (<span class="returnvalue">UpHistoryItem</span> *history_item);</pre>
88
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> up_history_item_get_value (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>);</pre>
89
Gets the item value.</p>
90
92
<div class="variablelist"><table border="0">
91
93
<col align="left" valign="top">
93
95
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
94
<td> <span class="type">UpHistoryItem</span>
97
<span class="type">UpHistoryItem</span>
101
104
<div class="refsect2" title="up_history_item_set_value ()">
102
105
<a name="up-history-item-set-value"></a><h3>up_history_item_set_value ()</h3>
103
<pre class="programlisting"><span class="returnvalue">void</span> up_history_item_set_value (<span class="returnvalue">UpHistoryItem</span> *history_item,
104
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a> value);</pre>
106
<pre class="programlisting"><span class="returnvalue">void</span> up_history_item_set_value (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>,
107
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
106
Sets the item value.</p>
107
111
<div class="variablelist"><table border="0">
108
112
<col align="left" valign="top">
111
115
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
112
<td> <span class="type">UpHistoryItem</span>
117
<span class="type">UpHistoryItem</span>
116
121
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
125
130
<div class="refsect2" title="up_history_item_get_time ()">
126
131
<a name="up-history-item-get-time"></a><h3>up_history_item_get_time ()</h3>
127
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> up_history_item_get_time (<span class="returnvalue">UpHistoryItem</span> *history_item);</pre>
132
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> up_history_item_get_time (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>);</pre>
129
Gets the item time.</p>
130
136
<div class="variablelist"><table border="0">
131
137
<col align="left" valign="top">
133
139
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
134
<td> <span class="type">UpHistoryItem</span>
141
<span class="type">UpHistoryItem</span>
141
148
<div class="refsect2" title="up_history_item_set_time ()">
142
149
<a name="up-history-item-set-time"></a><h3>up_history_item_set_time ()</h3>
143
<pre class="programlisting"><span class="returnvalue">void</span> up_history_item_set_time (<span class="returnvalue">UpHistoryItem</span> *history_item,
144
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> time);</pre>
150
<pre class="programlisting"><span class="returnvalue">void</span> up_history_item_set_time (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>,
151
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> time</code></em>);</pre>
146
Sets the item time.</p>
147
155
<div class="variablelist"><table border="0">
148
156
<col align="left" valign="top">
151
159
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
152
<td> <span class="type">UpHistoryItem</span>
161
<span class="type">UpHistoryItem</span>
156
165
<td><p><span class="term"><em class="parameter"><code>time</code></em> :</span></p></td>
165
174
<div class="refsect2" title="up_history_item_get_state ()">
166
175
<a name="up-history-item-get-state"></a><h3>up_history_item_get_state ()</h3>
167
<pre class="programlisting"><a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="returnvalue">UpDeviceState</span></a> up_history_item_get_state (<span class="returnvalue">UpHistoryItem</span> *history_item);</pre>
176
<pre class="programlisting"><a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="returnvalue">UpDeviceState</span></a> up_history_item_get_state (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>);</pre>
169
Gets the item state.</p>
170
180
<div class="variablelist"><table border="0">
171
181
<col align="left" valign="top">
173
183
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
174
<td> <span class="type">UpHistoryItem</span>
185
<span class="type">UpHistoryItem</span>
181
192
<div class="refsect2" title="up_history_item_set_state ()">
182
193
<a name="up-history-item-set-state"></a><h3>up_history_item_set_state ()</h3>
183
<pre class="programlisting"><span class="returnvalue">void</span> up_history_item_set_state (<span class="returnvalue">UpHistoryItem</span> *history_item,
184
<a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="returnvalue">UpDeviceState</span></a> state);</pre>
194
<pre class="programlisting"><span class="returnvalue">void</span> up_history_item_set_state (<em class="parameter"><code><span class="type">UpHistoryItem</span> *history_item</code></em>,
195
<em class="parameter"><code><a class="link" href="UPower-up-types.html#UpDeviceState" title="enum UpDeviceState"><span class="type">UpDeviceState</span></a> state</code></em>);</pre>
186
Sets the item state.</p>
187
199
<div class="variablelist"><table border="0">
188
200
<col align="left" valign="top">
191
203
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
192
<td> <span class="type">UpHistoryItem</span>
205
<span class="type">UpHistoryItem</span>
196
209
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>