Blame src/ibusbus.h

Packit Service 1d8f1c
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
Packit Service 1d8f1c
/* vim:set et sts=4: */
Packit Service 1d8f1c
/* ibus - The Input Bus
Packit Service 1d8f1c
 * Copyright (C) 2008-2013 Peng Huang <shawn.p.huang@gmail.com>
Packit Service 1d8f1c
 * Copyright (C) 2008-2013 Red Hat, Inc.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This library is free software; you can redistribute it and/or
Packit Service 1d8f1c
 * modify it under the terms of the GNU Lesser General Public
Packit Service 1d8f1c
 * License as published by the Free Software Foundation; either
Packit Service 1d8f1c
 * version 2.1 of the License, or (at your option) any later version.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This library is distributed in the hope that it will be useful,
Packit Service 1d8f1c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 1d8f1c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 1d8f1c
 * Lesser General Public License for more details.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * You should have received a copy of the GNU Lesser General Public
Packit Service 1d8f1c
 * License along with this library; if not, write to the Free Software
Packit Service 1d8f1c
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
Packit Service 1d8f1c
 * USA
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
Packit Service 1d8f1c
#if !defined (__IBUS_H_INSIDE__) && !defined (IBUS_COMPILATION)
Packit Service 1d8f1c
#error "Only <ibus.h> can be included directly"
Packit Service 1d8f1c
#endif
Packit Service 1d8f1c
Packit Service 1d8f1c
#ifndef __IBUS_BUS_H_
Packit Service 1d8f1c
#define __IBUS_BUS_H_
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * SECTION: ibusbus
Packit Service 1d8f1c
 * @short_description: Connect with IBus daemon.
Packit Service 1d8f1c
 * @stability: Stable
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * An IBusBus connects with IBus daemon.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
#include <gio/gio.h>
Packit Service 1d8f1c
#include <glib.h>
Packit Service 1d8f1c
#include "ibusinputcontext.h"
Packit Service 1d8f1c
#include "ibusconfig.h"
Packit Service 1d8f1c
#include "ibuscomponent.h"
Packit Service 1d8f1c
#include "ibusshare.h"
Packit Service 1d8f1c
Packit Service 1d8f1c
/*
Packit Service 1d8f1c
 * Type macros.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
Packit Service 1d8f1c
/* define GOBJECT macros */
Packit Service 1d8f1c
#define IBUS_TYPE_BUS             \
Packit Service 1d8f1c
    (ibus_bus_get_type ())
Packit Service 1d8f1c
#define IBUS_BUS(obj)             \
Packit Service 1d8f1c
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), IBUS_TYPE_BUS, IBusBus))
Packit Service 1d8f1c
#define IBUS_BUS_CLASS(klass)     \
Packit Service 1d8f1c
    (G_TYPE_CHECK_CLASS_CAST ((klass), IBUS_TYPE_BUS, IBusBusClass))
Packit Service 1d8f1c
#define IBUS_IS_BUS(obj)          \
Packit Service 1d8f1c
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IBUS_TYPE_BUS))
Packit Service 1d8f1c
#define IBUS_IS_BUS_CLASS(klass)  \
Packit Service 1d8f1c
    (G_TYPE_CHECK_CLASS_TYPE ((klass), IBUS_TYPE_BUS))
Packit Service 1d8f1c
#define IBUS_BUS_GET_CLASS(obj)   \
Packit Service 1d8f1c
    (G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_TYPE_BUS, IBusBusClass))
