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

« back to all changes in this revision

Viewing changes to bindings/vala/ibus-1.0.vapi

  • 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:
1
1
/* ibus-1.0.vapi generated by vapigen, do not modify. */
2
2
 
3
 
[CCode (cprefix = "IBus", lower_case_cprefix = "ibus_", gir_namespace = "IBus", gir_version = "2.0")]
 
3
[CCode (cprefix = "IBus", lower_case_cprefix = "ibus_", gir_namespace = "IBus", gir_version = "1.0")]
4
4
namespace IBus {
5
5
        [CCode (cheader_filename = "ibus.h")]
6
6
        public class AttrList : IBus.Serializable {
26
26
                public void add_match (string rule);
27
27
                public unowned IBus.InputContext create_input_context (string client_name);
28
28
                public unowned string current_input_context ();
29
 
                public bool exit (bool restart);
 
29
                public void exit (bool restart);
30
30
                public unowned IBus.Config get_config ();
31
 
                public unowned IBus.Connection get_connection ();
 
31
                public unowned GLib.DBusConnection get_connection ();
32
32
                public unowned IBus.EngineDesc get_global_engine ();
33
33
                public string get_name_owner (string name);
34
34
                public bool get_use_global_engine ();
55
55
        }
56
56
        [CCode (cheader_filename = "ibus.h")]
57
57
        public class Component : IBus.Serializable {
58
 
                public weak string author;
59
58
                public uint child_source_id;
60
 
                public weak string description;
61
59
                public weak GLib.List engines;
62
 
                public weak string exec;
63
 
                public weak string homepage;
64
 
                public weak string license;
65
 
                public weak string name;
66
60
                public weak GLib.List observed_paths;
67
61
                public void* pdummy;
68
62
                public GLib.Pid pid;
69
 
                public weak string textdomain;
70
 
                public weak string version;
71
63
                [CCode (has_construct_function = false)]
72
64
                public Component (string name, string description, string version, string license, string author, string homepage, string exec, string textdomain);
73
65
                public void add_engine (IBus.EngineDesc engine);
77
69
                public Component.from_file (string filename);
78
70
                [CCode (has_construct_function = false)]
79
71
                public Component.from_xml_node (IBus.XMLNode node);
 
72
                public unowned string get_author ();
 
73
                public unowned string get_description ();
80
74
                public unowned GLib.List get_engines ();
 
75
                public unowned string get_exec ();
81
76
                public static unowned IBus.Component get_from_engine (IBus.EngineDesc engine);
 
77
                public unowned string get_homepage ();
 
78
                public unowned string get_license ();
 
79
                public unowned string get_name ();
 
80
                public unowned string get_textdomain ();
 
81
                public unowned string get_version ();
82
82
                public bool is_running ();
 
83
                [CCode (cname = "ibus_component_new2", has_construct_function = false)]
 
84
                public Component.new2 (...);
83
85
                public void output (GLib.StringBuilder output, int indent);
84
86
                public void output_engines (GLib.StringBuilder output, int indent);
 
87
                public void set_restart (bool restart);
85
88
                public bool start (bool verbose);
86
89
                public bool stop ();
 
90
                public string author { get; construct; }
 
91
                public string description { get; construct; }
 
92
                public string exec { get; construct; }
 
93
                public string homepage { get; construct; }
 
94
                public string license { get; construct; }
 
95
                public string name { get; construct; }
 
96
                public string textdomain { get; construct; }
 
97
                public string version { get; construct; }
87
98
        }
88
99
        [CCode (cheader_filename = "ibus.h")]
89
 
        public class Config : IBus.Proxy {
 
100
        public class Config : IBus.Proxy, GLib.Initable, GLib.AsyncInitable {
90
101
                [CCode (has_construct_function = false)]
91
 
                public Config (IBus.Connection connection);
92
 
                public bool get_value (string section, string name, GLib.Value value);
93
 
                public bool set_value (string section, string name, GLib.Value value);
 
102
                public Config (GLib.DBusConnection connection, GLib.Cancellable cancellable) throws GLib.Error;
 
103
                public GLib.Variant get_value (string section, string name);
 
104
                public bool set_value (string section, string name, GLib.Variant value);
94
105
                public bool unset (string section, string name);
95
 
                public virtual signal void value_changed (string p0, string p1, GLib.Value p2);
 
106
                public virtual signal void value_changed (string p0, string p1, GLib.Variant p2);
96
107
        }
97
108
        [CCode (cheader_filename = "ibus.h")]
98
109
        public class ConfigService : IBus.Service {
99
110
                [CCode (has_construct_function = false)]
100
 
