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

« back to all changes in this revision

Viewing changes to bus/factoryproxy.h

  • 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:
19
19
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
20
 * Boston, MA 02111-1307, USA.
21
21
 */
22
 
#ifndef __FACTORY_PROXY_H_
23
 
#define __FACTORY_PROXY_H_
 
22
#ifndef __BUS_FACTORY_PROXY_H_
 
23
#define __BUS_FACTORY_PROXY_H_
24
24
 
25
25
#include <ibus.h>
26
26
#include "connection.h"
49
49
typedef struct _BusFactoryProxy BusFactoryProxy;
50
50
typedef struct _BusFactoryProxyClass BusFactoryProxyClass;
51
51
 
52
 
struct _BusFactoryProxy {
53
 
    IBusProxy parent;
54
 
    /* instance members */
55
 
 
56
 
    IBusComponent *component;
57
 
    GList *engine_list;
58
 
};
59
 
 
60
 
struct _BusFactoryProxyClass {
61
 
    IBusProxyClass parent;
62
 
    /* class members */
63
 
};
64
 
 
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);
75
 
 
76
 
#if 0
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);
82
 
#endif
 
53
 
 
54
/**
 
55
 * bus_factory_proxy_new:
 
56
 * @connection: the connection between ibus-daemon and an engine process.
 
57
 * @returns: a new proxy object.
 
58
 */
 
59
BusFactoryProxy *bus_factory_proxy_new          (BusConnection      *connection);
 
60
 
 
61
/**
 
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.
 
65
 *
 
66
 * Invoke "CreateEngine" method of the "org.freedesktop.IBus.Factory" interface asynchronously.
 
67
 */
 
68
void             bus_factory_proxy_create_engine
 
69
                                                (BusFactoryProxy    *factory,
 
70
                                                 IBusEngineDesc     *desc,
 
71
                                                 gint                timeout,
 
72
                                                 GCancellable       *cancellable,
 
73
                                                 GAsyncReadyCallback callback,
 
74
                                                 gpointer            user_data);
 
75
 
 
76
/**
 
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.
 
79
 *
 
80
 * Get the result of bus_factory_proxy_create_engine call. You have to call this function in the GAsyncReadyCallback function.
 
81
 */
 
82
gchar           *bus_factory_proxy_create_engine_finish
 
83
                                                (BusFactoryProxy    *factory,
 
84
                                                 GAsyncResult       *res,
 
85
                                                 GError            **error);
83
86
 
84
87
G_END_DECLS
85
88
#endif