Packit Service 1d8f1c
Packit Service 1d8f1c
G_BEGIN_DECLS
Packit Service 1d8f1c
Packit Service 1d8f1c
typedef struct _IBusBus IBusBus;
Packit Service 1d8f1c
typedef struct _IBusBusClass IBusBusClass;
Packit Service 1d8f1c
typedef struct _IBusBusPrivate IBusBusPrivate;
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * IBusBus:
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * An opaque data type representing IBus bus (daemon communication) status.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
struct _IBusBus {
Packit Service 1d8f1c
    IBusObject parent;
Packit Service 1d8f1c
    /* instance members */
Packit Service 1d8f1c
Packit Service 1d8f1c
    IBusBusPrivate *priv;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _IBusBusClass {
Packit Service 1d8f1c
    IBusObjectClass parent;
Packit Service 1d8f1c
    /* class members */
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
GType        ibus_bus_get_type          (void);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_new:
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Creates a new #IBusBus instance.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: A newly allocated #IBusBus instance, and the instance is not
Packit Service 1d8f1c
 * floating.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusBus     *ibus_bus_new               (void);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_new_async:
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Creates a new #IBusBus instance. The instance will asynchronously connect
Packit Service 1d8f1c
 * to the IBus daemon.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: A newly allocated #IBusBus instance, and the instance is not
Packit Service 1d8f1c
 * floating.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusBus     *ibus_bus_new_async         (void);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_new_async_client:
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Creates a new #IBusBus instance for client use only. It will possibly
Packit Service 1d8f1c
 * be limited in what it can do.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * The instance will asynchronously connect to the IBus daemon.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: A newly allocated #IBusBus instance, and the instance is not
Packit Service 1d8f1c
 * floating.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusBus     *ibus_bus_new_async_client  (void);
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_is_connected:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Return %TRUE if @bus is connected to IBus daemon.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if @bus is connected, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_is_connected      (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_connection:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Gets a #GDBusConnection of an #IBusBus instance.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer none): A #GDBusConnection of an #IBusBus instance.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GDBusConnection *
Packit Service 1d8f1c
             ibus_bus_get_connection    (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_service_name:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Return the main service name to use for calls on the ibus connection.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: at dbus name.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
const gchar * ibus_bus_get_service_name (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_hello:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This function sends a "HELLO" message to DBus daemon,
Packit Service 1d8f1c
 * which replies the unique name of current IBus process.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: The unique name of IBus process in DBus.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
const gchar *ibus_bus_hello             (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_request_name:
Packit Service 1d8f1c
 * @bus: the IBusBus instance to be processed.
Packit Service 1d8f1c
 * @name: Name to be requested.
Packit Service 1d8f1c
 * @flags: IBusBusNameFlag.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Request a name from IBus daemon synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: 0 if failed; IBusBusRequestNameReply otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
guint32      ibus_bus_request_name      (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name,
Packit Service 1d8f1c
                                         guint32         flags);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_request_name_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name to be requested.
Packit Service 1d8f1c
 * @flags: Flags (FixMe).
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL
Packit Service 1d8f1c
 *      if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Request a name from IBus daemon asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void        ibus_bus_request_name_async (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name,
Packit Service 1d8f1c
                                         guint           flags,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_request_name_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_request_name_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_request_name_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: 0 if failed; positive number otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
guint       ibus_bus_request_name_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_release_name:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name to be released.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Release a name to IBus daemon synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: 0 if failed; positive number otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
guint        ibus_bus_release_name      (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_release_name_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name to be released.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Release a name to IBus daemon asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_release_name_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_release_name_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_release_name_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_release_name_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: 0 if failed; positive number otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
guint        ibus_bus_release_name_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_queued_owners:
Packit Service 1d8f1c
 * @bus: An IBusBus.
Packit Service 1d8f1c
 * @name: Name to be queried.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Lists the unique bus names of connections currently queued for a bus name.
Packit Service 1d8f1c
 * FIXME add an asynchronous version.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full) (element-type utf8):
Packit Service 1d8f1c
 *           The unique bus names of connections currently queued for @name.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GList *      ibus_bus_list_queued_owners
Packit Service 1d8f1c
                                        (IBusBus      *bus,
Packit Service 1d8f1c
                                         const gchar  *name);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_name_has_owner:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name to be checked.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Checks whether the name has owner synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the name has owner, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_name_has_owner    (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_name_has_owner_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name to be checked.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Checks whether the name has owner asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_name_has_owner_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_name_has_owner_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_name_has_owner_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_name_has_owner_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the name has owner, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_name_has_owner_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_names:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Return lists that attached to @bus.
Packit Service 1d8f1c
 * <note><para>[FixMe] Not implemented yet, only return %NULL.</para></note>
Packit Service 1d8f1c
 * <note><para>[FixMe] Add async version.</para></note>
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full) (element-type utf8): Lists that attached to @bus.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GList       *ibus_bus_list_names        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_add_match:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @rule: Match rule.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Add a match rule to an #IBusBus synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the rule is added. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_add_match         (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *rule);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_add_match_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @rule: Match rule.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Add a match rule to an #IBusBus asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_add_match_async   (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *rule,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_add_match_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_add_match_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_add_match_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the rule is added. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_add_match_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_remove_match:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @rule: Match rule.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Remove a match rule to an #IBusBus synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the rule is removed. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_remove_match      (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *rule);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_remove_match_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @rule: Match rule.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Remove a match rule to an IBusBus asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_remove_match_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *rule,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_remove_match_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_remove_match_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_remove_match_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the rule is removed. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_remove_match_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_name_owner:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Return the name owner synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: Owner of the name. The returned value must be freed with g_free().
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gchar       *ibus_bus_get_name_owner    (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_name_owner_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @name: Name.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Return the name owner asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_get_name_owner_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *name,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_name_owner_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_get_name_owner_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_get_name_owner_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: Owner of the name. The returned value must be freed with g_free().
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gchar       *ibus_bus_get_name_owner_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
/* declare ibus methods */
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_exit:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @restart: Whether restarting the ibus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Exit or restart ibus-daemon synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the "Exit" call is suceeded, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_exit              (IBusBus        *bus,
Packit Service 1d8f1c
                                         gboolean        restart);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_exit_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @restart: Whether restarting the ibus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Exit or restart ibus-daemon asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void        ibus_bus_exit_async         (IBusBus        *bus,
Packit Service 1d8f1c
                                         gboolean        restart,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_exit_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_exit_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_exit_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the "Exit" call is suceeded, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean    ibus_bus_exit_async_finish  (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_create_input_context:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @client_name: Name of client.
Packit Service 1d8f1c
 *      "CreateInputContext" call is suceeded, %NULL otherwise.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Create an input context for client synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full): An newly allocated #IBusInputContext if the
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusInputContext *
Packit Service 1d8f1c
            ibus_bus_create_input_context
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *client_name);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_create_input_context_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @client_name: Name of client.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
Packit Service 1d8f1c
 *      It should not be %NULL.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Create an input context for client asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void        ibus_bus_create_input_context_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *client_name,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_create_input_context_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_create_input_context_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_create_input_context_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full): An newly allocated #IBusInputContext if the
Packit Service 1d8f1c
 *      "CreateInputContext" call is suceeded, %NULL otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusInputContext *
Packit Service 1d8f1c
             ibus_bus_create_input_context_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_current_input_context:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get the current focused input context synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: The named of currently focued #IBusInputContext if the
Packit Service 1d8f1c
 *          "CurrentInputContext" call suceeded, %NULL otherwise. The return
Packit Service 1d8f1c
 *          value must be freed with g_free().
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gchar       *ibus_bus_current_input_context
Packit Service 1d8f1c
                                        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_current_input_context_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get the current focused input context asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_current_input_context_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_current_input_context_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_current_input_context_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_current_input_context_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: The named of currently focued IBusInputContext if the
Packit Service 1d8f1c
 *          "CurrentInputContext" call suceeded, %NULL otherwise. The return
Packit Service 1d8f1c
 *          value must be freed with g_free().
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gchar       *ibus_bus_current_input_context_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_register_component:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @component: A input engine component.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Register a componet to an #IBusBus synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the "RegisterComponent" call is suceeded, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_register_component
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         IBusComponent  *component);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_register_component_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @component: A input engine component.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Register a componet to an #IBusBus asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_register_component_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         IBusComponent  *component,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer            user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_register_component_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_register_component_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_register_component_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the "RegisterComponent" call is suceeded, %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_register_component_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_engines:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * List engines synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer container) (element-type IBusEngineDesc):
Packit Service 1d8f1c
 *         A List of engines.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GList       *ibus_bus_list_engines      (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_engines_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL
Packit Service 1d8f1c
 *      if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * List engines asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_list_engines_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_engines_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_list_engines_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_list_engines_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer container) (element-type IBusEngineDesc):
Packit Service 1d8f1c
 *         A List of engines.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GList       *ibus_bus_list_engines_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
#ifndef IBUS_DISABLE_DEPRECATED
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_active_engines:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * List active engines synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer container) (element-type IBusEngineDesc):
Packit Service 1d8f1c
 *        A List of active engines.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Read dconf value
Packit Service 1d8f1c
 * /desktop/ibus/general/preload-engines instead.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
GList       *ibus_bus_list_active_engines
Packit Service 1d8f1c
                                        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_active_engines_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL
Packit Service 1d8f1c
 *      if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * List active engines asynchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Read dconf value
Packit Service 1d8f1c
 * /desktop/ibus/general/preload-engines instead.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
void         ibus_bus_list_active_engines_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_list_active_engines_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_list_active_engines_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_list_active_engines_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer container) (element-type IBusEngineDesc):
Packit Service 1d8f1c
 *         A List of active engines.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Read dconf value
Packit Service 1d8f1c
 * /desktop/ibus/general/preload-engines instead.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
GList       *ibus_bus_list_active_engines_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError         **error);
Packit Service 1d8f1c
#endif /* IBUS_DISABLE_DEPRECATED */
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_engines_by_names:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @names: (array zero-terminated=1): A %NULL-terminated array of names.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get engines by given names synchronously. If some engine names do not exist,
Packit Service 1d8f1c
 * this function will simply ignore them, and return rest of engines.
Packit Service 1d8f1c
 * TODO(penghuang): add asynchronous version
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (array zero-terminated=1) (transfer full):
Packit Service 1d8f1c
 *         A %NULL-terminated array of engines.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusEngineDesc **
Packit Service 1d8f1c
             ibus_bus_get_engines_by_names
Packit Service 1d8f1c
                                        (IBusBus             *bus,
Packit Service 1d8f1c
                                         const gchar * const *names);
Packit Service 1d8f1c
#ifndef IBUS_DISABLE_DEPRECATED
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_use_sys_layout:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Check if the bus's "use_sys_layout" option is enabled or not synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if "use_sys_layout" option is enabled.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Read dconf value
Packit Service 1d8f1c
 * /desktop/ibus/general/use_system_keyboard_layout instead.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
gboolean     ibus_bus_get_use_sys_layout
Packit Service 1d8f1c
                                        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_use_sys_layout_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Check if the bus's "use_sys_layout" option is enabled or not asynchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Read dconf value
Packit Service 1d8f1c
 * /desktop/ibus/general/use_system_keyboard_layout instead.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
void         ibus_bus_get_use_sys_layout_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_use_sys_layout_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_get_use_sys_layout_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_get_use_sys_layout_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: TRUE if "use_sys_layout" option is enabled.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Read dconf value
Packit Service 1d8f1c
 * /desktop/ibus/general/use_system_keyboard_layout instead.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
gboolean     ibus_bus_get_use_sys_layout_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_use_global_engine:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Check if the bus's "use_global_engine" option is enabled or not
Packit Service 1d8f1c
 * synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: TRUE if "use_global_engine" option is enabled.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Currently global engine is always used.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
gboolean     ibus_bus_get_use_global_engine
Packit Service 1d8f1c
                                        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_use_global_engine_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Check if the bus's "use_global_engine" option is enabled or not asynchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Currently global engine is always used.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
void         ibus_bus_get_use_global_engine_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_use_global_engine_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_get_use_global_engine_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_get_use_global_engine_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if "use_global_engine" option is enabled.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Currently global engine is always used.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
gboolean     ibus_bus_get_use_global_engine_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError         **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_is_global_engine_enabled:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Check if the current global engine is enabled or not synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the current global engine is enabled.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Probably this would be used for Chrome OS only.
Packit Service 1d8f1c
 * Currently global engine is always used and ibus_bus_get_global_engine()
Packit Service 1d8f1c
 * returns NULL until the first global engine is assigned.
Packit Service 1d8f1c
 * You can use ibus_set_log_handler() to disable a warning when
Packit Service 1d8f1c
 * ibus_bus_get_global_engine() returns NULL.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
gboolean     ibus_bus_is_global_engine_enabled
Packit Service 1d8f1c
                                        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_is_global_engine_enabled_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Check if the current global engine is enabled or not asynchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Probably this would be used for Chrome OS only.
Packit Service 1d8f1c
 * Currently global engine is always used and ibus_bus_get_global_engine()
Packit Service 1d8f1c
 * returns NULL until the first global engine is assigned.
Packit Service 1d8f1c
 * You can use ibus_set_log_handler() to disable a warning when
Packit Service 1d8f1c
 * ibus_bus_get_global_engine() returns NULL.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
void         ibus_bus_is_global_engine_enabled_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                        gpointer         user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_is_global_engine_enabled_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_is_global_engine_enabled_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_is_global_engine_enabled_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the current global engine is enabled.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Deprecated: 1.5.3: Probably this would be used for Chrome OS only.
Packit Service 1d8f1c
 * Currently global engine is always used and ibus_bus_get_global_engine()
Packit Service 1d8f1c
 * returns NULL until the first global engine is assigned.
Packit Service 1d8f1c
 * You can use ibus_set_log_handler() to disable a warning when
Packit Service 1d8f1c
 * ibus_bus_get_global_engine() returns NULL.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBUS_DEPRECATED
Packit Service 1d8f1c
gboolean     ibus_bus_is_global_engine_enabled_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
#endif /* IBUS_DISABLE_DEPRECATED */
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_global_engine:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get the description of current global engine synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full): The description of current global engine,
Packit Service 1d8f1c
 * or %NULL if there is no global engine.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusEngineDesc *
Packit Service 1d8f1c
             ibus_bus_get_global_engine (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_global_engine_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL
Packit Service 1d8f1c
 *      if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get the description of current global engine asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_get_global_engine_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_global_engine_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_get_global_engine_async_finish().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_get_global_engine_async_finish().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer none): The description of current global engine,
Packit Service 1d8f1c
 * or %NULL if there is no global engine.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusEngineDesc *
Packit Service 1d8f1c
             ibus_bus_get_global_engine_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_global_engine:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @global_engine: A new engine name.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Set current global engine synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if the global engine was set successfully.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_set_global_engine (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *global_engine);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_global_engine_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @global_engine: A new engine name.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Set current global engine asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_set_global_engine_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *global_engine,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_global_engine_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_set_global_engine_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_set_global_engine_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if no IPC errros. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_set_global_engine_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_watch_dbus_signal:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @watch: %TRUE if you want ibusbus to emit "name-owner-changed" signal when
Packit Service 1d8f1c
 * ibus-daemon emits the NameOwnerChanged DBus signal.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Start or stop watching the NameOwnerChanged DBus signal.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_set_watch_dbus_signal
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gboolean        watch);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_watch_ibus_signal:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @watch: %TRUE if you want ibusbus to emit "global-engine-changed" signal when
Packit Service 1d8f1c
 * ibus-daemon emits the GlobalEngineChanged IBus signal.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Start or stop watching the GlobalEngineChanged IBus signal.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_set_watch_ibus_signal
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         gboolean        watch);
Packit Service 1d8f1c
Packit Service 1d8f1c
/* declare config apis */
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_config:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get the config instance from #IBusBus.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer none): An #IBusConfig object which is configurable with
Packit Service 1d8f1c
 * @bus.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