                public ConfigService (IBus.Connection connection);
101
 
                [NoWrapper]
102
 
                public virtual bool get_value (string section, string name, GLib.Value value, out unowned IBus.Error error);
103
 
                [NoWrapper]
104
 
                public virtual bool set_value (string section, string name, GLib.Value value, out unowned IBus.Error error);
105
 
                [NoWrapper]
106
 
                public virtual bool unset (string section, string name, out unowned IBus.Error error);
107
 
                public void value_changed (string section, string name, GLib.Value value);
108
 
                [NoAccessorMethod]
109
 
                public IBus.Connection connection { owned get; construct; }
110
 
        }
111
 
        [CCode (cheader_filename = "ibus.h")]
112
 
        public class Connection : IBus.Object {
113
 
                [CCode (has_construct_function = false)]
114
 
                public Connection ();
115
 
                public bool call (string name, string path, string @interface, string member, out unowned IBus.Error error, ...);
116
 
                public unowned IBus.Message call_with_reply (string name, string path, string @interface, string member, out unowned IBus.Error error, ...);
117
 
                public void close ();
118
 
                public void flush ();
119
 
                public unowned IBus.DBusConnection get_connection ();
120
 
                public long get_unix_user ();
121
 
                public bool is_authenticated ();
122
 
                public bool is_connected ();
123
 
                public static unowned IBus.Connection open (string address);
124
 
                public static unowned IBus.Connection open_private (string address);
125
 
                public bool read_write_dispatch (int timeout);
126
 
                public bool register_object_path (string path, IBus.MessageFunc message_func);
127
 
                public bool send (IBus.Message message);
128
 
                public bool send_signal (string path, string @interface, string name, ...);
129
 
                public bool send_signal_valist (string path, string @interface, string name, GLib.Type first_arg_type, void* args);
130
 
                public bool send_valist (int message_type, string path, string @interface, string name, GLib.Type first_arg_type, void* args);
131
 
                public bool send_with_reply (IBus.Message message, out unowned IBus.PendingCall pending_return, int timeout_milliseconds);
132
 
                public unowned IBus.Message send_with_reply_and_block (IBus.Message message, int timeout_milliseconds, out unowned IBus.Error error);
133
 
                public void set_connection (IBus.DBusConnection dbus_connection, bool shared);
134
 
                public bool unregister_object_path (string path);
135
 
                public virtual signal bool authenticate_unix_user (ulong uid);
136
 
                public virtual signal void disconnected ();
137
 
                public virtual signal bool ibus_message (void* message);
138
 
                public virtual signal void ibus_message_sent (void* message);
139
 
                public virtual signal bool ibus_signal (void* message);
140
 
        }
141
 
        [Compact]
142
 
        [CCode (cheader_filename = "ibus.h")]
143
 
        public class DBusConnection {
144
 
        }
145
 
        [Compact]
146
 
        [CCode (cheader_filename = "ibus.h")]
147
 
        public class DBusError {
148
 
        }
149
 
        [Compact]
150
 
        [CCode (cheader_filename = "ibus.h")]
151
 
        public class DBusMessage {
152
 
        }
153
 
        [Compact]
154
 
        [CCode (cheader_filename = "ibus.h")]
155
 
        public class DBusMessageIter {
156
 
        }
157
 
        [Compact]
158
 
        [CCode (cheader_filename = "ibus.h")]
159
 
        public class DBusPendingCall {
160
 
        }
161
 
        [Compact]
162
 
        [CCode (cheader_filename = "ibus.h")]
163
 
        public class DBusServer {
 
111
                public ConfigService (GLib.DBusConnection connection);
 
112
                [NoWrapper]
 
113
                public virtual GLib.Variant get_value (string section, string name) throws GLib.Error;
 
114
                [NoWrapper]
 
115
                public virtual bool set_value (string section, string name, GLib.Variant value) throws GLib.Error;
 
116
                [NoWrapper]
 
117
                public virtual bool unset_value (string section, string name) throws GLib.Error;
 
118
                public void value_changed (string section, string name, GLib.Variant value);
164
119
        }
165
120
        [CCode (cheader_filename = "ibus.h")]
166
121
        public class Engine : IBus.Service {
169
124
                public bool enabled;
170
125
                public bool has_focus;
171
126
                [CCode (has_construct_function = false)]
172
 
