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-qos-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-history-item.html" title="up-history-item">
10
<link rel="next" href="UPower-up-stats-item.html" title="up-stats-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-history-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-stats-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-qos-item.synopsis" class="shortcut">Top</a>
32
<a href="#UPower-up-qos-item.description" class="shortcut">Description</a>
35
<div class="refentry" title="up-qos-item">
36
<a name="UPower-up-qos-item"></a><div class="titlepage"></div>
37
<div class="refnamediv"><table width="100%"><tr>
39
<h2><span class="refentrytitle"><a name="UPower-up-qos-item.top_of_page"></a>up-qos-item</span></h2>
40
<p>up-qos-item — Helper object representing one item of QOS data.</p>
42
<td valign="top" align="right"></td>
44
<div class="refsynopsisdiv" title="Synopsis">
45
<a name="UPower-up-qos-item.synopsis"></a><h2>Synopsis</h2>
46
<pre class="synopsis">
47
typedef <a class="link" href="UPower-up-qos-item.html#UpQosItemPrivate" title="UpQosItemPrivate">UpQosItemPrivate</a>;
48
UpQosItem * <a class="link" href="UPower-up-qos-item.html#up-qos-item-new" title="up_qos_item_new ()">up_qos_item_new</a> (void);
50
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
51
>guint</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-uid" title="up_qos_item_get_uid ()">up_qos_item_get_uid</a> (UpQosItem *qos_item);
52
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-uid" title="up_qos_item_set_uid ()">up_qos_item_set_uid</a> (UpQosItem *qos_item,
54
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
57
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
58
>guint</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-pid" title="up_qos_item_get_pid ()">up_qos_item_get_pid</a> (UpQosItem *qos_item);
59
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-pid" title="up_qos_item_set_pid ()">up_qos_item_set_pid</a> (UpQosItem *qos_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#gchar"
65
>gchar</a> * <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-sender" title="up_qos_item_get_sender ()">up_qos_item_get_sender</a> (UpQosItem *qos_item);
66
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-sender" title="up_qos_item_set_sender ()">up_qos_item_set_sender</a> (UpQosItem *qos_item,
68
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
71
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
72
>gchar</a> * <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-cmdline" title="up_qos_item_get_cmdline ()">up_qos_item_get_cmdline</a> (UpQosItem *qos_item);
73
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-cmdline" title="up_qos_item_set_cmdline ()">up_qos_item_set_cmdline</a> (UpQosItem *qos_item,
75
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
78
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
79
>guint</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-cookie" title="up_qos_item_get_cookie ()">up_qos_item_get_cookie</a> (UpQosItem *qos_item);
80
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-cookie" title="up_qos_item_set_cookie ()">up_qos_item_set_cookie</a> (UpQosItem *qos_item,
82
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
85
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"
86
>guint64</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-timespec" title="up_qos_item_get_timespec ()">up_qos_item_get_timespec</a> (UpQosItem *qos_item);
87
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-timespec" title="up_qos_item_set_timespec ()">up_qos_item_set_timespec</a> (UpQosItem *qos_item,
89
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"
90
>guint64</a> timespec);
92
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
93
>gboolean</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-persistent" title="up_qos_item_get_persistent ()">up_qos_item_get_persistent</a> (UpQosItem *qos_item);
94
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-persistent" title="up_qos_item_set_persistent ()">up_qos_item_set_persistent</a> (UpQosItem *qos_item,
96
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
97
>gboolean</a> persistent);
98
<a class="link" href="UPower-up-types.html#UpQosKind" title="enum UpQosKind">UpQosKind</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-kind" title="up_qos_item_get_kind ()">up_qos_item_get_kind</a> (UpQosItem *qos_item);
99
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-kind" title="up_qos_item_set_kind ()">up_qos_item_set_kind</a> (UpQosItem *qos_item,
100
<a class="link" href="UPower-up-types.html#UpQosKind" title="enum UpQosKind">UpQosKind</a> type);
102
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
103
>gint</a> <a class="link" href="UPower-up-qos-item.html#up-qos-item-get-value" title="up_qos_item_get_value ()">up_qos_item_get_value</a> (UpQosItem *qos_item);
104
void <a class="link" href="UPower-up-qos-item.html#up-qos-item-set-value" title="up_qos_item_set_value ()">up_qos_item_set_value</a> (UpQosItem *qos_item,
106
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
110
<div class="refsect1" title="Description">
111
<a name="UPower-up-qos-item.description"></a><h2>Description</h2>
113
This object represents one item of data which may be returned from the
114
daemon in response to a query.
117
See also: <span class="type">UpDevice</span>, <span class="type">UpClient</span></p>
119
<div class="refsect1" title="Details">
120
<a name="UPower-up-qos-item.details"></a><h2>Details</h2>
121
<div class="refsect2" title="UpQosItemPrivate">
122
<a name="UpQosItemPrivate"></a><h3>UpQosItemPrivate</h3>
123
<pre class="programlisting">typedef struct UpQosItemPrivate UpQosItemPrivate;
127
<div class="refsect2" title="up_qos_item_new ()">
128
<a name="up-qos-item-new"></a><h3>up_qos_item_new ()</h3>
129
<pre class="programlisting">UpQosItem * up_qos_item_new (void);</pre>
132
<div class="variablelist"><table border="0">
133
<col align="left" valign="top">
135
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
136
<td> a new UpQosItem object.
141
<p class="since">Since 0.9.0</p>
144
<div class="refsect2" title="up_qos_item_get_uid ()">
145
<a name="up-qos-item-get-uid"></a><h3>up_qos_item_get_uid ()</h3>
146
<pre class="programlisting"><a
147
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
148
>guint</a> up_qos_item_get_uid (UpQosItem *qos_item);</pre>
150
Gets the item uid.</p>
151
<div class="variablelist"><table border="0">
152
<col align="left" valign="top">
155
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
156
<td> <span class="type">UpQosItem</span>
160
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
167
<p class="since">Since 0.9.0</p>
170
<div class="refsect2" title="up_qos_item_set_uid ()">
171
<a name="up-qos-item-set-uid"></a><h3>up_qos_item_set_uid ()</h3>
172
<pre class="programlisting">void up_qos_item_set_uid (UpQosItem *qos_item,
174
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
175
>guint</a> uid);</pre>
177
Sets the item uid.</p>
178
<div class="variablelist"><table border="0">
179
<col align="left" valign="top">
182
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
183
<td> <span class="type">UpQosItem</span>
187
<td><p><span class="term"><em class="parameter"><code>uid</code></em> :</span></p></td>
193
<p class="since">Since 0.9.0</p>
196
<div class="refsect2" title="up_qos_item_get_pid ()">
197
<a name="up-qos-item-get-pid"></a><h3>up_qos_item_get_pid ()</h3>
198
<pre class="programlisting"><a
199
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
200
>guint</a> up_qos_item_get_pid (UpQosItem *qos_item);</pre>
202
Gets the item pid.</p>
203
<div class="variablelist"><table border="0">
204
<col align="left" valign="top">
207
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
208
<td> <span class="type">UpQosItem</span>
212
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
219
<p class="since">Since 0.9.0</p>
222
<div class="refsect2" title="up_qos_item_set_pid ()">
223
<a name="up-qos-item-set-pid"></a><h3>up_qos_item_set_pid ()</h3>
224
<pre class="programlisting">void up_qos_item_set_pid (UpQosItem *qos_item,
226
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
227
>guint</a> pid);</pre>
229
Sets the item pid.</p>
230
<div class="variablelist"><table border="0">
231
<col align="left" valign="top">
234
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
235
<td> <span class="type">UpQosItem</span>
239
<td><p><span class="term"><em class="parameter"><code>pid</code></em> :</span></p></td>
245
<p class="since">Since 0.9.0</p>
248
<div class="refsect2" title="up_qos_item_get_sender ()">
249
<a name="up-qos-item-get-sender"></a><h3>up_qos_item_get_sender ()</h3>
250
<pre class="programlisting">const <a
251
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
252
>gchar</a> * up_qos_item_get_sender (UpQosItem *qos_item);</pre>
254
Gets the item sender.</p>
255
<div class="variablelist"><table border="0">
256
<col align="left" valign="top">
259
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
260
<td> <span class="type">UpQosItem</span>
264
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
271
<p class="since">Since 0.9.0</p>
274
<div class="refsect2" title="up_qos_item_set_sender ()">
275
<a name="up-qos-item-set-sender"></a><h3>up_qos_item_set_sender ()</h3>
276
<pre class="programlisting">void up_qos_item_set_sender (UpQosItem *qos_item,
278
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
279
>gchar</a> *sender);</pre>
281
Sets the item sender.</p>
282
<div class="variablelist"><table border="0">
283
<col align="left" valign="top">
286
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
287
<td> <span class="type">UpQosItem</span>
291
<td><p><span class="term"><em class="parameter"><code>sender</code></em> :</span></p></td>
297
<p class="since">Since 0.9.0</p>
300
<div class="refsect2" title="up_qos_item_get_cmdline ()">
301
<a name="up-qos-item-get-cmdline"></a><h3>up_qos_item_get_cmdline ()</h3>
302
<pre class="programlisting">const <a
303
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
304
>gchar</a> * up_qos_item_get_cmdline (UpQosItem *qos_item);</pre>
306
Gets the item cmdline.</p>
307
<div class="variablelist"><table border="0">
308
<col align="left" valign="top">
311
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
312
<td> <span class="type">UpQosItem</span>
316
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
323
<p class="since">Since 0.9.0</p>
326
<div class="refsect2" title="up_qos_item_set_cmdline ()">
327
<a name="up-qos-item-set-cmdline"></a><h3>up_qos_item_set_cmdline ()</h3>
328
<pre class="programlisting">void up_qos_item_set_cmdline (UpQosItem *qos_item,
330
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
331
>gchar</a> *cmdline);</pre>
333
Sets the item cmdline.</p>
334
<div class="variablelist"><table border="0">
335
<col align="left" valign="top">
338
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
339
<td> <span class="type">UpQosItem</span>
343
<td><p><span class="term"><em class="parameter"><code>cmdline</code></em> :</span></p></td>
349
<p class="since">Since 0.9.0</p>
352
<div class="refsect2" title="up_qos_item_get_cookie ()">
353
<a name="up-qos-item-get-cookie"></a><h3>up_qos_item_get_cookie ()</h3>
354
<pre class="programlisting"><a
355
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
356
>guint</a> up_qos_item_get_cookie (UpQosItem *qos_item);</pre>
358
Gets the item cookie.</p>
359
<div class="variablelist"><table border="0">
360
<col align="left" valign="top">
363
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
364
<td> <span class="type">UpQosItem</span>
368
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
375
<p class="since">Since 0.9.0</p>
378
<div class="refsect2" title="up_qos_item_set_cookie ()">
379
<a name="up-qos-item-set-cookie"></a><h3>up_qos_item_set_cookie ()</h3>
380
<pre class="programlisting">void up_qos_item_set_cookie (UpQosItem *qos_item,
382
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"
383
>guint</a> cookie);</pre>
385
Sets the item cookie.</p>
386
<div class="variablelist"><table border="0">
387
<col align="left" valign="top">
390
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
391
<td> <span class="type">UpQosItem</span>
395
<td><p><span class="term"><em class="parameter"><code>cookie</code></em> :</span></p></td>
401
<p class="since">Since 0.9.0</p>
404
<div class="refsect2" title="up_qos_item_get_timespec ()">
405
<a name="up-qos-item-get-timespec"></a><h3>up_qos_item_get_timespec ()</h3>
406
<pre class="programlisting"><a
407
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"
408
>guint64</a> up_qos_item_get_timespec (UpQosItem *qos_item);</pre>
410
Gets the item timespec.</p>
411
<div class="variablelist"><table border="0">
412
<col align="left" valign="top">
415
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
416
<td> <span class="type">UpQosItem</span>
420
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
427
<p class="since">Since 0.9.0</p>
430
<div class="refsect2" title="up_qos_item_set_timespec ()">
431
<a name="up-qos-item-set-timespec"></a><h3>up_qos_item_set_timespec ()</h3>
432
<pre class="programlisting">void up_qos_item_set_timespec (UpQosItem *qos_item,
434
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"
435
>guint64</a> timespec);</pre>
437
Sets the item timespec.</p>
438
<div class="variablelist"><table border="0">
439
<col align="left" valign="top">
442
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
443
<td> <span class="type">UpQosItem</span>
447
<td><p><span class="term"><em class="parameter"><code>timespec</code></em> :</span></p></td>
453
<p class="since">Since 0.9.0</p>
456
<div class="refsect2" title="up_qos_item_get_persistent ()">
457
<a name="up-qos-item-get-persistent"></a><h3>up_qos_item_get_persistent ()</h3>
458
<pre class="programlisting"><a
459
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
460
>gboolean</a> up_qos_item_get_persistent (UpQosItem *qos_item);</pre>
462
Gets the item persistent.</p>
463
<div class="variablelist"><table border="0">
464
<col align="left" valign="top">
467
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
468
<td> <span class="type">UpQosItem</span>
472
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
479
<p class="since">Since 0.9.0</p>
482
<div class="refsect2" title="up_qos_item_set_persistent ()">
483
<a name="up-qos-item-set-persistent"></a><h3>up_qos_item_set_persistent ()</h3>
484
<pre class="programlisting">void up_qos_item_set_persistent (UpQosItem *qos_item,
486
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
487
>gboolean</a> persistent);</pre>
489
Sets the item persistent.</p>
490
<div class="variablelist"><table border="0">
491
<col align="left" valign="top">
494
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
495
<td> <span class="type">UpQosItem</span>
499
<td><p><span class="term"><em class="parameter"><code>persistent</code></em> :</span></p></td>
505
<p class="since">Since 0.9.0</p>
508
<div class="refsect2" title="up_qos_item_get_kind ()">
509
<a name="up-qos-item-get-kind"></a><h3>up_qos_item_get_kind ()</h3>
510
<pre class="programlisting"><a class="link" href="UPower-up-types.html#UpQosKind" title="enum UpQosKind">UpQosKind</a> up_qos_item_get_kind (UpQosItem *qos_item);</pre>
512
Gets the item type.</p>
513
<div class="variablelist"><table border="0">
514
<col align="left" valign="top">
517
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
518
<td> <span class="type">UpQosItem</span>
522
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
529
<p class="since">Since 0.9.0</p>
532
<div class="refsect2" title="up_qos_item_set_kind ()">
533
<a name="up-qos-item-set-kind"></a><h3>up_qos_item_set_kind ()</h3>
534
<pre class="programlisting">void up_qos_item_set_kind (UpQosItem *qos_item,
535
<a class="link" href="UPower-up-types.html#UpQosKind" title="enum UpQosKind">UpQosKind</a> type);</pre>
537
Sets the item type.</p>
538
<div class="variablelist"><table border="0">
539
<col align="left" valign="top">
542
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
543
<td> <span class="type">UpQosItem</span>
547
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
553
<p class="since">Since 0.9.0</p>
556
<div class="refsect2" title="up_qos_item_get_value ()">
557
<a name="up-qos-item-get-value"></a><h3>up_qos_item_get_value ()</h3>
558
<pre class="programlisting"><a
559
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
560
>gint</a> up_qos_item_get_value (UpQosItem *qos_item);</pre>
562
Gets the item value.</p>
563
<div class="variablelist"><table border="0">
564
<col align="left" valign="top">
567
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
568
<td> <span class="type">UpQosItem</span>
572
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
579
<p class="since">Since 0.9.0</p>
582
<div class="refsect2" title="up_qos_item_set_value ()">
583
<a name="up-qos-item-set-value"></a><h3>up_qos_item_set_value ()</h3>
584
<pre class="programlisting">void up_qos_item_set_value (UpQosItem *qos_item,
586
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
587
>gint</a> value);</pre>
589
Sets the item value.</p>
590
<div class="variablelist"><table border="0">
591
<col align="left" valign="top">
594
<td><p><span class="term"><em class="parameter"><code>qos_item</code></em> :</span></p></td>
595
<td> <span class="type">UpQosItem</span>
599
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
605
<p class="since">Since 0.9.0</p>
611
Generated by GTK-Doc V1.11</div>