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-wakeup-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-stats-item.html" title="up-stats-item">
10
<link rel="next" href="libupower-glib-helpers.html" title="libupower-glib helpers">
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-stats-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="libupower-glib-helpers.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-wakeup-item.synopsis" class="shortcut">Top</a>
32
<a href="#UPower-up-wakeup-item.description" class="shortcut">Description</a>
35
<div class="refentry" title="up-wakeup-item">
36
<a name="UPower-up-wakeup-item"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="UPower-up-wakeup-item.top_of_page"></a>up-wakeup-item</span></h2>
40
<p>up-wakeup-item — Helper object representing one item of wakeup data.</p>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv" title="Synopsis">
45
<a name="UPower-up-wakeup-item.synopsis"></a><h2>Synopsis</h2>
46
<pre class="synopsis">
47
typedef <a class="link" href="UPower-up-wakeup-item.html#UpWakeupItemPrivate" title="UpWakeupItemPrivate">UpWakeupItemPrivate</a>;
48
UpWakeupItem * <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-new" title="up_wakeup_item_new ()">up_wakeup_item_new</a> (void);
50
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
51
>gboolean</a> <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-get-is-userspace" title="up_wakeup_item_get_is_userspace ()">up_wakeup_item_get_is_userspace</a> (UpWakeupItem *wakeup_item);
52
void <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-set-is-userspace" title="up_wakeup_item_set_is_userspace ()">up_wakeup_item_set_is_userspace</a> (UpWakeupItem *wakeup_item,
54
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
55
>gboolean</a> is_userspace);
57
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
58
>guint</a> <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-get-id" title="up_wakeup_item_get_id ()">up_wakeup_item_get_id</a> (UpWakeupItem *wakeup_item);
59
void <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-set-id" title="up_wakeup_item_set_id ()">up_wakeup_item_set_id</a> (UpWakeupItem *wakeup_item,
61
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
64
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
65
>guint</a> <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-get-old" title="up_wakeup_item_get_old ()">up_wakeup_item_get_old</a> (UpWakeupItem *wakeup_item);
66
void <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-set-old" title="up_wakeup_item_set_old ()">up_wakeup_item_set_old</a> (UpWakeupItem *wakeup_item,
68
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
71
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
72
>gdouble</a> <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-get-value" title="up_wakeup_item_get_value ()">up_wakeup_item_get_value</a> (UpWakeupItem *wakeup_item);
73
void <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-set-value" title="up_wakeup_item_set_value ()">up_wakeup_item_set_value</a> (UpWakeupItem *wakeup_item,
75
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
78
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
79
>gchar</a> * <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-get-cmdline" title="up_wakeup_item_get_cmdline ()">up_wakeup_item_get_cmdline</a> (UpWakeupItem *wakeup_item);
80
void <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-set-cmdline" title="up_wakeup_item_set_cmdline ()">up_wakeup_item_set_cmdline</a> (UpWakeupItem *wakeup_item,
82
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
85
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
86
>gchar</a> * <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-get-details" title="up_wakeup_item_get_details ()">up_wakeup_item_get_details</a> (UpWakeupItem *wakeup_item);
87
void <a class="link" href="UPower-up-wakeup-item.html#up-wakeup-item-set-details" title="up_wakeup_item_set_details ()">up_wakeup_item_set_details</a> (UpWakeupItem *wakeup_item,
89
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
93
<div class="refsect1" title="Description">
94
<a name="UPower-up-wakeup-item.description"></a><h2>Description</h2>
96
This object represents one item of data which may be returned from the
97
daemon in response to a query.
100
See also: <span class="type">UpDevice</span>, <span class="type">UpClient</span></p>
102
<div class="refsect1" title="Details">
103
<a name="UPower-up-wakeup-item.details"></a><h2>Details</h2>
104
<div class="refsect2" title="UpWakeupItemPrivate">
105
<a name="UpWakeupItemPrivate"></a><h3>UpWakeupItemPrivate</h3>
106
<pre class="programlisting">typedef struct UpWakeupItemPrivate UpWakeupItemPrivate;
110
<div class="refsect2" title="up_wakeup_item_new ()">
111
<a name="up-wakeup-item-new"></a><h3>up_wakeup_item_new ()</h3>
112
<pre class="programlisting">UpWakeupItem * up_wakeup_item_new (void);</pre>
115
<div class="variablelist"><table border="0">
116
<col align="left" valign="top">
118
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
119
<td> a new UpWakeupItem object.
124
<p class="since">Since 0.9.0</p>
127
<div class="refsect2" title="up_wakeup_item_get_is_userspace ()">
128
<a name="up-wakeup-item-get-is-userspace"></a><h3>up_wakeup_item_get_is_userspace ()</h3>
129
<pre class="programlisting"><a
130
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
131
>gboolean</a> up_wakeup_item_get_is_userspace (UpWakeupItem *wakeup_item);</pre>
133
Gets if the item is userspace.</p>
134
<div class="variablelist"><table border="0">
135
<col align="left" valign="top">
138
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
139
<td> <span class="type">UpWakeupItem</span>
143
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
150
<p class="since">Since 0.9.0</p>
153
<div class="refsect2" title="up_wakeup_item_set_is_userspace ()">
154
<a name="up-wakeup-item-set-is-userspace"></a><h3>up_wakeup_item_set_is_userspace ()</h3>
155
<pre class="programlisting">void up_wakeup_item_set_is_userspace (UpWakeupItem *wakeup_item,
157
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
158
>gboolean</a> is_userspace);</pre>
160
Sets if the item is userspace.</p>
161
<div class="variablelist"><table border="0">
162
<col align="left" valign="top">
165
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
166
<td> <span class="type">UpWakeupItem</span>
170
<td><p><span class="term"><em class="parameter"><code>is_userspace</code></em> :</span></p></td>
176
<p class="since">Since 0.9.0</p>
179
<div class="refsect2" title="up_wakeup_item_get_id ()">
180
<a name="up-wakeup-item-get-id"></a><h3>up_wakeup_item_get_id ()</h3>
181
<pre class="programlisting"><a
182
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
183
>guint</a> up_wakeup_item_get_id (UpWakeupItem *wakeup_item);</pre>
185
Gets the item id.</p>
186
<div class="variablelist"><table border="0">
187
<col align="left" valign="top">
190
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
191
<td> <span class="type">UpWakeupItem</span>
195
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
202
<p class="since">Since 0.9.0</p>
205
<div class="refsect2" title="up_wakeup_item_set_id ()">
206
<a name="up-wakeup-item-set-id"></a><h3>up_wakeup_item_set_id ()</h3>
207
<pre class="programlisting">void up_wakeup_item_set_id (UpWakeupItem *wakeup_item,
209
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
210
>guint</a> id);</pre>
212
Sets the item id.</p>
213
<div class="variablelist"><table border="0">
214
<col align="left" valign="top">
217
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
218
<td> <span class="type">UpWakeupItem</span>
222
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
228
<p class="since">Since 0.9.0</p>
231
<div class="refsect2" title="up_wakeup_item_get_old ()">
232
<a name="up-wakeup-item-get-old"></a><h3>up_wakeup_item_get_old ()</h3>
233
<pre class="programlisting"><a
234
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
235
>guint</a> up_wakeup_item_get_old (UpWakeupItem *wakeup_item);</pre>
237
Gets the item old.</p>
238
<div class="variablelist"><table border="0">
239
<col align="left" valign="top">
242
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
243
<td> <span class="type">UpWakeupItem</span>
247
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
254
<p class="since">Since 0.9.0</p>
257
<div class="refsect2" title="up_wakeup_item_set_old ()">
258
<a name="up-wakeup-item-set-old"></a><h3>up_wakeup_item_set_old ()</h3>
259
<pre class="programlisting">void up_wakeup_item_set_old (UpWakeupItem *wakeup_item,
261
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
262
>guint</a> old);</pre>
264
Sets the item old.</p>
265
<div class="variablelist"><table border="0">
266
<col align="left" valign="top">
269
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
270
<td> <span class="type">UpWakeupItem</span>
274
<td><p><span class="term"><em class="parameter"><code>old</code></em> :</span></p></td>
280
<p class="since">Since 0.9.0</p>
283
<div class="refsect2" title="up_wakeup_item_get_value ()">
284
<a name="up-wakeup-item-get-value"></a><h3>up_wakeup_item_get_value ()</h3>
285
<pre class="programlisting"><a
286
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
287
>gdouble</a> up_wakeup_item_get_value (UpWakeupItem *wakeup_item);</pre>
289
Gets the item value.</p>
290
<div class="variablelist"><table border="0">
291
<col align="left" valign="top">
294
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
295
<td> <span class="type">UpWakeupItem</span>
299
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
306
<p class="since">Since 0.9.0</p>
309
<div class="refsect2" title="up_wakeup_item_set_value ()">
310
<a name="up-wakeup-item-set-value"></a><h3>up_wakeup_item_set_value ()</h3>
311
<pre class="programlisting">void up_wakeup_item_set_value (UpWakeupItem *wakeup_item,
313
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
314
>gdouble</a> value);</pre>
316
Sets the item value.</p>
317
<div class="variablelist"><table border="0">
318
<col align="left" valign="top">
321
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
322
<td> <span class="type">UpWakeupItem</span>
326
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
332
<p class="since">Since 0.9.0</p>
335
<div class="refsect2" title="up_wakeup_item_get_cmdline ()">
336
<a name="up-wakeup-item-get-cmdline"></a><h3>up_wakeup_item_get_cmdline ()</h3>
337
<pre class="programlisting">const <a
338
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
339
>gchar</a> * up_wakeup_item_get_cmdline (UpWakeupItem *wakeup_item);</pre>
341
Gets the item cmdline.</p>
342
<div class="variablelist"><table border="0">
343
<col align="left" valign="top">
346
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
347
<td> <span class="type">UpWakeupItem</span>
351
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
358
<p class="since">Since 0.9.0</p>
361
<div class="refsect2" title="up_wakeup_item_set_cmdline ()">
362
<a name="up-wakeup-item-set-cmdline"></a><h3>up_wakeup_item_set_cmdline ()</h3>
363
<pre class="programlisting">void up_wakeup_item_set_cmdline (UpWakeupItem *wakeup_item,
365
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
366
>gchar</a> *cmdline);</pre>
368
Sets the item cmdline.</p>
369
<div class="variablelist"><table border="0">
370
<col align="left" valign="top">
373
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
374
<td> <span class="type">UpWakeupItem</span>
378
<td><p><span class="term"><em class="parameter"><code>cmdline</code></em> :</span></p></td>
384
<p class="since">Since 0.9.0</p>
387
<div class="refsect2" title="up_wakeup_item_get_details ()">
388
<a name="up-wakeup-item-get-details"></a><h3>up_wakeup_item_get_details ()</h3>
389
<pre class="programlisting">const <a
390
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
391
>gchar</a> * up_wakeup_item_get_details (UpWakeupItem *wakeup_item);</pre>
393
Gets the item details.</p>
394
<div class="variablelist"><table border="0">
395
<col align="left" valign="top">
398
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
399
<td> <span class="type">UpWakeupItem</span>
403
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
410
<p class="since">Since 0.9.0</p>
413
<div class="refsect2" title="up_wakeup_item_set_details ()">
414
<a name="up-wakeup-item-set-details"></a><h3>up_wakeup_item_set_details ()</h3>
415
<pre class="programlisting">void up_wakeup_item_set_details (UpWakeupItem *wakeup_item,
417
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
418
>gchar</a> *details);</pre>
420
Sets the item details.</p>
421
<div class="variablelist"><table border="0">
422
<col align="left" valign="top">
425
<td><p><span class="term"><em class="parameter"><code>history_item</code></em> :</span></p></td>
426
<td> <span class="type">UpWakeupItem</span>
430
<td><p><span class="term"><em class="parameter"><code>details</code></em> :</span></p></td>
436
<p class="since">Since 0.9.0</p>
442
Generated by GTK-Doc V1.11</div>