~ubuntu-branches/ubuntu/precise/libzeitgeist/precise-proposed

« back to all changes in this revision

Viewing changes to src/eggzeitgeistdatasourceregistry.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-08-02 18:22:32 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100802182232-47ohrpyfxep802pr
Tags: 0.2.3-0ubuntu1
* New upstream release.
  - New API to talk to the Data Source Registry extension of Zeitgeist
    (Michal Hruby)
  - A new "connected" property on ZeitgeistLog telling you whether or
    not the Zeitgeist daemon is running (Michal Hruby)
  - Fix a crasher when finalizing a ZeitgeistLog with active monitors
    installed (Michal Hruby)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* File: eggzeitgeistdatasourceregistry.h
 
3
 *
 
4
 * Generated by eggdbus-binding-tool 0.6. Do not edit.
 
5
 */
 
6
 
 
7
#ifndef __EGG_ZEITGEIST_DATA_SOURCE_REGISTRY_H
 
8
#define __EGG_ZEITGEIST_DATA_SOURCE_REGISTRY_H
 
9
 
 
10
#include <glib-object.h>
 
11
#include <gio/gio.h>
 
12
#include "eggzeitgeistbindingstypes.h"
 
13
 
 
14
G_BEGIN_DECLS
 
15
 
 
16
#define EGG_ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY         (egg_zeitgeist_data_source_registry_get_type())
 
17
#define EGG_ZEITGEIST_DATA_SOURCE_REGISTRY(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), EGG_ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY, EggZeitgeistDataSourceRegistry))
 
18
#define EGG_ZEITGEIST_IS_DATA_SOURCE_REGISTRY(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EGG_ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY))
 
19
#define EGG_ZEITGEIST_DATA_SOURCE_REGISTRY_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), EGG_ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY, EggZeitgeistDataSourceRegistryIface))
 
20
 
 
21
#if 0
 
22
typedef struct _EggZeitgeistDataSourceRegistry EggZeitgeistDataSourceRegistry; /* Dummy typedef */
 
23
#endif
 
24
typedef struct _EggZeitgeistDataSourceRegistryIface EggZeitgeistDataSourceRegistryIface;
 
25
 
 
26
/**
 
27
 * EGG_ZEITGEIST_QUERY_INTERFACE_DATA_SOURCE_REGISTRY:
 
28
 * @object_proxy: A #EggDBusObjectProxy.
 
29
 *
 
30
 * Convenience macro to get an interface proxy for the remote object represented
 
31
 * by @object_proxy. See egg_dbus_object_proxy_query_interface() for details.
 
32
 *
 
33
 * Returns: An instance derived from #EggDBusInterfaceProxy that implements the
 
34
 *          #EggZeitgeistDataSourceRegistry interface. This instance can be used to access the
 
35
 *          <link linkend="eggdbus-interface-org.gnome.zeitgeist.DataSourceRegistry">org.gnome.zeitgeist.DataSourceRegistry</link> D-Bus interface on the remote
 
36
 *          object represented by @object_proxy. Do not ref or unref the returned instance,
 
37
 *          it is owned by @object_proxy.
 
38
 */
 
39
#define EGG_ZEITGEIST_QUERY_INTERFACE_DATA_SOURCE_REGISTRY(object_proxy) (EGG_ZEITGEIST_DATA_SOURCE_REGISTRY (egg_dbus_object_proxy_query_interface (object_proxy, EGG_ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY)))
 
40
 
 
41
/**
 
42
 * EggZeitgeistDataSourceRegistryIface:
 
43
 * @g_iface: The parent interface.
 
44
 * @handle_register_data_source: FIXME: not documented.
 
45
 * @handle_set_data_source_enabled: FIXME: not documented.
 
46
 * @handle_get_data_sources: FIXME: not documented.
 
47
 *
 
48
 * Interface VTable for implementing the <link linkend="eggdbus-interface-org.gnome.zeitgeist.DataSourceRegistry">org.gnome.zeitgeist.DataSourceRegistry</link> D-Bus interface.
 
49
 */
 
50
struct _EggZeitgeistDataSourceRegistryIface
 
51
{
 
52
  EggDBusInterfaceIface g_iface;
 
53
 
 
54
  void (* handle_register_data_source) (
 
55
      EggZeitgeistDataSourceRegistry *instance,
 
56
      const gchar *unique_id,
 
57
      const gchar *name,
 
58
      const gchar *description,
 
59
      EggDBusArraySeq *event_templates,
 
60
      EggDBusMethodInvocation *method_invocation);
 
61
 
 
62
  void (* handle_set_data_source_enabled) (
 
63
      EggZeitgeistDataSourceRegistry *instance,
 
64
      const gchar *unique_id,
 
65
      gboolean enabled,
 
66
      EggDBusMethodInvocation *method_invocation);
 
67
 
 
68
  void (* handle_get_data_sources) (
 
69
      EggZeitgeistDataSourceRegistry *instance,
 
70
      EggDBusMethodInvocation *method_invocation);
 
71
};
 