                public Engine (string name, string path, IBus.Connection connection);
 
127
                public Engine (string engine_name, string object_path, GLib.DBusConnection connection);
173
128
                public void commit_text (IBus.Text text);
174
129
                public void delete_surrounding_text (int offset, uint nchars);
175
130
                public void forward_key_event (uint keyval, uint keycode, uint state);
181
136
                public void show_auxiliary_text ();
182
137
                public void show_lookup_table ();
183
138
                public void show_preedit_text ();
 
139
                [CCode (has_construct_function = false)]
 
140
                public Engine.type (GLib.Type engine_type, string engine_name, string object_path, GLib.DBusConnection connection);
184
141
                public void update_auxiliary_text (IBus.Text text, bool visible);
185
142
                public void update_lookup_table (IBus.LookupTable lookup_table, bool visible);
186
143
                public void update_lookup_table_fast (IBus.LookupTable lookup_table, bool visible);
188
145
                public void update_preedit_text_with_mode (IBus.Text text, uint cursor_pos, bool visible, IBus.PreeditFocusMode mode);
189
146
                public void update_property (IBus.Property prop);
190
147
                [NoAccessorMethod]
191
 
                public IBus.Connection connection { owned get; construct; }
192
 
                public string name { get; construct; }
 
148
                public string engine_name { owned get; construct; }
193
149
                public virtual signal void candidate_clicked (uint index, uint button, uint state);
194
150
                public virtual signal void cursor_down ();
195
151
                public virtual signal void cursor_up ();
209
165
        }
210
166
        [CCode (cheader_filename = "ibus.h")]
211
167
        public class EngineDesc : IBus.Serializable {
212
 
                public weak string author;
213
 
                public weak string description;
214
 
                public weak string icon;
215
 
                public weak string language;
216
 
                public weak string layout;
217
 
                public weak string license;
218
 
                public weak string longname;
219
 
                public weak string name;
220
 
                public uint rank;
221
168
                [CCode (has_construct_function = false)]
222
169
                public EngineDesc (string name, string longname, string description, string language, string license, string author, string icon, string layout);
223
170
                [CCode (has_construct_function = false)]
224
171
                public EngineDesc.from_xml_node (IBus.XMLNode node);
 
172
                public unowned string get_author ();
 
173
                public unowned string get_description ();
 
174
                public unowned string get_hotkeys ();
 
175
                public unowned string get_icon ();
 
176
                public unowned string get_language ();
 
177
                public unowned string get_layout ();
 
178
                public unowned string get_license ();
 
179
                public unowned string get_longname ();
 
180
                public unowned string get_name ();
 
181
                public uint get_rank ();
 
182
                [CCode (cname = "ibus_engine_desc_new2", has_construct_function = false)]
 
183
                public EngineDesc.new2 (...);
225
184
                public void output (GLib.StringBuilder output, int indent);
226
 
        }
227
 
        [Compact]
228
 
        [CCode (cheader_filename = "ibus.h")]
229
 
        public class Error {
230
 
                [CCode (has_construct_function = false)]
231
 
                public Error ();
232
 
                [CCode (has_construct_function = false)]
233
 
                public Error.from_message (IBus.DBusMessage message);
234
 
                [CCode (has_construct_function = false)]
235
 
                public Error.from_printf (string name, string format_message);
236
 
                [CCode (has_construct_function = false)]
237
 
                public Error.from_text (string name, string message);
 
185
                public string author { get; construct; }
 
186
                public string description { get; construct; }
 
187
                public string hotkeys { get; construct; }
 
188
                public string icon { get; construct; }
 
189
                public string language { get; construct; }
 
190
                public string layout { get; construct; }
 
191
                public string license { get; construct; }
 
192
                public string longname { get; construct; }
 
193
                public string name { get; construct; }
 
194
                public uint rank { get; construct; }
238
195
        }
239
196
        [CCode (cheader_filename = "ibus.h")]
240
197
        public class Factory : IBus.Service {
241
198
                [CCode (has_construct_function = false)]
242
 
                public Factory (IBus.Connection connection);
 
199
                public Factory (GLib.DBusConnection connection);
243
200
                public void add_engine (string engine_name, GLib.Type engine_type);
244
 
                [NoAccessorMethod]
245
 
