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>IBusConfigService</title>
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="ch04.html" title="Configuration">
9
<link rel="prev" href="IBusConfig.html" title="IBusConfig">
10
<link rel="next" href="ibus-ibusxml.html" title="ibusxml">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
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">
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">
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
20
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
22
<td><a accesskey="p" href="IBusConfig.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
<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>
26
<td><a accesskey="n" href="ibus-ibusxml.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts">
29
<a href="#IBusConfigService.synopsis" class="shortcut">Top</a>
31
<a href="#IBusConfigService.description" class="shortcut">Description</a>
33
<a href="#IBusConfigService.object-hierarchy" class="shortcut">Object Hierarchy</a>
35
<a href="#IBusConfigService.properties" class="shortcut">Properties</a>
38
<div class="refentry" lang="en">
39
<a name="IBusConfigService"></a><div class="titlepage"></div>
40
<div class="refnamediv"><table width="100%"><tr>
42
<h2><span class="refentrytitle"><a name="IBusConfigService.top_of_page"></a>IBusConfigService</span></h2>
43
<p>IBusConfigService — Configuration service back-end.</p>
45
<td valign="top" align="right"></td>
47
<div class="refsect1" lang="en">
48
<a name="IBusConfigService.stability-level"></a><h2>Stability Level</h2>
49
Stable, unless otherwise indicated
51
<div class="refsynopsisdiv">
52
<a name="IBusConfigService.synopsis"></a><h2>Synopsis</h2>
53
<pre class="synopsis">
54
<a class="link" href="IBusConfigService.html#IBusConfigService-struct" title="IBusConfigService">IBusConfigService</a>;
55
<a class="link" href="IBusConfigService.html" title="IBusConfigService">IBusConfigService</a> * <a class="link" href="IBusConfigService.html#ibus-config-service-new" title="ibus_config_service_new ()">ibus_config_service_new</a> (<a class="link" href="IBusConnection.html" title="IBusConnection">IBusConnection</a> *connection);
56
void <a class="link" href="IBusConfigService.html#ibus-config-service-value-changed" title="ibus_config_service_value_changed ()">ibus_config_service_value_changed</a> (<a class="link" href="IBusConfigService.html" title="IBusConfigService">IBusConfigService</a> *config,
58
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
61
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
64
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
68
<div class="refsect1" lang="en">
69
<a name="IBusConfigService.object-hierarchy"></a><h2>Object Hierarchy</h2>
70
<pre class="synopsis">
72
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
74
+----<a class="link" href="IBusObject.html" title="IBusObject">IBusObject</a>
75
+----<a class="link" href="IBusService.html" title="IBusService">IBusService</a>
76
+----IBusConfigService
79
<div class="refsect1" lang="en">
80
<a name="IBusConfigService.properties"></a><h2>Properties</h2>
81
<pre class="synopsis">
82
"<a class="link" href="IBusConfigService.html#IBusConfigService--connection" title='The "connection" property'>connection</a>" <a class="link" href="IBusConnection.html" title="IBusConnection">IBusConnection</a>* : Read / Write / Construct Only
85
<div class="refsect1" lang="en">
86
<a name="IBusConfigService.description"></a><h2>Description</h2>
88
An IBusConfigService is a base class for other configuration services such as GConf.
89
Currently, directly known sub class is IBusConfigGConf.
92
IBusConfigServiceClass has following member functions:
94
<div class="itemizedlist"><ul type="disc">
96
<p>gboolean set_value(IBusConfigService *config, const gchar *section, const gchar *name,
97
const GValue *value, IBusError **error)
99
<div class="variablelist"><table border="0">
100
<col align="left" valign="top">
103
<td><p><span class="term">config:</span></p></td>
104
<td>A configure service</td>
107
<td><p><span class="term">section:</span></p></td>
108
<td>Section name of the configuration option.</td>
111
<td><p><span class="term">name:</span></p></td>
112
<td>Name of the configuration option.</td>
115
<td><p><span class="term">value:</span></p></td>
116
<td>GValue that holds the value.</td>
119
<td><p><span class="term">error:</span></p></td>
120
<td>Error outputs here.</td>
123
<td><p><span class="term">Returns:</span></p></td>
124
<td>TRUE if succeed; FALSE otherwise.</td>
128
<p>Set a value to a configuration option.
132
<p>gboolean get_value(IBusConfigService *config, const gchar *section, const gchar *name,
133
GValue *value, IBusError **error)
135
<div class="variablelist"><table border="0">
136
<col align="left" valign="top">
139
<td><p><span class="term">config:</span></p></td>
140
<td>A configure service</td>
143
<td><p><span class="term">section:</span></p></td>
144
<td>Section name of the configuration option.</td>
147
<td><p><span class="term">name:</span></p></td>
148
<td>Name of the configuration option.</td>
151
<td><p><span class="term">value:</span></p></td>
152
<td>GValue that holds the value.</td>
155
<td><p><span class="term">error:</span></p></td>
156
<td>Error outputs here.</td>
159
<td><p><span class="term">Returns:</span></p></td>
160
<td>TRUE if succeed; FALSE otherwise.</td>
164
<p>Get value of a configuration option.
171
<div class="refsect1" lang="en">
172
<a name="IBusConfigService.details"></a><h2>Details</h2>
173
<div class="refsect2" lang="en">
174
<a name="IBusConfigService-struct"></a><h3>IBusConfigService</h3>
175
<pre class="programlisting">typedef struct _IBusConfigService IBusConfigService;</pre>
177
An opaque data type representing a configure service.</p>
182
<div class="refsect2" lang="en">
183
<a name="ibus-config-service-new"></a><h3>ibus_config_service_new ()</h3>
184
<pre class="programlisting"><a class="link" href="IBusConfigService.html" title="IBusConfigService">IBusConfigService</a> * ibus_config_service_new (<a class="link" href="IBusConnection.html" title="IBusConnection">IBusConnection</a> *connection);</pre>
186
New an IBusConfigService from an IBusConnection.</p>
189
<div class="variablelist"><table border="0">
190
<col align="left" valign="top">
193
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
194
<td> An IBusConnection.
198
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
199
<td> A newly allocated IBusConfigServices.
206
<div class="refsect2" lang="en">
207
<a name="ibus-config-service-value-changed"></a><h3>ibus_config_service_value_changed ()</h3>
208
<pre class="programlisting">void ibus_config_service_value_changed (<a class="link" href="IBusConfigService.html" title="IBusConfigService">IBusConfigService</a> *config,
210
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
213
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
216
href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"
217
>GValue</a> *value);</pre>
219
Change a value of a configuration option
220
by sending a "ValueChanged" message to IBus service.</p>
223
<div class="variablelist"><table border="0">
224
<col align="left" valign="top">
227
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td>
228
<td> An IBusConfigService.
232
<td><p><span class="term"><em class="parameter"><code>section</code></em> :</span></p></td>
233
<td> Section name of the configuration option.
237
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
238
<td> Name of the configure option.
242
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
243
<td> GValue that holds the value.
250
<div class="refsect1" lang="en">
251
<a name="IBusConfigService.property-details"></a><h2>Property Details</h2>
252
<div class="refsect2" lang="en">
253
<a name="IBusConfigService--connection"></a><h3>The <code class="literal">"connection"</code> property</h3>
254
<pre class="programlisting"> "connection" <a class="link" href="IBusConnection.html" title="IBusConnection">IBusConnection</a>* : Read / Write / Construct Only</pre>
256
Connection of this IBusConfigService.</p>
264
Generated by GTK-Doc V1.11</div>