72
 
 
73
GType egg_zeitgeist_data_source_registry_get_type (void) G_GNUC_CONST;
 
74
 
 
75
gboolean egg_zeitgeist_data_source_registry_register_data_source_sync (
 
76
    EggZeitgeistDataSourceRegistry *instance,
 
77
    EggDBusCallFlags call_flags,
 
78
    const gchar *unique_id,
 
79
    const gchar *name,
 
80
    const gchar *description,
 
81
    EggDBusArraySeq *event_templates,
 
82
    gboolean *out_result,
 
83
    GCancellable *cancellable,
 
84
    GError **error);
 
85
 
 
86
gboolean egg_zeitgeist_data_source_registry_set_data_source_enabled_sync (
 
87
    EggZeitgeistDataSourceRegistry *instance,
 
88
    EggDBusCallFlags call_flags,
 
89
    const gchar *unique_id,
 
90
    gboolean enabled,
 
91
    GCancellable *cancellable,
 
92
    GError **error);
 
93
 
 
94
gboolean egg_zeitgeist_data_source_registry_get_data_sources_sync (
 
95
    EggZeitgeistDataSourceRegistry *instance,
 
96
    EggDBusCallFlags call_flags,
 
97
    EggDBusArraySeq **out_arg_0,
 
98
    GCancellable *cancellable,
 
99
    GError **error);
 
100
 
 
101
guint egg_zeitgeist_data_source_registry_register_data_source (
 
102
    EggZeitgeistDataSourceRegistry *instance,
 
103
    EggDBusCallFlags call_flags,
 
104
    const gchar *unique_id,
 
105
    const gchar *name,
 
106
    const gchar *description,
 
107
    EggDBusArraySeq *event_templates,
 
108
    GCancellable *cancellable,
 
109
    GAsyncReadyCallback callback,
 
110
    gpointer user_data);
 
111
 
 
112
gboolean egg_zeitgeist_data_source_registry_register_data_source_finish (
 
113
    EggZeitgeistDataSourceRegistry *instance,
 
114
    gboolean *out_result,
 
115
    GAsyncResult *res,
 
116
    GError **error);
 
117
 
 
118
guint egg_zeitgeist_data_source_registry_set_data_source_enabled (
 
119
    EggZeitgeistDataSourceRegistry *instance,
 
120
    EggDBusCallFlags call_flags,
 
121
    const gchar *unique_id,
 
122
    gboolean enabled,
 
123
    GCancellable *cancellable,
 
124
    GAsyncReadyCallback callback,
 
125
    gpointer user_data);
 
126
 
 
127
gboolean egg_zeitgeist_data_source_registry_set_data_source_enabled_finish (
 
128
    EggZeitgeistDataSourceRegistry *instance,
 
129
    GAsyncResult *res,
 
130
    GError **error);
 
131
 
 
132
guint egg_zeitgeist_data_source_registry_get_data_sources (
 
133
    EggZeitgeistDataSourceRegistry *instance,
 
134
    EggDBusCallFlags call_flags,
 
135
    GCancellable *cancellable,
 
136
    GAsyncReadyCallback callback,
 
137
    gpointer user_data);
 
138
 
 
139
gboolean egg_zeitgeist_data_source_registry_get_data_sources_finish (
 
140
    EggZeitgeistDataSourceRegistry *instance,
 
141
    EggDBusArraySeq **out_arg_0,
 
142
    GAsyncResult *res,
 
143
    GError **error);
 
144
 
 
145
void egg_zeitgeist_data_source_registry_handle_register_data_source_finish (
 
146
    EggDBusMethodInvocation *method_invocation,
 
147
    gboolean out_result);
 
148
 
 
149
void egg_zeitgeist_data_source_registry_handle_set_data_source_enabled_finish (
 
150
    EggDBusMethodInvocation *method_invocation);
 
151
 
 
152
void egg_zeitgeist_data_source_registry_handle_get_data_sources_finish (
 
153
    EggDBusMethodInvocation *method_invocation,
 
154
    EggDBusArraySeq *out_arg_0);
 
155
 
 
156
void egg_zeitgeist_data_source_registry_emit_signal_data_source_registered (
 
157
    EggZeitgeistDataSourceRegistry *instance,
 
158
    const gchar *destination,
 
159
    EggZeitgeistDataSource *arg_0);
 
160
 
 
161
void egg_zeitgeist_data_source_registry_emit_signal_data_source_disconnected (
 
162
    EggZeitgeistDataSourceRegistry *instance,
 
163
    const gchar *destination,
 
164
    EggZeitgeistDataSource *arg_0);
 
165
 
 
166
void egg_zeitgeist_data_source_registry_emit_signal_data_source_enabled (
 
167
    EggZeitgeistDataSourceRegistry *instance,
 
168
    const gchar *destination,
 
169
    const gchar *unique_id,
 
170
    gboolean enabled);
 
171
 
 
172
G_END_DECLS
 
173
 
 
174
#endif /* __EGG_ZEITGEIST_DATA_SOURCE_REGISTRY_H */