                public IBus.Connection connection { owned get; construct; }
246
201
        }
247
202
        [CCode (cheader_filename = "ibus.h")]
248
203
        public class HotkeyProfile : IBus.Serializable {
251
206
                public bool add_hotkey (uint keyval, uint modifiers, GLib.Quark event);
252
207
                public bool add_hotkey_from_string (string str, GLib.Quark event);
253
208
                public GLib.Quark filter_key_event (uint keyval, uint modifiers, uint prev_keyval, uint prev_modifiers);
 
209
                public GLib.Quark lookup_hotkey (uint keyval, uint modifiers);
254
210
                public bool remove_hotkey (uint keyval, uint modifiers);
255
211
                public bool remove_hotkey_by_event (GLib.Quark event);
256
212
                public virtual signal void trigger (uint event, void* user_data);
257
213
        }
258
214
        [CCode (cheader_filename = "ibus.h")]
259
 
        public class InputContext : IBus.Proxy {
 
215
        public class InputContext : IBus.Proxy, GLib.Initable, GLib.AsyncInitable {
260
216
                [CCode (has_construct_function = false)]
261
 
                public InputContext (string path, IBus.Connection connection);
 
217
                public InputContext (string path, GLib.DBusConnection connection, GLib.Cancellable cancellable) throws GLib.Error;
262
218
                public void disable ();
263
219
                public void enable ();
264
220
                public void focus_in ();
265
221
                public void focus_out ();
266
222
                public unowned IBus.EngineDesc get_engine ();
267
 
                public static unowned IBus.InputContext get_input_context (string path, IBus.Connection connection);
 
223
                public static unowned IBus.InputContext get_input_context (string path, GLib.DBusConnection connection);
268
224
                public bool is_enabled ();
269
225
                public bool process_key_event (uint32 keyval, uint32 keycode, uint32 state);
270
226
                public void property_activate (string prop_name, int32 state);
337
293
                public void set_page_size (uint page_size);
338
294
                public void set_round (bool round);
339
295
        }
340
 
        [Compact]
341
 
        [CCode (ref_function = "ibus_message_ref", unref_function = "ibus_message_unref", cheader_filename = "ibus.h")]
342
 
        public class Message {
343
 
                [CCode (has_construct_function = false)]
344
 
                public Message (int message_type);
345
 
                public bool append_args (...);
346
 
                public bool append_args_valist (GLib.Type first_arg_type, void* va_args);
347
 
                [CCode (has_construct_function = false)]
348
 
                public Message.error (IBus.Message reply_to, string error_name, string error_message);
349
 
                [CCode (has_construct_function = false)]
350
 
                public Message.error_printf (IBus.Message reply_to, string error_name, string error_format);
351
 
                public bool get_args (out unowned IBus.Error error, ...);
352
 
                public bool get_args_valist (out unowned IBus.Error error, GLib.Type first_arg_type, void* va_args);
353
 
                public unowned string get_destination ();
354
 
                public unowned string get_error_message ();
355
 
                public unowned string get_error_name ();
356
 
                public unowned string get_interface ();
357
 
                public unowned string get_member ();
358
 
                public bool get_no_reply ();
359
 
                public unowned string get_path ();
360
 
                public uint32 get_reply_serial ();
361
 
                public unowned string get_sender ();
362
 
                public uint32 get_serial ();
363
 
                public bool is_error (string error_name);
364
 
                public bool is_method_call (string @interface, string method);
365
 
                public bool is_signal (string @interface, string signal_name);
366
 
                [CCode (has_construct_function = false)]
367
 
                public Message.method_call (string destination, string path, string @interface, string method);
368
 
                [CCode (has_construct_function = false)]
369
 
                public Message.method_return (IBus.Message reply_to);
370
 
                public bool set_destination (string destination);
371
 
                public bool set_error_name (string error_name);
372
 
                public bool set_interface (string @interface);
373
 
                public bool set_member (string member);
374
 
                public void set_no_reply (bool no_reply);
375
 
                public bool set_path (string path);
376
 
                public bool set_reply_serial (uint32 reply_serial);
377
 
                public bool set_sender (string sender);
378
 
                [CCode (has_construct_function = false)]
379
 
                public Message.@signal (string path, string @interface, string method);
380
 
                public unowned string to_string ();
381
 
        }
382
 
        [Compact]
383
 
        [CCode (cheader_filename = "ibus.h")]
384
 
        public class MessageIter {
385
 
                public bool append (GLib.Type type, void* value);
386
 
                public bool close_container (IBus.MessageIter sub);
387
 
                public bool copy_data (IBus.MessageIter src);
388
 
                public bool @get (GLib.Type type, void* value);
389
 
                public GLib.Type get_arg_type ();
390
 
                public void get_basic (void* value);
391
 
                public GLib.Type get_element_type ();
392
 
                public bool has_next ();
393
 
                public static bool init (IBus.Message message, IBus.MessageIter iter);
394
 
                public static void init_append (IBus.Message message, IBus.MessageIter iter);
395
 
