19
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
20
* Boston, MA 02111-1307, USA.
22
#ifndef __FACTORY_PROXY_H_
23
#define __FACTORY_PROXY_H_
22
#ifndef __BUS_FACTORY_PROXY_H_
23
#define __BUS_FACTORY_PROXY_H_
26
26
#include "connection.h"
49
49
typedef struct _BusFactoryProxy BusFactoryProxy;
50
50
typedef struct _BusFactoryProxyClass BusFactoryProxyClass;
52
struct _BusFactoryProxy {
54
/* instance members */
56
IBusComponent *component;
60
struct _BusFactoryProxyClass {
61
IBusProxyClass parent;
65
52
GType bus_factory_proxy_get_type (void);
66
BusFactoryProxy *bus_factory_proxy_new (IBusComponent *component,
67
BusConnection *connection);
68
IBusComponent *bus_factory_proxy_get_component(BusFactoryProxy *factory);
69
BusEngineProxy *bus_factory_proxy_create_engine(BusFactoryProxy *factory,
70
IBusEngineDesc *desc);
71
BusFactoryProxy *bus_factory_proxy_get_from_component
72
(IBusComponent *component);
73
BusFactoryProxy *bus_factory_proxy_get_from_engine
74
(IBusEngineDesc *desc);
77
const gchar *bus_factory_proxy_get_name (BusFactoryProxy *factory);
78
const gchar *bus_factory_proxy_get_lang (BusFactoryProxy *factory);
79
const gchar *bus_factory_proxy_get_icon (BusFactoryProxy *factory);
80
const gchar *bus_factory_proxy_get_authors (BusFactoryProxy *factory);
81
const gchar *bus_factory_proxy_get_credits (BusFactoryProxy *factory);
55
* bus_factory_proxy_new:
56
* @connection: the connection between ibus-daemon and an engine process.
57
* @returns: a new proxy object.
59
BusFactoryProxy *bus_factory_proxy_new (BusConnection *connection);
62
* bus_factory_proxy_create_engine:
63
* @desc: an engine description to create.
64
* @timeout: timeout in msec, or -1 to use the default timeout value.
66
* Invoke "CreateEngine" method of the "org.freedesktop.IBus.Factory" interface asynchronously.
68
void bus_factory_proxy_create_engine
69
(BusFactoryProxy *factory,
72
GCancellable *cancellable,
73
GAsyncReadyCallback callback,
77
* bus_factory_proxy_create_engine_finish:
78
* @returns: On success, return an D-Bus object path of the new engine. On error, returns NULL.
80
* Get the result of bus_factory_proxy_create_engine call. You have to call this function in the GAsyncReadyCallback function.
82
gchar *bus_factory_proxy_create_engine_finish
83
(BusFactoryProxy *factory,