4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>IBusObservedPath</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
7
<link rel="home" href="index.html" title="iBus Reference Manual">
8
<link rel="up" href="ch05.html" title="Others">
9
<link rel="prev" href="IBusObject.html" title="IBusObject">
7
<link rel="home" href="index.html" title="IBus Reference Manual">
8
<link rel="up" href="ch04.html" title="Communication and Configuration">
9
<link rel="prev" href="ibus-ibusmessage.html" title="ibusmessage">
10
10
<link rel="next" href="ibus-ibuspendingcall.html" title="ibuspendingcall">
11
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="ch01.html" title="API Overviews">
14
<link rel="chapter" href="ch02.html" title="User Interfaces">
13
<link rel="chapter" href="ch01.html" title="Overview">
14
<link rel="chapter" href="ch02.html" title="Panel (User Interfaces)">
15
15
<link rel="chapter" href="ch03.html" title="Input method engine">
16
<link rel="chapter" href="ch04.html" title="Configuration">
17
<link rel="chapter" href="ch05.html" title="Others">
16
<link rel="chapter" href="ch04.html" title="Communication and Configuration">
17
<link rel="chapter" href="ch05.html" title="Internal">
19
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
20
20
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
21
21
<tr valign="middle">
22
<td><a accesskey="p" href="IBusObject.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
23
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
22
<td><a accesskey="p" href="ibus-ibusmessage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
23
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
24
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
25
<th width="100%" align="center">iBus Reference Manual</th>
25
<th width="100%" align="center">IBus Reference Manual</th>
26
26
<td><a accesskey="n" href="ibus-ibuspendingcall.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
28
<tr><td colspan="5" class="shortcuts">
38
38
<div class="refnamediv"><table width="100%"><tr>
40
40
<h2><span class="refentrytitle"><a name="IBusObservedPath.top_of_page"></a>IBusObservedPath</span></h2>
41
<p>IBusObservedPath</p>
41
<p>IBusObservedPath — Path object of IBus.</p>
43
43
<td valign="top" align="right"></td>
44
44
</tr></table></div>
45
<div class="refsect1" lang="en">
46
<a name="IBusObservedPath.stability-level"></a><h2>Stability Level</h2>
47
Stable, unless otherwise indicated
45
49
<div class="refsynopsisdiv">
46
50
<a name="IBusObservedPath.synopsis"></a><h2>Synopsis</h2>
47
51
<pre class="synopsis">
80
84
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
82
+----<a class="link" href="IBusObject.html" title="IBusObject">IBusObject</a>
83
+----<a class="link" href="IBusSerializable.html" title="IBusSerializable">IBusSerializable</a>
87
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
88
>GInitiallyUnowned</a>
89
+----<a class="link" href="IBusObject.html" title="IBusObject">IBusObject</a>
90
+----<a class="link" href="IBusSerializable.html" title="IBusSerializable">IBusSerializable</a>
87
94
<div class="refsect1" lang="en">
88
95
<a name="IBusObservedPath.description"></a><h2>Description</h2>
97
IBusObservedPath provides methods for file path manipulation,
98
such as monitor modification, directory tree traversal.</p>
92
102
<div class="refsect1" lang="en">
95
105
<a name="IBusObservedPath-struct"></a><h3>IBusObservedPath</h3>
96
106
<pre class="programlisting">typedef struct _IBusObservedPath IBusObservedPath;</pre>
108
Data structure of IBusObservedPath.</p>
111
<div class="variablelist"><table border="0">
112
<col align="left" valign="top">
101
117
<div class="refsect2" lang="en">
106
122
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
107
123
>gboolean</a> fill_stat);</pre>
125
New an IBusObservedPath from an XML node.</p>
110
128
<div class="variablelist"><table border="0">
111
129
<col align="left" valign="top">
114
132
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
133
<td> An XML node that contain path.
119
137
<td><p><span class="term"><em class="parameter"><code>fill_stat</code></em> :</span></p></td>
138
<td> Auto-fill the path status.
124
142
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
143
<td> A newly allocated IBusObservedPath.
138
156
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
139
157
>gboolean</a> fill_stat);</pre>
159
New an IBusObservedPath from an XML node.</p>
142
162
<div class="variablelist"><table border="0">
143
163
<col align="left" valign="top">
146
166
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
167
<td> The path string.
151
171
<td><p><span class="term"><em class="parameter"><code>fill_stat</code></em> :</span></p></td>
172
<td> Auto-fill the path status.
156
176
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
177
<td> A newly allocated IBusObservedPath.
167
187
href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"
168
188
>GList</a> * ibus_observed_path_traverse (<a class="link" href="IBusObservedPath.html" title="IBusObservedPath">IBusObservedPath</a> *path);</pre>
190
Recursively traverse the path and put the files and subdirectory in to a newly allocated
191
GLists, if the <em class="parameter"><code>path</code></em> is a directory. Otherwise returns NULL.</p>
171
194
<div class="variablelist"><table border="0">
172
195
<col align="left" valign="top">
175
198
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
199
<td> An IBusObservedPath.
180
203
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
204
<td> A newly allocate GList which holds content in path; NULL if <em class="parameter"><code>path</code></em> is not directory.
192
215
>gboolean</a> ibus_observed_path_check_modification
193
216
(<a class="link" href="IBusObservedPath.html" title="IBusObservedPath">IBusObservedPath</a> *path);</pre>
218
Checks whether the path is modified by comparing the mtime in object and mtime in file system.
219
Returns TRUE if imtime is changed, otherwise FALSE.</p>
196
222
<div class="variablelist"><table border="0">
197
223
<col align="left" valign="top">
200
226
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
227
<td> An IBusObservedPath.
205
231
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
232
<td> TRUE if mtime is changed; FALSE otherwise.
220
246
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
221
247
>gint</a> indent);</pre>
249
Append the observed path to a string with following format:
250
<path mtime="<i>modified time</i>" ><i>path</i></path></p>
224
253
<div class="variablelist"><table border="0">
225
254
<col align="left" valign="top">
228
257
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
258
<td> An IBusObservedPath.
233
262
<td><p><span class="term"><em class="parameter"><code>output</code></em> :</span></p></td>
263
<td> Path is appended to.
238
267
<td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
268
<td> number of indent.