                public bool next ();
396
 
                public bool open_container (GLib.Type type, string contained_signature, IBus.MessageIter sub);
397
 
                public bool recurse (GLib.Type type, IBus.MessageIter sub);
398
 
        }
399
296
        [CCode (cheader_filename = "ibus.h")]
400
297
        public class Object : GLib.InitiallyUnowned {
401
298
                public uint32 flags;
421
318
        [CCode (cheader_filename = "ibus.h")]
422
319
        public class PanelService : IBus.Service {
423
320
                [CCode (has_construct_function = false)]
424
 
                public PanelService (IBus.Connection connection);
 
321
                public PanelService (GLib.DBusConnection connection);
425
322
                public void candidate_clicked (uint index, uint button, uint state);
426
323
                public void cursor_down ();
427
324
                [NoWrapper]
428
 
                public virtual bool cursor_down_lookup_table (out unowned IBus.Error error);
 
325
                public virtual void cursor_down_lookup_table ();
429
326
                public void cursor_up ();
430
327
                [NoWrapper]
431
 
                public virtual bool cursor_up_lookup_table (out unowned IBus.Error error);
432
 
                [NoWrapper]
433
 
                public virtual bool destroy (out unowned IBus.Error error);
434
 
                [NoWrapper]
435
 
                public virtual bool focus_in (string input_context_path, out unowned IBus.Error error);
436
 
                [NoWrapper]
437
 
                public virtual bool focus_out (string input_context_path, out unowned IBus.Error error);
438
 
                [NoWrapper]
439
 
                public virtual bool hide_auxiliary_text (out unowned IBus.Error error);
440
 
                [NoWrapper]
441
 
                public virtual bool hide_language_bar (out unowned IBus.Error error);
442
 
                [NoWrapper]
443
 
                public virtual bool hide_lookup_table (out unowned IBus.Error error);
444
 
                [NoWrapper]
445
 
                public virtual bool hide_preedit_text (out unowned IBus.Error error);
 
328
                public virtual void cursor_up_lookup_table ();
 
329
                [NoWrapper]
 
330
                public virtual void destroy ();
 
331
                [NoWrapper]
 
332
                public virtual void focus_in (string input_context_path);
 
333
                [NoWrapper]
 
334
                public virtual void focus_out (string input_context_path);
 
335
                [NoWrapper]
 
336
                public virtual void hide_auxiliary_text ();
 
337
                [NoWrapper]
 
338
                public virtual void hide_language_bar ();
 
339
                [NoWrapper]
 
340
                public virtual void hide_lookup_table ();
 
341
                [NoWrapper]
 
342
                public virtual void hide_preedit_text ();
446
343
                public void page_down ();
447
344
                [NoWrapper]
448
 
                public virtual bool page_down_lookup_table (out unowned IBus.Error error);
 
345
                public virtual void page_down_lookup_table ();
449
346
                public void page_up ();
450
347
                [NoWrapper]
451
 
                public virtual bool page_up_lookup_table (out unowned IBus.Error error);
452
 
                public void property_active (string prop_name, int prop_state);
 
348
                public virtual void page_up_lookup_table ();
 
349
                public void property_active (string prop_name, uint prop_state);
453
350
                public void property_hide (string prop_name);
454
351
                public void property_show (string prop_name);
455
352
                [NoWrapper]
456
 
                public virtual bool register_properties (IBus.PropList prop_list, out unowned IBus.Error error);
457
 
                [NoWrapper]
458
 
                public virtual bool reset (out unowned IBus.Error error);
459
 
                [NoWrapper]
460
 
                public virtual bool set_cursor_location (int x, int y, int w, int h, out unowned IBus.Error error);
461
 
                [NoWrapper]
462
 
                public virtual bool show_auxiliary_text (out unowned IBus.Error error);
463
 
                [NoWrapper]
464
 
                public virtual bool show_language_bar (out unowned IBus.Error error);
465
 
                [NoWrapper]
466
 
                public virtual bool show_lookup_table (out unowned IBus.Error error);
467
 
                [NoWrapper]
468
 
                public virtual bool show_preedit_text (out unowned IBus.Error error);
469
 
                [NoWrapper]
470
 
                public virtual bool start_setup (out unowned IBus.Error error);
471
 
                [NoWrapper]
472
 
                public virtual bool state_changed (out unowned IBus.Error error);
473
 
                [NoWrapper]
474
 
                public virtual bool update_auxiliary_text (IBus.Text text, bool visible, out unowned IBus.Error error);
475
 