IBusConfig  *ibus_bus_get_config        (IBusBus        *bus);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_preload_engines:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @names: (array zero-terminated=1): A %NULL-terminated array of engine names.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Start bus components by engine names synchronously.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if components start. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_preload_engines   (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar * const *names);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_preload_engines_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @names: (array zero-terminated=1): A %NULL-terminated array of engine names.
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Start bus components by engine names asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_preload_engines_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar * const
Packit Service 1d8f1c
                                                        *names,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer        user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_preload_engines_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_preload_engines_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_preload_engines_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if component starts. %FALSE otherwise.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_preload_engines_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_ibus_property:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @property_name: property name in org.freedesktop.DBus.Properties.Get
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get org.freedesktop.DBus.Properties.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full): The value in org.freedesktop.DBus.Properties.Get
Packit Service 1d8f1c
 *           The returned value must be freed with g_variant_unref().
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GVariant *   ibus_bus_get_ibus_property (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *property_name);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_ibus_property_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @property_name: property name in org.freedesktop.DBus.Properties.Get
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Get org.freedesktop.DBus.Properties asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_get_ibus_property_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *property_name,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer             user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_get_ibus_property_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_get_ibus_property_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_get_ibus_property_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: (transfer full): The value in org.freedesktop.DBus.Properties.Get
Packit Service 1d8f1c
 *           The returned value must be freed with g_variant_unref().
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
GVariant *   ibus_bus_get_ibus_property_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_ibus_property:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @property_name: property name in org.freedesktop.DBus.Properties.Set
Packit Service 1d8f1c
 * @value: value in org.freedesktop.DBus.Properties.Set
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Set org.freedesktop.DBus.Properties.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_set_ibus_property (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *property_name,
Packit Service 1d8f1c
                                         GVariant       *value);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_ibus_property_async:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @property_name: property name in org.freedesktop.DBus.Properties.Set
