~ubuntu-branches/ubuntu/quantal/ibus/quantal

« back to all changes in this revision

Viewing changes to src/ibusconfigservice.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry Warsaw
  • Date: 2011-08-11 17:00:57 UTC
  • mfrom: (6.2.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110811170057-6dmbfs4s3cchzl7x
Tags: 1.3.99.20110419-1ubuntu1
* Merge with Debian unstable.  Remaining Ubuntu changes:
  - Indicator support:
    + Add 05_appindicator.patch: Use an indicator rather than a notification
      icon.
    + debian/control: Recommend python-appindicator.
  - debian/control: Install im-switch instead of im-config by default.
  - debian/README.source: Removed, it was outdated and no longer correct
  - debian/patches/01_ubuntu_desktop: Fix "Desktop entry needs the
    X-Ubuntu-Gettext-Domain key"  (LP: #457632)
  - debian/patches/02_title_update.patch: Rename "IBus Preferences" to
    "Keyboard Input Methods"
  - debian/patches/06_locale_parser.patch: Cherry-picked from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
20
 * Boston, MA 02111-1307, USA.
21
21
 */
 
22
 
 
23
#if !defined (__IBUS_H_INSIDE__) && !defined (IBUS_COMPILATION)
 
24
#error "Only <ibus.h> can be included directly"
 
25
#endif
 
26
 
22
27
/**
23
28
 * SECTION: ibusconfigservice
24
29
 * @short_description: Configuration service back-end.
129
134
#ifndef __IBUS_CONFIG_SERVICE_H_
130
135
#define __IBUS_CONFIG_SERVICE_H_
131
136
 
132
 
#include "ibuserror.h"
133
137
#include "ibusservice.h"
134
138
 
135
139
/*
161
165
 * An opaque data type representing a configure service.
162
166
 */
163
167
struct _IBusConfigService {
 
168
    /*< private >*/
164
169
    IBusService parent;
 
170
    /* IBusConfigServicePriv *priv */
 
171
 
165
172
    /* instance members */
166
173
};
167
174
 
168
175
struct _IBusConfigServiceClass {
 
176
    /*< private >*/
169
177
    IBusServiceClass parent;
170
178
 
 
179
    /*< public >*/
171
180
    /* class members */
172
 
    gboolean    (* set_value) (IBusConfigService    *config,
173
 
                               const gchar          *section,
174
 
                               const gchar          *name,
175
 
                               const GValue         *value,
176
 
                               IBusError           **error);
177
 
    gboolean    (* get_value) (IBusConfigService    *config,
178
 
                               const gchar          *section,
179
 
                               const gchar          *name,
180
 
                               GValue               *value,
181
 
                               IBusError           **error);
182
 
    gboolean    (* unset)     (IBusConfigService    *config,
183
 
                               const gchar          *section,
184
 
                               const gchar          *name,
185
 
                               IBusError           **error);
 
181
    gboolean    (* set_value)   (IBusConfigService    *config,
 
182
                                 const gchar          *section,
 
183
                                 const gchar          *name,
 
184
                                 GVariant             *value,
 
185
                                 GError              **error);
 
186
    /**
 
187
     * get_value:
 
188
     * @config: An IBusConfig.
 
189
     * @section: section name
 
190
     * @name: value name
 
191
     *
 
192
     * @returns: (transfer full): The value in config associated with section and name.
 
193
     *
 
194
     */
 
195
    GVariant *  (* get_value)   (IBusConfigService    *config,
 
196
                                 const gchar          *section,
 
197
                                 const gchar          *name,
 
198
                                 GError              **error);
 
199
    gboolean    (* unset_value) (IBusConfigService    *config,
 
200
                                 const gchar          *section,
 
201
                                 const gchar          *name,
 
202
                                 GError              **error);
186
203
 
187
204
    /*< private >*/
188
205
    /* padding */
193
210
 
194
211
/**
195
212
 * ibus_config_service_new:
196
 
 * @connection: An IBusConnection.
 
213
 * @connection: An GDBusConnection.
197
214
 * @returns: A newly allocated IBusConfigServices.
198
215
 *
199
 
 * New an IBusConfigService from an IBusConnection.
 
216
 * New an IBusConfigService from an GDBusConnection.
200
217
 */
201
 
IBusConfigService   *ibus_config_service_new        (IBusConnection     *connection);
 
218
IBusConfigService   *ibus_config_service_new        (GDBusConnection     *connection);
202
219
 
203
220
/**
204
221
 * ibus_config_service_value_changed:
205
222
 * @config: An IBusConfigService.
206
223
 * @section: Section name of the configuration option.
207
224
 * @name: Name of the configure option.
208
 
 * @value: GValue that holds the value.
 
225
 * @value: GVariant that holds the value.
209
226
 *
210
227
 * Change a value of a configuration option
211
228
 * by sending a "ValueChanged" message to IBus service.
214
231
                                                    (IBusConfigService  *config,
215
232
                                                     const gchar        *section,
216
233
                                                     const gchar        *name,
217
 
                                                     const GValue       *value);
 
234
                                                     GVariant           *value);
218
235
 
219
236
G_END_DECLS
220
237
#endif