~ubuntu-branches/ubuntu/raring/grilo/raring-proposed

« back to all changes in this revision

Viewing changes to bindings/vala/grilo-0.2.vapi

  • Committer: Package Import Robot
  • Author(s): Alberto Garcia
  • Date: 2012-11-12 18:12:56 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20121112181256-2ee4rg7dbkh03a65
Tags: 0.2.3-1
* New upstream version.
* debian/rules: new API, bump package version in dh_makeshlibs.
* debian/rules: configure with --disable-debug, otherwise it's enabled
  by default.
* Drop all lintian-overrides files, there are no longer hardening
  warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                public unowned Grl.Data dup ();
63
63
                public GLib.Value @get (Grl.KeyID key);
64
64
                public uchar get_binary (Grl.KeyID key, size_t size);
 
65
                public bool get_boolean (Grl.KeyID key);
65
66
                public void* get_boxed (Grl.KeyID key);
66
67
                public float get_float (Grl.KeyID key);
67
68
                public int get_int (Grl.KeyID key);
76
77
                public void remove_nth (Grl.KeyID key, uint index);
77
78
                public void @set (Grl.KeyID key, GLib.Value value);
78
79
                public void set_binary (Grl.KeyID key, uchar buf, size_t size);
 
80
                public void set_boolean (Grl.KeyID key, bool boolvalue);
79
81
                public void set_boxed (Grl.KeyID key, void* boxed);
80
82
                public void set_float (Grl.KeyID key, float floatvalue);
81
83
                public void set_int (Grl.KeyID key, int intvalue);
95
97
                public void add_author (string author);
96
98
                public void add_external_player (string player);
97
99
                public void add_external_url (string url);
 
100
                public void add_keyword (string keyword);
 
101
                public void add_region_data (string region, GLib.DateTime publication_date, string certificate);
98
102
                public void add_thumbnail (string thumbnail);
99
103
                public void add_thumbnail_binary (uchar thumbnail, size_t size);
100
104
                public void add_url_data (string url, string mime);
106
110
                public int get_duration ();
107
111
                public unowned string get_external_url ();
108
112
                public unowned string get_external_url_nth (uint index);
 
113
                public bool get_favourite ();
109
114
                public unowned string get_id ();
 
115
                public unowned string get_keyword ();
 
116
                public unowned string get_keyword_nth (uint index);
110
117
                public unowned string get_last_played ();
111
118
                public int get_last_position ();
112
119
                public unowned string get_license ();
117
124
                public unowned string get_player_nth (uint index);
118
125
                public unowned GLib.DateTime get_publication_date ();
119
126
                public float get_rating ();
 
127
                public unowned string get_region ();
 
128
                public unowned string get_region_data (out unowned GLib.DateTime publication_date, string certificate);
 
129
                public unowned string get_region_data_nth (uint index, out unowned GLib.DateTime publication_date, string certificate);
120
130
                public unowned string get_site ();
121
131
                public unowned string get_source ();
122
132
                public float get_start_time ();
138
148
                public void set_duration (int duration);
139
149
                public void set_external_player (string player);
140
150
                public void set_external_url (string url);
 
151
                public void set_favourite (bool favourite);
141
152
                public void set_id (string id);
 
153
                public void set_keyword (string keyword);
142
154
                public void set_last_played (string last_played);
143
155
                public void set_last_position (int last_position);
144
156
                public void set_license (string license);
147
159
                public void set_play_count (int play_count);
148
160
                public void set_publication_date (GLib.DateTime date);
149
161
                public void set_rating (float rating, float max);
 
162
                public void set_region (string region);
 
163
                public void set_region_data (string region, GLib.DateTime publication_date, string certificate);
150
164
                public void set_site (string site);
151
165
                public void set_source (string source);
152
166
                public void set_studio (string studio);
