|
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-2010 Peng Huang <shawn.p.huang@gmail.com>
|
|
Packit Service |
1d8f1c |
* Copyright (C) 2008-2010 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 |
#ifndef __BUS_FACTORY_PROXY_H_
|
|
Packit Service |
1d8f1c |
#define __BUS_FACTORY_PROXY_H_
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
#include <ibus.h>
|
|
Packit Service |
1d8f1c |
#include "connection.h"
|
|
Packit Service |
1d8f1c |
#include "engineproxy.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 BUS_TYPE_FACTORY_PROXY \
|
|
Packit Service |
1d8f1c |
(bus_factory_proxy_get_type ())
|
|
Packit Service |
1d8f1c |
#define BUS_FACTORY_PROXY(obj) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), BUS_TYPE_FACTORY_PROXY, BusFactoryProxy))
|
|
Packit Service |
1d8f1c |
#define BUS_FACTORY_PROXY_CLASS(klass) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_CLASS_CAST ((klass), BUS_TYPE_FACTORY_PROXY, BusFactoryProxyClass))
|
|
Packit Service |
1d8f1c |
#define BUS_IS_FACTORY_PROXY(obj) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), BUS_TYPE_FACTORY_PROXY))
|
|
Packit Service |
1d8f1c |
#define BUS_IS_FACTORY_PROXY_CLASS(klass) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_CLASS_TYPE ((klass), BUS_TYPE_FACTORY_PROXY))
|
|
Packit Service |
1d8f1c |
#define BUS_FACTORY_PROXY_GET_CLASS(obj) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_INSTANCE_GET_CLASS ((obj), BUS_TYPE_FACTORY_PROXY, BusFactoryProxyClass))
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
G_BEGIN_DECLS
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
typedef struct _BusFactoryProxy BusFactoryProxy;
|
|
Packit Service |
1d8f1c |
typedef struct _BusFactoryProxyClass BusFactoryProxyClass;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
GType bus_factory_proxy_get_type (void);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* bus_factory_proxy_new:
|
|
Packit Service |
1d8f1c |
* @connection: the connection between ibus-daemon and an engine process.
|
|
Packit Service |
1d8f1c |
* @returns: a new proxy object.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
BusFactoryProxy *bus_factory_proxy_new (BusConnection *connection);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* bus_factory_proxy_create_engine:
|
|
Packit Service |
1d8f1c |
* @desc: an engine description to create.
|
|
Packit Service |
1d8f1c |
* @timeout: timeout in msec, or -1 to use the default timeout value.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Invoke "CreateEngine" method of the "org.freedesktop.IBus.Factory" interface asynchronously.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void bus_factory_proxy_create_engine
|
|
Packit Service |
1d8f1c |
(BusFactoryProxy *factory,
|
|
Packit Service |
1d8f1c |
IBusEngineDesc *desc,
|
|
Packit Service |
1d8f1c |
gint timeout,
|
|
Packit Service |
1d8f1c |
GCancellable *cancellable,
|
|
Packit Service |
1d8f1c |
GAsyncReadyCallback callback,
|
|
Packit Service |
1d8f1c |
gpointer user_data);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* bus_factory_proxy_create_engine_finish:
|
|
Packit Service |
1d8f1c |
* @returns: On success, return an D-Bus object path of the new engine. On error, returns NULL.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Get the result of bus_factory_proxy_create_engine call. You have to call this function in the GAsyncReadyCallback function.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gchar *bus_factory_proxy_create_engine_finish
|
|
Packit Service |
1d8f1c |
(BusFactoryProxy *factory,
|
|
Packit Service |
1d8f1c |
GAsyncResult *res,
|
|
Packit Service |
1d8f1c |
GError **error);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
G_END_DECLS
|
|
Packit Service |
1d8f1c |
#endif
|
|
Packit Service |
1d8f1c |
|