                [NoWrapper]
476
 
                public virtual bool update_lookup_table (IBus.LookupTable lookup_table, bool visible, out unowned IBus.Error error);
477
 
                [NoWrapper]
478
 
                public virtual bool update_preedit_text (IBus.Text text, uint cursor_pos, bool visible, out unowned IBus.Error error);
479
 
                [NoWrapper]
480
 
                public virtual bool update_property (IBus.Property prop, out unowned IBus.Error error);
481
 
                [NoAccessorMethod]
482
 
                public IBus.Connection connection { owned get; construct; }
483
 
        }
484
 
        [Compact]
485
 
        [CCode (ref_function = "ibus_pending_call_ref", unref_function = "ibus_pending_call_unref", cheader_filename = "ibus.h")]
486
 
        public class PendingCall {
487
 
                public static bool allocate_data_slot (int slot_p);
488
 
                public void block ();
489
 
                public void cancel ();
490
 
                public static void free_data_slot (int slot_p);
491
 
                public bool get_completed ();
492
 
                public void* get_data (int slot);
493
 
                public bool set_data (int slot, void* data, GLib.DestroyNotify free_data_func);
494
 
                public bool set_notify (IBus.PendingCallNotifyFunction function, GLib.DestroyNotify free_user_data);
495
 
                public unowned IBus.Message steal_reply ();
496
 
                public void wait ();
 
353
                public virtual void register_properties (IBus.PropList prop_list);
 
354
                [NoWrapper]
 
355
                public virtual void reset ();
 
356
                [NoWrapper]
 
357
                public virtual void set_cursor_location (int x, int y, int w, int h);
 
358
                [NoWrapper]
 
359
                public virtual void show_auxiliary_text ();
 
360
                [NoWrapper]
 
361
                public virtual void show_language_bar ();
 
362
                [NoWrapper]
 
363
                public virtual void show_lookup_table ();
 
364
                [NoWrapper]
 
365
                public virtual void show_preedit_text ();
 
366
                [NoWrapper]
 
367
                public virtual void start_setup ();
 
368
                [NoWrapper]
 
369
                public virtual void state_changed ();
 
370
                [NoWrapper]
 
371
                public virtual void update_auxiliary_text (IBus.Text text, bool visible);
 
372
                [NoWrapper]
 
373
                public virtual void update_lookup_table (IBus.LookupTable lookup_table, bool visible);
 
374
                [NoWrapper]
 
375
                public virtual void update_preedit_text (IBus.Text text, uint cursor_pos, bool visible);
 
376
                [NoWrapper]
 
377
                public virtual void update_property (IBus.Property prop);
497
378
        }
498
379
        [CCode (cheader_filename = "ibus.h")]
499
380
        public class PropList : IBus.Serializable {
527
408
                public bool update (IBus.Property prop_update);
528
409
        }
529
410
        [CCode (cheader_filename = "ibus.h")]
530
 
        public class Proxy : IBus.Object {
 
411
        public class Proxy : GLib.DBusProxy, GLib.Initable, GLib.AsyncInitable {
 
412
                public uint32 flags;
531
413
                [CCode (has_construct_function = false)]
532
 
                public Proxy (string name, string path, IBus.Connection connection);
533
 
                public bool call (string method, ...);
534
 
                public bool call_with_reply (string method, out unowned IBus.PendingCall pending, int timeout_milliseconds, out unowned IBus.Error error, ...);
535
 
                public unowned IBus.Message call_with_reply_and_block (string method, int timeout_milliseconds, out unowned IBus.Error error, ...);
536
 
                public unowned IBus.Connection get_connection ();
537
 
                public unowned string get_interface ();
538
 
                public unowned string get_name ();
539
 
                public unowned string get_path ();
540
 
                public unowned string get_unique_name ();
541
 
                public bool handle_signal (IBus.Message message);
542
 
                public bool send (IBus.Message message);
543
 
                public bool send_with_reply (IBus.Message message, out unowned IBus.PendingCall pending, int timeout_milliseconds);
544
 
                public unowned IBus.Message send_with_reply_and_block (IBus.Message message);
545
 
                public IBus.Connection connection { get; construct; }
546
 
                public string @interface { get; construct; }
547
 
                public string name { get; construct; }
548
 
                public string path { get; construct; }
549
 
                public virtual signal bool ibus_signal (void* message);
 
414
                protected Proxy ();
 
415
                [HasEmitter]
 
416
                public virtual signal void destroy ();
550
417
        }
551
418
        [Compact]
552
419
        [CCode (cheader_filename = "ibus.h")]
558
425
        }
559
426
        [CCode (cheader_filename = "ibus.h")]
560
427
        public class Serializable : IBus.Object {
561
 
