~ubuntu-branches/ubuntu/trusty/libzeitgeist/trusty-proposed

« back to all changes in this revision

Viewing changes to bindings/zeitgeist-1.0.vapi

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-03-23 17:05:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110323170543-qks4dcl41i222izh
Tags: 0.3.8-0ubuntu1
* New upstream release
  - ZeitgeistLog missing implementation of get_property for "connected"
    (LP: #734080)
  - libzeitgeist vapi needs an update (LP: #739653)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                [CCode (has_construct_function = false)]
54
54
                public DataSource ();
55
55
                [CCode (has_construct_function = false)]
 
56
                public DataSource.from_variant (GLib.Variant src);
 
57
                [CCode (has_construct_function = false)]
56
58
                public DataSource.full (string id, string name, string desc, owned GLib.PtrArray event_templates);
57
59
                public unowned string get_description ();
58
60
                public unowned GLib.PtrArray get_event_templates ();
68
70
                public void set_running (bool running);
69
71
                public void set_timestamp (int64 timestamp);
70
72
                public void set_unique_id (string unique_id);
 
73
                public unowned GLib.Variant to_variant ();
 
74
                public unowned GLib.Variant to_variant_full ();
71
75
        }
72
76
        [CCode (cheader_filename = "zeitgeist.h")]
73
77
        public class DataSourceRegistry : GLib.Object {
75
79
                public DataSourceRegistry ();
76
80
                public async GLib.PtrArray get_data_sources (GLib.Cancellable? cancellable) throws GLib.Error;
77
81
                public async bool register_data_source (owned Zeitgeist.DataSource source, GLib.Cancellable? cancellable) throws GLib.Error;
78
 
                public async void set_data_source_enabled (string unique_id, bool enabled, GLib.Cancellable? cancellable) throws GLib.Error;
 
82
                public async bool set_data_source_enabled (string unique_id, bool enabled, GLib.Cancellable? cancellable) throws GLib.Error;
79
83
                public virtual signal void source_disconnected (Zeitgeist.DataSource source);
80
84
                public virtual signal void source_enabled (string unique_id, bool enabled);
81
85
                public virtual signal void source_registered (Zeitgeist.DataSource source);
86
90
                public Event ();
87
91
                public void add_subject (Zeitgeist.Subject subject);
88
92
                [CCode (has_construct_function = false)]
 
93
                public Event.from_variant (GLib.Variant event);
 
94
                [CCode (has_construct_function = false)]
89
95
                public Event.full (string interpretation, string manifestation, string actor, ...);
90
96
                [CCode (has_construct_function = false)]
91
97
                public Event.full_valist (string interpretation, string manifestation, string actor, void* args);
104
110
                public void set_manifestation (string manifestation);
105
111
                public void set_payload (owned GLib.ByteArray payload);
106
112
                public void set_timestamp (int64 timestamp);
 
113
                public unowned GLib.Variant to_variant ();
107
114
        }
108
115
        [CCode (cheader_filename = "zeitgeist.h")]
109
116
        public class Index : GLib.Object {
126
133
                [CCode (finish_name = "zeitgeist_log_insert_events_finish")]
127
134
                public async GLib.Array insert_events_from_ptrarray (owned GLib.PtrArray events, GLib.Cancellable? cancellable) throws GLib.Error;
128
135
                public void insert_events_no_reply (...);
129
 
                public async bool install_monitor (Zeitgeist.Monitor monitor, GLib.Cancellable? cancellable) throws GLib.Error;
 
136
                public void install_monitor (Zeitgeist.Monitor monitor);
130
137
                public bool is_connected ();
131
138
                public async bool quit (GLib.Cancellable? cancellable) throws GLib.Error;
132
 
                public async bool remove_monitor (Zeitgeist.Monitor monitor, GLib.Cancellable? cancellable) throws GLib.Error;
 
139
                public void remove_monitor (Zeitgeist.Monitor monitor);
133
140
                [NoAccessorMethod]
134
141
                public bool connected { get; }
135
142
        }
136
143
        [CCode (cheader_filename = "zeitgeist.h")]
137
 
        public class Monitor : GLib.Object, Zeitgeist.EggZeitgeistMonitor {
 
144
        public class Monitor : GLib.Object {
138
145
                [CCode (has_construct_function = false)]
139
146
                public Monitor (Zeitgeist.TimeRange time_range, owned GLib.PtrArray event_templates);
140
147
                public unowned string get_path ();
175
182
                public TimeRange.anytime ();
176
183
                [CCode (has_construct_function = false)]
177
184
                public TimeRange.from_now ();
 
185
                [CCode (has_construct_function = false)]
 
186
                public TimeRange.from_variant (GLib.Variant time_range);
178
187
                public int64 get_end ();
179
188
                public unowned string get_end_iso8601 ();
180
189
                public int64 get_start ();
181
190
                public unowned string get_start_iso8601 ();
182
191
                [CCode (has_construct_function = false)]
183
192
                public TimeRange.to_now ();
 
193
                public unowned GLib.Variant to_variant ();
184
194
        }
185
195
        [CCode (cheader_filename = "zeitgeist.h")]
186
196
        public interface EggZeitgeistMonitor : GLib.Object {
233
243
                ANY
234
244
        }
235
245
        [CCode (cheader_filename = "zeitgeist.h")]
 
246
        public const string DATA_SOURCE_VARIANT_SIGNATURE;
 
247
        [CCode (cheader_filename = "zeitgeist.h")]
 
248
        public const string DATA_SOURCE_WITH_INFO_VARIANT_SIGNATURE;
 
249
        [CCode (cheader_filename = "zeitgeist.h")]
 
250
        public const string EVENT_VARIANT_SIGNATURE;
 
251
        [CCode (cheader_filename = "zeitgeist.h")]
236
252
        public const string NCAL_ALARM;
237
253
        [CCode (cheader_filename = "zeitgeist.h")]
238
254
        public const string NCAL_ATTACHMENT;
361
377
        [CCode (cheader_filename = "zeitgeist.h")]
362
378
        public const string NMO_MIME_ENTITY;
363
379
        [CCode (cheader_filename = "zeitgeist.h")]
 
380
        public const string TIME_RANGE_VARIANT_SIGNATURE;
 
381
        [CCode (cheader_filename = "zeitgeist.h")]
364
382
        public const string ZG_ACCESS_EVENT;
365
383
        [CCode (cheader_filename = "zeitgeist.h")]
366
384
        public const string ZG_CREATE_EVENT;
389
407
        [CCode (cheader_filename = "zeitgeist.h")]
390
408
        public const string ZG_WORLD_ACTIVITY;
391
409
        [CCode (cheader_filename = "zeitgeist.h")]
 
410
        public static unowned GLib.PtrArray data_sources_from_variant (GLib.Variant sources);
 
411
        [CCode (cheader_filename = "zeitgeist.h")]
 
412
        public static unowned GLib.Variant data_sources_to_variant (GLib.PtrArray sources);
 
413
        [CCode (cheader_filename = "zeitgeist.h")]
 
414
        public static unowned GLib.PtrArray events_from_valist (void* events);
 
415
        [CCode (cheader_filename = "zeitgeist.h")]
 
416
        public static unowned GLib.PtrArray events_from_variant (GLib.Variant events);
 
417
        [CCode (cheader_filename = "zeitgeist.h")]
 
418
        public static unowned GLib.Variant events_to_variant (GLib.PtrArray events);
 
419
        [CCode (cheader_filename = "zeitgeist.h")]
392
420
        public static unowned string interpretation_for_mimetype (string mimetype);
393
421
        [CCode (cheader_filename = "zeitgeist.h")]
394
422
        public static unowned string manifestation_for_uri (string uri);