IBus.ConfigService

g GObject.InitiallyUnowned GObject.InitiallyUnowned IBus.Object IBus.Object GObject.InitiallyUnowned->IBus.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned IBus.ConfigService IBus.ConfigService IBus.Service IBus.Service IBus.Object->IBus.Service IBus.Service->IBus.ConfigService

Subclasses:

None

Methods

Inherited:

IBus.Service (8), IBus.Object (2), GObject.Object (37)

Structs:

IBus.ServiceClass (2), GObject.ObjectClass (5)

class

new (connection)

value_changed (section, name, value)

Virtual Methods

Inherited:

IBus.Service (3), IBus.Object (1), GObject.Object (7)

do_get_value (section, name)

do_get_values (section)

do_set_value (section, name, value)

do_unset_value (section, name)

Properties

Inherited:

IBus.Service (2)

Signals

Inherited:

IBus.Object (1), GObject.Object (1)

Fields

Inherited:

IBus.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

IBus.Service

r

Class Details

class IBus.ConfigService(**kwargs)
Bases:

IBus.Service

Abstract:

No

Structure:

IBus.ConfigServiceClass

An IBus.ConfigService is a base class for other configuration services such as GConf. Currently, directly known sub class is IBusConfigGConf.

IBus.ConfigServiceClass has following member functions:

  • bool set_value(IBus.ConfigService *config, const str *section, const str *name, const GObject.Value *value, IBus.Error **error)

    config:

    A configure service

    section:

    Section name of the configuration option.

    name:

    Name of the configuration option.

    value:

    GObject.Value that holds the value.

    error:

    Error outputs here.

    Returns:

    True if succeed; False otherwise.

    Set a value to a configuration option.

  • bool get_value(IBus.ConfigService *config, const str *section, const str *name, GObject.Value *value, IBus.Error **error)

    config:

    A configure service

    section:

    Section name of the configuration option.

    name:

    Name of the configuration option.

    value:

    GObject.Value that holds the value.

    error:

    Error outputs here.

    Returns:

    True if succeed; False otherwise.

    Get value of a configuration option.

  • bool unset(IBus.ConfigService *config, const str *section, const str *name, IBus.Error **error)

    config:

    A configure service

    section:

    Section name of the configuration option.

    name:

    Name of the configuration option.

    error:

    Error outputs here.

    Returns:

    True if succeed; False otherwise.

    Remove an entry to a configuration option.

classmethod new(connection)
Parameters:

connection (Gio.DBusConnection) – An Gio.DBusConnection.

Returns:

A newly allocated IBus.ConfigServices.

Return type:

IBus.ConfigService

Creates an new IBus.ConfigService from an Gio.DBusConnection.

value_changed(section, name, value)
Parameters:
  • section (str) – Section name of the configuration option.

  • name (str) – Name of the configure option.

  • value (GLib.Variant) – GLib.Variant that holds the value.

Change a value of a configuration option by sending a “ValueChanged” message to IBus service.

do_get_value(section, name) virtual
Parameters:
  • section (str) –

  • name (str) –

Return type:

GLib.Variant

do_get_values(section) virtual
Parameters:

section (str) –

Return type:

GLib.Variant

do_set_value(section, name, value) virtual
Parameters:
Return type:

bool

do_unset_value(section, name) virtual
Parameters:
  • section (str) –

  • name (str) –

Return type:

bool