                public uint32 flags;
562
428
                [CCode (has_construct_function = false)]
563
429
                public Serializable ();
564
430
                public virtual bool copy ();
565
 
                public virtual bool deserialize (IBus.MessageIter iter);
 
431
                public virtual int deserialize (GLib.Variant variant);
566
432
                public GLib.Value get_qattachment (GLib.Quark key);
567
433
                public void remove_qattachment (GLib.Quark key);
568
 
                public virtual bool serialize (IBus.MessageIter iter);
 
434
                public virtual bool serialize ();
569
435
                public bool set_qattachment (GLib.Quark key, GLib.Value value);
570
436
        }
571
437
        [CCode (cheader_filename = "ibus.h")]
572
 
        public class Server : IBus.Object {
573
 
                [CCode (has_construct_function = false)]
574
 
                public Server ();
575
 
                public void disconnect ();
576
 
                public unowned string get_address ();
577
 
                public unowned string get_id ();
578
 
                public bool is_connected ();
579
 
                public bool listen (string address);
580
 
                public bool set_auth_mechanisms (string mechanisms);
581
 
                [NoAccessorMethod]
582
 
                public GLib.Type connection_type { get; set; }
583
 
                public virtual signal void new_connection (GLib.Object connectin);
584
 
        }
585
 
        [CCode (cheader_filename = "ibus.h")]
586
438
        public class Service : IBus.Object {
587
439
                [CCode (has_construct_function = false)]
588
 
                public Service (string path);
589
 
                public bool add_to_connection (IBus.Connection connection);
590
 
                public GLib.List<weak IBus.Connection> get_connections ();
591
 
                public unowned string get_path ();
592
 
                public bool handle_message (IBus.Connection connection, IBus.Message message);
593
 
                public bool remove_from_all_connections ();
594
 
                public bool remove_from_connection (IBus.Connection connection);
595
 
                public bool send_signal (string @interface, string name, ...);
596
 
                public string path { get; construct; }
597
 
                public virtual signal bool ibus_message (void* connection, void* message);
598
 