Packit Service 1d8f1c
 * @value: value in org.freedesktop.DBus.Properties.Set
Packit Service 1d8f1c
 * @timeout_msec: The timeout in milliseconds or -1 to use the default timeout.
Packit Service 1d8f1c
 * @cancellable: A #GCancellable or %NULL.
Packit Service 1d8f1c
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied
Packit Service 1d8f1c
 *      or %NULL if you don't care about the result of the method invocation.
Packit Service 1d8f1c
 * @user_data: The data to pass to callback.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Set org.freedesktop.DBus.Properties asynchronously.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
void         ibus_bus_set_ibus_property_async
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         const gchar    *property_name,
Packit Service 1d8f1c
                                         GVariant       *value,
Packit Service 1d8f1c
                                         gint            timeout_msec,
Packit Service 1d8f1c
                                         GCancellable   *cancellable,
Packit Service 1d8f1c
                                         GAsyncReadyCallback
Packit Service 1d8f1c
                                                         callback,
Packit Service 1d8f1c
                                         gpointer             user_data);
Packit Service 1d8f1c
Packit Service 1d8f1c
/**
Packit Service 1d8f1c
 * ibus_bus_set_ibus_property_async_finish:
Packit Service 1d8f1c
 * @bus: An #IBusBus.
Packit Service 1d8f1c
 * @res: A #GAsyncResult obtained from the #GAsyncReadyCallback passed to
Packit Service 1d8f1c
 *   ibus_bus_set_ibus_property_async().
Packit Service 1d8f1c
 * @error: Return location for error or %NULL.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Finishes an operation started with ibus_bus_set_ibus_property_async().
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Returns: %TRUE if property is set with async. %FALSE failed.
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
gboolean     ibus_bus_set_ibus_property_async_finish
Packit Service 1d8f1c
                                        (IBusBus        *bus,
Packit Service 1d8f1c
                                         GAsyncResult   *res,
Packit Service 1d8f1c
                                         GError        **error);
Packit Service 1d8f1c
Packit Service 1d8f1c
G_END_DECLS
Packit Service 1d8f1c
#endif