gsoc

Sign in or create your account | Project List | Help

gsoc Commit Details

Date:2009-07-27 21:29:05 (1 year 1 day ago)
Author:Adrien Bustany
Commit:bbef59b0daceb30512fe80b968a7257ef21bcc53
Message:VAPI repo : add libgdata bindings

Files: vapi/libgdata.deps (1 diff)
vapi/libgdata.vapi (1 diff)

Change Details

vapi/libgdata.deps
1libsoup-2.4
vapi/libgdata.vapi
1/* libgdata.vapi
2 *
3 * Copyright (C) 2009 Adrien Bustany
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Author:
20 * Adrien Bustany <madcat@mymadcat.com>
21 */
22
23using GLib;
24using Soup;
25
26[CCode (lower_case_cprefix = "gdata_", cheader_filename = "libgdata/gdata/gdata.h")]
27namespace GData {
28    class Service : Object {
29        public bool authenticate (string username, string password, Cancellable? cancellable) throws Error;
30        public void authenticate_async (string username, string password, Cancellable? cancellable, AsyncReadyCallback callback);
31        public void authenticate_finish (AsyncResult result) throws Error;
32        public bool is_authenticated ();
33        public Feed? query (string feed_uri, Query? query, Type entry_type, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error;
34        public void query_async (string feed_uri, Query? query, Type entry_type, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback) throws Error;
35        public Feed? query_finish (AsyncResult async_result) throws Error;
36        public Entry? insert_entry (string upload_uri, Entry entry, Cancellable? cancellable) throws Error;
37        public void insert_entry_async (string upload_uri, Entry entry, Cancellable? cancellable, AsyncReadyCallback callback);
38        public Entry? insert_entry_finish (AsyncResult result) throws Error;
39        public Entry? update_entry (Entry entry, Cancellable? cancellable) throws Error;
40        public void update_entry_async (Entry entry, Cancellable? cancellable, AsyncReadyCallback callback);
41        public Entry? update_entry_finish (AsyncResult result) throws Error;
42        public bool delete_entry (Entry entry, Cancellable? cancellable) throws Error;
43        public void delete_entry_async (Entry entry, Cancellable? cancellable, AsyncReadyCallback callback);
44        public bool delete_entry_finish (AsyncResult result) throws Error;
45
46        public string client_id { get; }
47        public string username { get; }
48        public string password { get; }
49        public Soup.URI proxy_uri { get; set; }
50        public bool authenticated { get; }
51
52        public signal void captcha_challenge(string uri);
53    }
54
55    delegate void QueryProgressCallback (GData.Entry entry, uint entry_key, uint entry_count);
56
57    class Query : Object {
58        public Query (string q);
59        public static Query new_with_limits (string q, int start_index, int max_results);
60        public static Query new_for_id (string entry_id);
61        public string get_query_uri (string feed_uri);
62        void next_page ();
63        void previous_page ();
64        public string q { get; set; }
65        public string entry_id { get; set; }
66        public string etag { get; set; }
67        public string author { get; set; }
68        public string categories { get; set; }
69        public TimeVal published_min { get; set; }
70        public TimeVal published_max { get; set; }
71        public TimeVal updated_min { get; set; }
72        public TimeVal updated_max { get; set; }
73        public int start_index { get; set; }
74        public int max_results { get; set; }
75        public bool is_strict ();
76        public void set_is_strict (bool is_strict);
77    }
78
79    class Feed : Parsable {
80        public string title { get; }
81        public string subtitle { get; }
82        public string id { get; }
83        public string etag { get; }
84        public List<Author> get_authors ();
85        public List<Category> get_categories ();
86        public List<Entry> get_entries ();
87        public Entry? look_up_entry (string id);
88        public Generator generator { get; }
89        public List<Link> get_links ();
90        public Link? look_up_link (string rel);
91        public string logo { get; }
92        public TimeVal udpated { get; }
93        public uint start_index { get; }
94        public uint total_results { get; }
95        public uint items_per_page { get; }
96    }
97
98    class Entry : Parsable {
99        public Entry (string id);
100        public static Entry new_from_xml (string xml, int length) throws Error;
101        public string title { get; set; }
102        public string summary { get; set; }
103        public string id { get; }
104        public string etag { get; }
105        public string content { get; set; }
106        public TimeVal published { get; }
107        public TimeVal updated { get; }
108        public void add_author (Author author);
109        public void add_category (Category category);
110        public List<Category> get_categories ();
111        public void add_link (Link link);
112        public List<Link> get_links ();
113        public Link? look_up_link (string rel);
114        public bool is_inserted { get; }
115        public string get_xml ();
116    }
117
118    struct Color {
119        public uint16 red;
120        public uint16 green;
121        public uint16 blue;
122
123        public static bool from_hexadecimal (string hexadecimal, out Color color);
124        public string to_hexadecimal ();
125    }
126
127    [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref")]
128    class Parsable {
129    }
130
131    interface AccessHandler {
132        public Feed? get_rules (Service service, Cancellable? cancellable, QueryProgressCallback? callback) throws Error;
133        public AccessRule? insert_rule (Service service, AccessRule rule, Cancellable? cancellable) throws Error;
134        public AccessRule? update_rule (Service service, AccessRule rule, Cancellable? cancellable) throws Error;
135        public bool delete_rule (Service service, AccessRule rule, Cancellable? cancellable) throws Error;
136    }
137
138    class AccessRule : Entry {
139        public AccessRule (string id);
140        public static AccessRule new_from_xml (string xml, int length) throws Error;
141        public string role { get; set; }
142        public void get_scope (out string type, out string value);
143        public void set_scope (string type, string value);
144    }
145
146    class Author : Parsable {
147        public Author ();
148        public int compare (Author a, Author b);
149        public string name { get; set; }
150        public string uri { get; set; }
151        public string email_address { get; set; }
152    }
153
154    class Category : Parsable {
155        public Category ();
156        public int compare (Category a, Category b);
157        public string label { get; set; }
158        public string scheme { get; set; }
159        public string term { get; set; }
160    }
161
162    class Generator : Parsable {
163        public int compare (Generator a, Generator b);
164        public string name { get; }
165        public string uri { get; }
166        public string version { get; }
167    }
168
169    class Link : Parsable {
170        public Link ();
171        public int compare (Link a, Link b);
172        public string uri { get; set; }
173        public string relation_type { get; set; }
174        public string content_type { get; set; }
175        public string language { get; set; }
176        public string title { get; set; }
177        public int length { get; set; }
178    }
179
180    namespace GD {
181        class EmailAddress : Parsable {
182            public EmailAddress (string address, string relation_type, string label, bool is_primary);
183            public int compare (EmailAddress a, EmailAddress b);
184            public string address { get; set; }
185            public bool is_primary { get; set; }
186            public string label { get; set; }
187            public string relation_type { get; set; }
188        }
189
190        class IMAddress : Parsable {
191            public IMAddress (string address, string protocol, string relation_type, string label, bool is_primary);
192            public int compare (IMAddress a, IMAddress b);
193            public string address { get; set; }
194            public bool is_primary { get; set; }
195            public string label { get; set; }
196            public string relation_type { get; set; }
197            public string protocol { get; set; }
198        }
199
200        class Organization : Parsable {
201            public Organization (string name, string title, string relation_type, string label, bool is_primary);
202            public int compare (Organization a, Organization b);
203            public string name { get; set; }
204            public bool is_primary { get; set; }
205            public string label { get; set; }
206            public string relation_type { get; set; }
207            public string title { get; set; }
208        }
209
210        class PhoneNumber : Parsable {
211            public PhoneNumber (string number, string relation_type, string label, string uri, bool is_primary);
212            public int compare (PhoneNumber a, PhoneNumber b);
213            public string number { get; set; }
214            public bool is_primary { get; set; }
215            public string label { get; set; }
216            public string relation_type { get; set; }
217            public string uri { get; set; }
218        }
219
220        class PostalAddress : Parsable {
221            public PostalAddress (string address, string relation_type, string label, bool is_primary);
222            public int compare (PostalAddress a, PostalAddress b);
223            public string address { get; set; }
224            public bool is_primary { get; set; }
225            public string label { get; set; }
226            public string relation_type { get; set; }
227        }
228
229        class Reminder : Parsable {
230            public Reminder (string method, TimeVal absolute_time, int relative_time);
231            public int compare (Reminder a, Reminder b);
232            public string method { get; set; }
233            public TimeVal absolute_time { get; set; }
234            public bool is_absolute_time ();
235            public int relative_time { get; set; }
236        }
237
238        class When : Parsable {
239            public When (TimeVal start_time, TimeVal end_time, bool is_date);
240            public int compare (When a, When b);
241            public TimeVal start_time { get; set; }
242            public TimeVal end_time { get; set; }
243            public bool is_date { get; set; }
244            public string value_string { get; set; }
245            public List<Reminder> get_reminders ();
246        }
247
248        class Where : Parsable {
249            public Where (string relation_type, string value_string, string label);
250            int compare (Where a, Where b);
251            public string relation_type { get; set; }
252            public string value_string { get; set; }
253            public string label { get; set; }
254        }
255
256        class Who : Parsable {
257            public Who (string relation_type, string value_string, string email_address);
258            int compare (Who a, Who b);
259            public string relation_type { get; set; }
260            public string value_string { get; set; }
261            public string email_address { get; set; }
262        }
263    } // Namespace GD
264
265    class MediaCategory : Parsable {
266        public MediaCategory (string category, string scheme, string label);
267        public string category { get; set; }
268        public string scheme { get; set; }
269        public string label { get; set; }
270    }
271
272    [CCode (cprefix = "GDATA_MEDIA_")]
273    enum MediaMedium {
274        UNKNOWN,
275        IMAGE,
276        AUDIO,
277        VIDEO,
278        DOCUMENT,
279        EXECUTABLE
280    }
281
282    [CCode (cprefix = "GDATA_MEDIA_EXPRESSION_")]
283    enum MediaExpression {
284        SAMPLE,
285        FULL,
286        NONSTOP
287    }
288
289    class MediaContent : Parsable {
290        public string uri { get; }
291        public ulong filesize { get; }
292        public string content_type { get; }
293        MediaMedium medium { get; }
294        bool is_default ();
295        MediaExpression expression { get; }
296        int64 duration { get; }
297        uint height { get; }
298        uint width { get; }
299    }
300
301    class MediaCredit : Parsable {
302        public string credit { get; }
303        public string role { get; }
304        public string scheme { get; }
305    }
306
307    class MediaThumbnail : Parsable {
308        public string uri { get; }
309        public uint height { get; }
310        public uint width { get; }
311        public int64 time { get; }
312    }
313
314    namespace YouTube {
315        [CCode (cprefix = "GDATA_YOUTUBE_FORMAT_")]
316        enum Format {
317            UNKNOWN = 0,
318            RTSP_H263_AMR = 1,
319            HTTP_SWF = 5,
320            RTSP_MPEG4_AAC = 6
321        }
322
323        class Content : MediaContent {
324            Format format { get; }
325        }
326
327        class Credit : MediaCredit {
328            public string entity_type { get; }
329        }
330
331        class State : Parsable {
332            public string name { get; }
333            public string reason_code { get; }
334            public string help_uri { get; }
335            public string message { get; }
336        }
337
338        class Service : GData.Service {
339            public Service (string developer_key, string client_id);
340            public Feed query_videos (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? callback) throws GLib.Error;
341            public void query_videos_async (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback);
342            public Feed query_related (Video video, GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
343            public void query_related_async (Video video, GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback);
344            public Feed query_standard_feed (StandardFeedType feed_type, GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
345            public void query_standard_feed_async (StandardFeedType feed_type, GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback);
346            public Video upload_video (Video video, File video_file, Cancellable? cancellable) throws GLib.Error;
347            public string developer_key { get; }
348            public string youtube_user { get; }
349
350            [CCode (cprefix = "GDATA_YOUTUBE_SERVICE_ERROR_")]
351            public enum Error {
352                API_QUOTA_EXCEEDED,
353                ENTRY_QUOTA_EXCEEDED
354            }
355        }
356
357        [CCode (cprefix = "GDATA_YOUTUBE_")]
358        enum StandardFeedType {
359            TOP_RATED_FEED,
360            TOP_FAVORITES_FEED,
361            MOST_VIEWED_FEED,
362            MOST_POPULAR_FEED,
363            MOST_RECENT_FEED,
364            MOST_DISCUSSED_FEED,
365            MOST_LINKED_FEED,
366            MOST_RESPONDED_FEED,
367            RECENTLY_FEATURED_FEED,
368            WATCH_ON_MOBILE_FEED
369        }
370
371        [CCode (cprefix = "GDATA_YOUTUBE_AGE_")]
372        enum Age {
373            ALL_TIME = 0,
374            TODAY,
375            THIS_WEEK,
376            THIS_MONTH
377        }
378
379        [CCode (cprefix = "GDATA_YOUTUBE_SAFE_SEARCH_")]
380        enum SafeSearch {
381            NONE = 0,
382            MODERATE,
383            STRICT
384        }
385
386        [CCode (cprefix = "GDATA_YOUTUBE_SORT_")]
387        enum SortOrder {
388            NONE = 0,
389            ASCENDING,
390            DESCENDING
391        }
392
393        [CCode (cprefix = "GDATA_YOUTUBE_UPLOADER_")]
394        enum Uploader {
395            ALL = 0,
396            PARTNER
397        }
398
399        class Query : GData.Query {
400            public Query (string q);
401            public Age age { get; set; }
402            public Format format { get; set; }
403            public string language { get; set; }
404            public void get_location (out double latitude, out double longitude, out double radius, out bool has_location);
405            public void set_location (double latitude, double longitude, double radius, bool has_location);
406            public string order_by { get; set; }
407            public string restriction { get; set; }
408            public SafeSearch safe_search { get; set; }
409            public SortOrder sort_order { get; set; }
410            public Uploader uploader { get; set; }
411        }
412
413        class Video : GData.Entry {
414            public Video (string id);
415            public static Video new_from_xml (string xml, int length) throws GLib.Error;
416            public Content? look_up_content (string type);
417            public List<GData.MediaThumbnail> get_thumbnails ();
418            public MediaCategory category { get; set; }
419            public Credit credit { get; }
420            public string description { get; set; }
421            public uint duration { get; }
422            public string keywords { get; set; }
423            public string location { get; set; }
424            public uint view_count { get; }
425            public uint favorite_count { get; }
426            public bool is_restricted_in_country (string country);
427            public bool no_embed { get; set; }
428            public string player_uri { get; }
429            public bool is_private ();
430            public void set_is_private (bool is_private);
431            public bool is_draft ();
432            public void set_is_draft (bool is_draft);
433            public State state { get; }
434            public void get_rating (out uint min, out uint max, out uint count, out double average);
435            public string title { get; set; }
436            public TimeVal uploaded { get; }
437            public TimeVal recorded { get; set; }
438            public string video_id { get; }
439        }
440    } // Namespace YouTube
441
442    namespace Calendar {
443        class Service : GData.Service {
444            public Service (string client_id);
445            Feed query_all_calendars (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
446            void query_all_calendars_aync (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback) ;
447            Feed query_own_calendars (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
448            void query_own_calendars_aync (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback) ;
449            Feed query_events (Calendar calendar, GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
450            Event? insert_event (Event event, Cancellable? cancellable) throws GLib.Error;
451        }
452
453        class Feed : GData.Feed {
454            public string timezone { get; }
455            public uint times_cleaned { get; }
456        }
457
458        class Query : GData.Query {
459            public Query (string q);
460            public static Query new_with_limits (string q, TimeVal start_min, TimeVal start_max);
461            public bool future_events { get; set; }
462            public bool single_events { get; set; }
463            public string order_by { get; set; }
464            public string sort_order { get; set; }
465            public TimeVal start_min { get; set; }
466            public TimeVal start_max { get; set; }
467            public TimeVal recurrence_expansion_start { get; set; }
468            public TimeVal recurrence_expansion_end { get; set; }
469            public string timezone { get; set; }
470        }
471
472        class Calendar : GData.Entry {
473            public Calendar (string id);
474            public static Calendar new_from_xml (string xml, int length) throws Error;
475            public Color color { get; set; }
476            public bool hidden { get; set; }
477            public bool selected { get; set; }
478            public string timezone { get; set; }
479            public TimeVal edited { get; }
480            public uint times_cleaned { get; }
481            public string access_level { get; }
482        }
483
484        class Event : GData.Entry {
485            public Event (string id);
486            public static Event new_from_xml (string xml, int length) throws Error;
487            public List<GD.Who>? get_people ();
488            public void add_person (GD.Who who);
489            public List<GD.Where>? get_places ();
490            public void add_place (GD.Where where);
491            public List<GD.When>? get_times ();
492            public bool get_primary_time (out TimeVal start_time, out TimeVal end_time, out GD.When when);
493            public void add_time (GD.When when);
494            public string recurrence { get; set; }
495            public void get_original_event_details (out string event_id, out string event_uri);
496            public bool is_exception ();
497            public bool anyone_can_add_self { get; set; }
498            public bool guests_can_invite_others { get; set; }
499            public bool guests_can_modify { get; set; }
500            public bool guests_can_see_guests { get; set; }
501            public uint sequence { get; set; }
502            public string status { get; set; }
503            public string transparency { get; set; }
504            public string uid { get; set; }
505            public string visibility { get; set; }
506            public TimeVal edited { get; }
507        }
508    } // Namespace Calendar
509
510    namespace Contacts {
511        class Service : GData.Service {
512            public Service (string client_id);
513            public GData.Feed query_contacts (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
514            public void query_contacts_async (GData.Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback);
515            public Contact? insert_contact (Contact contact, Cancellable? cancellable) throws GLib.Error;
516        }
517
518        class Query : GData.Query {
519            public Query (string q);
520            public static Query new_with_limits (string q, TimeVal start_min, TimeVal start_max);
521            public string order_by { get; set; }
522            public string sort_order { get; set; }
523            public bool show_deleted { get; set; }
524            public string group { get; set; }
525        }
526
527        class Contact {
528            public Contact (string id);
529            public static Contact new_from_xml (string xml, int length) throws GLib.Error;
530            public List<GD.EmailAddress>? get_email_addresses ();
531            public GD.EmailAddress? get_primary_email_address ();
532            public void add_email_address (GD.EmailAddress address);
533            public List<GD.IMAddress>? get_im_addresses ();
534            public GD.IMAddress? get_primary_im_address ();
535            public void add_im_address (GD.IMAddress address);
536            public List<GD.PostalAddress>? get_postal_addresses ();
537            public GD.PostalAddress? get_primary_postal_address ();
538            public void add_postal_address (GD.PostalAddress address);
539            public List<GD.PhoneNumber>? get_phone_numbers ();
540            public GD.PhoneNumber? get_primary_phone_number ();
541            public void add_phone_number (GD.PhoneNumber address);
542            public List<GD.Organization>? get_organizations ();
543            public GD.Organization? get_primary_organization ();
544            public void add_organization (GD.Organization address);
545            public List<string>? get_groups ();
546            public void add_group (string href);
547            public void remove_group (string href);
548            public bool is_group_deleted (string href);
549            public string get_extended_property (string name);
550            public HashTable<string, string> get_extended_properties ();
551            public bool set_extended_property (string name, string value);
552            public TimeVal edited { get; }
553            public bool is_deleted ();
554            public bool has_photo ();
555            public string get_photo (Service service, out size_t length, out string? content_type, Cancellable? cancellable) throws GLib.Error;
556            public bool set_photo (Service service, string data, size_t length = 0, Cancellable? cancellable = null) throws Error;
557        }
558    } // Namespace Contacts
559
560    [CCode (lower_case_cprefix = "gdata_picasaweb_")]
561    namespace PicasaWeb {
562        class Service : GData.Service {
563            public Service (string client_id);
564            public Feed query_all_albums (Query? query, string? username, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
565            public void query_all_albums_async (Query? query, string? username, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback);
566            public Feed query_files (Album? album, Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws GLib.Error;
567            public File upload_file (Album? album, File file, GLib.File actual_file, Cancellable? cancellable) throws GLib.Error;
568        }
569
570        [CCode (cprefix = "GDATA_PICASAWEB_")]
571        enum Visibility {
572            PUBLIC = 1,
573            PRIVATE
574        }
575
576        class Query : GData.Query {
577            public Query (string q);
578            public Visibility visibility { get; set; }
579            public string thumbnail_size { get; set; }
580            public string image_size { get; set; }
581            public string tag { get; set; }
582            void get_bounding_box (out double north, out double east, out double south, out double west);
583            void set_bounding_box (double north, double east, double south, double west);
584            public string location { get; set; }
585        }
586
587        class Album : GData.Entry {
588            public Album (string id);
589            public static Album new_from_xml (string xml, int length) throws Error;
590            public string user { get; }
591            public string nickname { get; }
592            public TimeVal edited { get; }
593            public string name { get; }
594            public string location { get; set; }
595            public Visibility visibility { get; set; }
596            public TimeVal timestamp { get; set; }
597            public uint num_photos { get; }
598            public uint num_photos_remaining { get; }
599            public long bytes_used { get; }
600            public bool is_commenting_enabled ();
601            public void set_is_commenting_enabled (bool is_commenting_enabled);
602            public uint comment_count { get; }
603            public string tags { get; set; }
604            public string description { get; set; }
605            public List<MediaContent> get_contents ();
606            public List<MediaThumbnail>? get_thumbnails ();
607        }
608
609        class File : GData.Entry {
610            public File (string id);
611            public static File new_from_xml (string xml, int length) throws Error;
612            public TimeVal edited { get; }
613            public string version { get; }
614            public double position { get; set; }
615            public string album_id { get; set; }
616            public uint width { get; }
617            public uint height { get; }
618            public size_t size { get; }
619            public string client { get; set; }
620            public string checksum { get; set; }
621            public TimeVal timestamp { get; set; }
622            public bool is_commenting_enabled ();
623            public void set_is_commenting_enabled (bool is_commenting_enabled);
624            public uint comment_count { get; }
625            public uint rotation { get; set; }
626            public string video_status { get; }
627            public string tags { get; set; }
628            public string credit { get; }
629            public string caption { get; set; }
630            public List<MediaContent> get_contents ();
631            public List<MediaThumbnail>? get_thumbnails ();
632        }
633    } // Namespace PicasaWeb
634
635    namespace Documents {
636        class Service : GData.Service {
637            public Service (string client_id);
638            public Feed query_documents (Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback) throws Error;
639            public void query_documents_async (Query? query, Cancellable? cancellable, QueryProgressCallback? progress_callback, AsyncReadyCallback callback);
640            public Entry upload_document (Entry document, GLib.File document_file, Folder? folder, bool metadata, Cancellable? cancellable) throws GLib.Error;
641            public Entry update_document (Entry document, GLib.File? document_file, bool metadata, bool none_match, bool match, Cancellable? cancellable) throws Error;
642            public Entry move_document_to_folder (Entry document, Folder folder, Cancellable? cancellable) throws Error;
643            public void remove_document_from_folder (Entry document, Folder folder, bool match, Cancellable? cancellable) throws Error;
644        }
645
646        class Query : GData.Query {
647            public Query (string q);
648            public static Query new_with_limits (string q, int start_index, int max_results);
649            public bool show_deleted { get; set; }
650            public bool show_folders { get; set; }
651            public string folder_id { get; set; }
652            public string title { get; set; }
653            public bool exact_title { get; }
654            public List<GD.EmailAddress>? get_collaborators_address ();
655            public List<GD.EmailAddress>? get_readers_address ();
656            public void add_a_collaborator_email_address (string collborator_address);
657            public void add_a_reader_email_address (string reader_address);
658        }
659
660        class Entry : GData.Entry {
661            public TimeVal edited { get; }
662            public TimeVal last_viewed { get; }
663            public string path { get; set; }
664            public string document_id { get; set; }
665            public bool writers_can_invite { get; set; }
666            public Author last_modified_by { get; }
667            public GData.Feed? access_rules { get; }
668            public void set_access_rules (GData.Service service, Cancellable? cancellable, QueryProgressCallback progress_callback) throws GLib.Error;
669        }
670
671        class Feed : GData.Feed {
672        }
673
674        class Folder : GData.Entry {
675        }
676
677        class Presentation : GData.Entry {
678            public Presentation (string id);
679            GLib.File download_document (Service service, out string? content_type, Presentation.Format format, GLib.File destination_directory, bool replace_if_exists, Cancellable? cancellable) throws Error;
680
681            [CCode (cprefix = "GDATA_DOCUMENTS_PRESENTATION_")]
682            public enum Format {
683                PDF,
684                PNG,
685                PPT,
686                SWF,
687                TXT
688            }
689        }
690
691        class Spreadsheet : GData.Entry {
692            public Spreadsheet (string id);
693            GLib.File download_document (Service service, out string? content_type, Presentation.Format format, GLib.File destination_directory, bool replace_if_exists, Cancellable? cancellable) throws Error;
694
695            [CCode (cprefix = "GDATA_DOCUMENTS_SPREADSHEET_")]
696            public enum Format {
697                XLS,
698                CSV,
699                PDF,
700                ODS,
701                TSV,
702                HTML
703            }
704        }
705
706        class Text : GData.Entry {
707            public Text (string id);
708            GLib.File download_document (Service service, out string? content_type, Presentation.Format format, GLib.File destination_directory, bool replace_if_exists, Cancellable? cancellable) throws Error;
709
710            [CCode (cprefix = "GDATA_DOCUMENTS_TEXT_")]
711            public enum Format {
712                DOC,
713                HTML,
714                ODT,
715                PDF,
716                PNG,
717                RTF,
718                TXT,
719                ZIP
720            }
721        }
722    } // Namespace Documents
723
724} // Namespace GData

Archive Download the corresponding diff file

Branches:
master