                public virtual signal bool ibus_signal (void* connection, void* message);
 
440
                public Service (GLib.DBusConnection connection, string path);
 
441
                [CCode (cname = "ibus_service_class_add_interfaces")]
 
442
                public class bool add_interfaces (string xml_data);
 
443
                public bool emit_signal (string dest_bus_name, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
 
444
                public unowned GLib.DBusConnection get_connection ();
 
445
                public unowned string get_object_path ();
 
446
                public bool register (GLib.DBusConnection connection) throws GLib.Error;
 
447
                [NoWrapper]
 
448
                public virtual unowned GLib.Variant service_get_property (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name) throws GLib.Error;
 
449
                [NoWrapper]
 
450
                public virtual void service_method_call (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation);
 
451
                [NoWrapper]
 
452
                public virtual bool service_set_property (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error;
 
453
                public void unregister (GLib.DBusConnection connection);
 
454
                public GLib.DBusConnection connection { get; construct; }
 
455
                public string object_path { get; construct; }
599
456
        }
600
457
        [CCode (cheader_filename = "ibus.h")]
601
458
        public class Text : IBus.Serializable {
602
459
                public weak IBus.AttrList attrs;
603
460
                public bool is_static;
604
461
                public weak string text;
 
462
                [CCode (has_construct_function = false)]
 
463
                protected Text ();
605
464
                public void append_attribute (uint type, uint value, uint start_index, int end_index);
606
465
                [CCode (has_construct_function = false)]
607
466
                public Text.from_printf (string fmt);
702
561
                MENU,
703
562
                SEPARATOR
704
563
        }
705
 
        [CCode (cheader_filename = "ibus.h")]
706
 
        public delegate void ConnectionReplyFunc (IBus.Connection connection, IBus.Message reply);
707
 
        [CCode (cheader_filename = "ibus.h")]
708
 
        public delegate void DBusConnectionSetupFunc (IBus.DBusConnection connection);
709
 
        [CCode (cheader_filename = "ibus.h")]
710
 
        public delegate void DBusServerSetupFunc (IBus.DBusServer server);
711
564
        [CCode (cheader_filename = "ibus.h", has_target = false)]
712
565
        public delegate void FreeFunc (void* object);
713
566
        [CCode (cheader_filename = "ibus.h", has_target = false)]
714
 
        public delegate bool IBusMessageFunc (IBus.Connection connection, IBus.Message message);
715
 
        [CCode (cheader_filename = "ibus.h", has_target = false)]
716
 
        public delegate bool IBusSignalFunc (IBus.Connection connection, IBus.Message message);
717
 
        [CCode (cheader_filename = "ibus.h")]
718
 
        public delegate bool MessageFunc (IBus.Connection connection, IBus.Message message);
719
 
        [CCode (cheader_filename = "ibus.h", has_target = false)]
720
 
        public delegate void NewConnectionFunc (IBus.Server server, IBus.Connection connection);
721
 
        [CCode (cheader_filename = "ibus.h", has_target = false)]
722
567
        public delegate void ObjectDestroyFunc (IBus.Object p1);
723
 
        [CCode (cheader_filename = "ibus.h")]
724
 
        public delegate void PendingCallNotifyFunction (IBus.PendingCall pending);
725
568
        [CCode (cheader_filename = "ibus.h", has_target = false)]
726
569
        public delegate bool SerializableCopyFunc (IBus.Serializable dest, IBus.Serializable src);
727
570
        [CCode (cheader_filename = "ibus.h", has_target = false)]
728
 
        public delegate bool SerializableDeserializeFunc (IBus.Serializable object, IBus.MessageIter iter);
729
 
        [CCode (cheader_filename = "ibus.h", has_target = false)]
730
 
        public delegate bool SerializableSerializeFunc (IBus.Serializable object, IBus.MessageIter iter);
731
 
        [CCode (cheader_filename = "ibus.h", has_target = false)]
732
 
        public delegate bool ServiceIBusMessageFunc (IBus.Service service, IBus.Connection connection, IBus.Message message);
733
 
        [CCode (cheader_filename = "ibus.h", has_target = false)]
734
 
        public delegate bool ServiceIBusSignalFunc (IBus.Service service, IBus.Connection connection, IBus.Message message);
 
571
        public delegate int SerializableDeserializeFunc (IBus.Serializable object, GLib.Variant variant);
 
572
        [CCode (cheader_filename = "ibus.h", has_target = false)]
 
573
        public delegate bool SerializableSerializeFunc (IBus.Serializable object, GLib.VariantBuilder builder);
735
574
        [CCode (cheader_filename = "ibus.h")]
736
575
        public const int @0;
737
576
        [CCode (cheader_filename = "ibus.h")]
4757
4596
        [CCode (cheader_filename = "ibus.h")]
4758
4597
        public static unowned IBus.Attribute attr_underline_new (uint underline_type, uint start_index, uint end_index);
4759
4598
        [CCode (cheader_filename = "ibus.h")]
4760
 
        public static void dbus_connection_setup (IBus.DBusConnection connection);
4761
 
        [CCode (cheader_filename = "ibus.h")]
4762
 
        public static void dbus_server_setup (IBus.DBusServer server);
4763
 
        [CCode (cheader_filename = "ibus.h")]
4764
4599
        public static void free_strv (string strv);
4765
4600
        [CCode (cheader_filename = "ibus.h")]
4766
4601
        public static unowned string get_address ();
4785
4620
        [CCode (cheader_filename = "ibus.h")]
4786
4621
        public static void main ();
4787
4622
        [CCode (cheader_filename = "ibus.h")]
4788
 
        public static void mainloop_setup (IBus.DBusConnectionSetupFunc connection_func, IBus.DBusServerSetupFunc server_func);
4789
 
        [CCode (cheader_filename = "ibus.h")]
4790
4623
        public static void quit ();
4791
4624
        [CCode (cheader_filename = "ibus.h")]
4792
4625
        public static void set_display (string display);
4793
4626
        [CCode (cheader_filename = "ibus.h")]
4794
 
        public static GLib.Type type_get_array ();
4795
 
        [CCode (cheader_filename = "ibus.h")]
4796
 
        public static GLib.Type type_get_dict_entry ();
4797
 
        [CCode (cheader_filename = "ibus.h")]
4798
 
        public static GLib.Type type_get_object_path ();
4799
 
        [CCode (cheader_filename = "ibus.h")]
4800
 
        public static GLib.Type type_get_struct ();
4801
 
        [CCode (cheader_filename = "ibus.h")]
4802
 
        public static GLib.Type type_get_variant ();
 
4627
        public static void set_log_handler (bool verbose);
4803
4628
        [CCode (cheader_filename = "ibus.h")]
4804
4629
        public static void write_address (string address);
4805
4630
        [CCode (cheader_filename = "ibus.h")]