219
233
        public class MediaVideo : Grl.Media {
220
234
                [CCode (has_construct_function = false, type = "GrlMedia*")]
221
235
                public MediaVideo ();
 
236
                public void add_director (string director);
 
237
                public void add_performer (string performer);
 
238
                public void add_producer (string producer);
222
239
                public void add_url_data (string url, string mime, float framerate, int width, int height);
 
240
                public unowned string get_director ();
 
241
                public unowned string get_director_nth (uint index);
223
242
                public int get_episode ();
224
243
                public float get_framerate ();
225
244
                public int get_height ();
 
245
                public unowned string get_original_title ();
 
246
                public unowned string get_performer ();
 
247
                public unowned string get_performer_nth (uint index);
 
248
                public unowned string get_producer ();
 
249
                public unowned string get_producer_nth (uint index);
226
250
                public int get_season ();
227
251
                public unowned string get_show ();
228
252
                public unowned string get_url_data (string mime, float framerate, int width, int height);
229
253
                public unowned string get_url_data_nth (uint index, string mime, float framerate, int width, int height);
230
254
                public int get_width ();
 
255
                public void set_director (string director);
231
256
                public void set_episode (int episode);
232
257
                public void set_framerate (float framerate);
233
258
                public void set_height (int height);
 
259
                public void set_original_title (string original_title);
 
260
                public void set_performer (string performer);
 
261
                public void set_producer (string producer);
234
262
                public void set_season (int season);
235
263
                public void set_show (string show);
236
264
                public void set_size (int width, int height);
258
286
                public static Grl.KeyID CREATION_DATE;
259
287
                [CCode (cname = "GRL_METADATA_KEY_DESCRIPTION")]
260
288
                public static Grl.KeyID DESCRIPTION;
 
289
                [CCode (cname = "GRL_METADATA_KEY_DIRECTOR")]
 
290
                public static Grl.KeyID DIRECTOR;
261
291
                [CCode (cname = "GRL_METADATA_KEY_DURATION")]
262
292
                public static Grl.KeyID DURATION;
263
293
                [CCode (cname = "GRL_METADATA_KEY_EPISODE")]
280
310
                public static Grl.KeyID ID;
281
311
                [CCode (cname = "GRL_METADATA_KEY_ISO_SPEED")]
282
312
                public static Grl.KeyID ISO_SPEED;
 
313
                [CCode (cname = "GRL_METADATA_KEY_KEYWORD")]
 
314
                public static Grl.KeyID KEYWORD;
283
315
                [CCode (cname = "GRL_METADATA_KEY_LAST_PLAYED")]
284
316
                public static Grl.KeyID LAST_PLAYED;
285
317
                [CCode (cname = "GRL_METADATA_KEY_LAST_POSITION")]
294
326
                public static Grl.KeyID MODIFICATION_DATE;
295
327
                [CCode (cname = "GRL_METADATA_KEY_ORIENTATION")]
296
328
                public static Grl.KeyID ORIENTATION;
 
329
                [CCode (cname = "GRL_METADATA_KEY_ORIGINAL_TITLE")]
 
330
                public static Grl.KeyID ORIGINAL_TITLE;
 
331
                [CCode (cname = "GRL_METADATA_KEY_PERFORMER")]
 
332
                public static Grl.KeyID PERFORMER;
297
333
                [CCode (cname = "GRL_METADATA_KEY_PLAY_COUNT")]
298
334
                public static Grl.KeyID PLAY_COUNT;
 
335
                [CCode (cname = "GRL_METADATA_KEY_PRODUCER")]
 
336
                public static Grl.KeyID PRODUCER;
299
337
                [CCode (cname = "GRL_METADATA_KEY_PUBLICATION_DATE")]
300
338
                public static Grl.KeyID PUBLICATION_DATE;
301
339
                [CCode (cname = "GRL_METADATA_KEY_RATING")]
302
340
                public static Grl.KeyID RATING;
 
341
                [CCode (cname = "GRL_METADATA_KEY_REGION")]
 
342
                public static Grl.KeyID REGION;
303
343
                [CCode (cname = "GRL_METADATA_KEY_SEASON")]
304
344
                public static Grl.KeyID SEASON;
305
345
                [CCode (cname = "GRL_METADATA_KEY_SHOW")]
416
456
                public unowned Grl.RelatedKeys dup ();
417
457
                public GLib.Value @get (Grl.KeyID key);
418
458
                public uchar get_binary (Grl.KeyID key, size_t size);
 
459
                public bool get_boolean (Grl.KeyID key);
419
460
                public void* get_boxed (Grl.KeyID key);
420
461
                public float get_float (Grl.KeyID key);
421
462
                public int get_int (Grl.KeyID key);
422
463
                public unowned GLib.List get_keys ();
423
464
                public unowned string get_string (Grl.KeyID key);
424
465
                public bool has_key (Grl.KeyID key);
 
466
                public void remove (Grl.KeyID key);
425
467
                public void @set (Grl.KeyID key, GLib.Value value);
426
468
                public void set_binary (Grl.KeyID key, uchar buf, size_t size);
 
469
                public void set_boolean (Grl.KeyID key, bool boolvalue);
427
470
                public void set_boxed (Grl.KeyID key, void* boxed);
428
471
                public void set_float (Grl.KeyID key, float floatvalue);
429
472
                public void set_int (Grl.KeyID key, int intvalue);
450
493
                public unowned string get_name ();
451
494
                public unowned Grl.Plugin get_plugin ();
452
495
                public int get_rank ();
 
496
                public Grl.MediaType get_supported_media ();
453
497
                public virtual bool may_resolve (Grl.Media media, Grl.KeyID key_id, out GLib.List<weak Grl.KeyID> missing_keys);
454
498
                [NoWrapper]
455
499
                public virtual void media_from_uri (Grl.SourceMediaFromUriSpec mfus);
486
530
                public string source_id { owned get; set construct; }
487
531
                [NoAccessorMethod]
488
532
                public string source_name { owned get; set construct; }
 
533
                [NoAccessorMethod]
 
534
                public Grl.MediaType supported_media { get; set construct; }
489
535
                public virtual signal void content_changed (GLib.PtrArray p0, Grl.SourceChangeType p1, bool p2);
490
536
        }
491
537
        [CCode (cheader_filename = "grilo.h")]
592
638
                PARTIAL,
593
639
                FULL
594
640
        }
 
641
        [CCode (cheader_filename = "grilo.h", cprefix = "GRL_MEDIA_TYPE_", has_type_id = false)]
 
642
        public enum MediaType {
 
643
                NONE,
 
644
                AUDIO,
 
645
                VIDEO,
 
646
                IMAGE,
 
647
                ALL
 
648
        }
595
649
        [CCode (cheader_filename = "grilo.h", cprefix = "GRL_RANK_", has_type_id = false)]
596
650
        public enum Rank {
597
651
                LOWEST,