Release 0.36.14
[vala-gnome.git] / vapi / twitter-glib-1.0.vapi
blob593154affe79a7cb6f2dfc32b4ff4b11356d9cb8
1 /* twitter-glib-1.0.vapi generated by vapigen, do not modify. */
3 namespace Twitter {
4         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
5         public class Client : GLib.Object {
6                 [CCode (has_construct_function = false)]
7                 public Client ();
8                 public ulong add_favorite (uint status_id);
9                 public ulong add_friend (string user);
10                 public ulong add_status (string text);
11                 public void end_session ();
12                 public ulong follow_user (string user);
13                 [CCode (has_construct_function = false)]
14                 public Client.for_user (string email, string password);
15                 [CCode (has_construct_function = false)]
16                 public Client.full (Twitter.Provider provider, string? base_url, string? email, string? password);
17                 public ulong get_archive (int page);
18                 public unowned string get_base_url ();
19                 public ulong get_favorites (string user, int page);
20                 public ulong get_followers (int page, bool omit_status);
21                 public ulong get_friends (string user, int page, bool omit_status);
22                 public ulong get_friends_timeline (string friend_, int64 since_date);
23                 public Twitter.Provider get_provider ();
24                 public ulong get_public_timeline (uint since_id);
25                 public void get_rate_limit (int limit, int remaining);
26                 public ulong get_replies ();
27                 public ulong get_status (uint status_id);
28                 public void get_user (out unowned string email, out unowned string password);
29                 public ulong get_user_timeline (string user, uint count, int64 since_date);
30                 public ulong leave_user (string user);
31                 public ulong remove_favorite (uint status_id);
32                 public ulong remove_friend (string user);
33                 public ulong remove_status (uint status_id);
34                 public void set_user (string email, string password);
35                 public ulong show_user_from_email (string email);
36                 public ulong show_user_from_id (string id_or_screen_name);
37                 public ulong verify_user ();
38                 public string base_url { get; construct; }
39                 [NoAccessorMethod]
40                 public string email { owned get; set; }
41                 [NoAccessorMethod]
42                 public int max_requests { get; }
43                 [NoAccessorMethod]
44                 public string password { owned get; set; }
45                 public Twitter.Provider provider { get; construct; }
46                 [NoAccessorMethod]
47                 public int remaining_requests { get; }
48                 [NoAccessorMethod]
49                 public string user_agent { owned get; construct; }
50                 public virtual signal bool authenticate (Twitter.AuthState state);
51                 public virtual signal void session_ended ();
52                 public virtual signal void status_received (ulong handle, Twitter.Status? status, GLib.Error error);
53                 public virtual signal void timeline_complete ();
54                 public virtual signal void user_received (ulong handle, Twitter.User user, GLib.Error error);
55                 public virtual signal void user_verified (ulong handle, bool is_verified, GLib.Error error);
56         }
57         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
58         public class Status : GLib.InitiallyUnowned {
59                 [CCode (has_construct_function = false)]
60                 public Status ();
61                 [CCode (has_construct_function = false)]
62                 public Status.from_data (string buffer);
63                 public unowned string get_created_at ();
64                 public uint get_id ();
65                 public uint get_reply_to_status ();
66                 public uint get_reply_to_user ();
67                 public unowned string get_source ();
68                 public unowned string get_text ();
69                 public bool get_truncated ();
70                 public unowned string get_url ();
71                 public unowned Twitter.User get_user ();
72                 public bool load_from_data (string buffer) throws GLib.Error;
73                 public string created_at { get; }
74                 public uint id { get; }
75                 public uint reply_to_status { get; }
76                 public uint reply_to_user { get; }
77                 public string source { get; }
78                 public string text { get; }
79                 public bool truncated { get; }
80                 public string url { get; }
81                 public Twitter.User user { get; }
82                 public virtual signal void changed ();
83         }
84         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
85         public class Timeline : GLib.Object {
86                 [CCode (has_construct_function = false)]
87                 public Timeline ();
88                 [CCode (has_construct_function = false)]
89                 public Timeline.from_data (string buffer);
90                 public unowned GLib.List get_all ();
91                 public uint get_count ();
92                 public Twitter.Status get_id (uint id);
93                 public Twitter.Status get_pos (int index_);
94                 public bool load_from_data (string buffer) throws GLib.Error;
95         }
96         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
97         public class User : GLib.InitiallyUnowned {
98                 [CCode (has_construct_function = false)]
99                 public User ();
100                 [CCode (has_construct_function = false)]
101                 public User.from_data (string buffer);
102                 public unowned string get_created_at ();
103                 public unowned string get_description ();
104                 public uint get_favorites_count ();
105                 public uint get_followers_count ();
106                 public bool get_following ();
107                 public uint get_friends_count ();
108                 public uint get_id ();
109                 public unowned string get_location ();
110                 public unowned string get_name ();
111                 public Gdk.Pixbuf get_profile_image ();
112                 public unowned string get_profile_image_url ();
113                 public bool get_protected ();
114                 public unowned string get_screen_name ();
115                 public Twitter.Status get_status ();
116                 public uint get_statuses_count ();
117                 public unowned string get_time_zone ();
118                 public unowned string get_url ();
119                 public int get_utc_offset ();
120                 public bool load_from_data (string buffer) throws GLib.Error;
121                 public string created_at { get; }
122                 public string description { get; }
123                 public uint favorites_count { get; }
124                 public uint followers_count { get; }
125                 public bool following { get; }
126                 public uint friends_count { get; }
127                 public uint id { get; }
128                 public string location { get; }
129                 public string name { get; }
130                 public string profile_image_url { get; }
131                 public bool @protected { get; }
132                 public string screen_name { get; }
133                 public Twitter.Status status { get; }
134                 public uint statuses_count { get; }
135                 public string time_zone { get; }
136                 public string url { get; }
137                 public int utc_offset { get; }
138                 public virtual signal void changed ();
139         }
140         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
141         public class UserList : GLib.Object {
142                 [CCode (has_construct_function = false)]
143                 public UserList ();
144                 [CCode (has_construct_function = false)]
145                 public UserList.from_data (string buffer);
146                 public unowned GLib.List get_all ();
147                 public uint get_count ();
148                 public Twitter.User get_id (uint id);
149                 public Twitter.User get_pos (int index_);
150                 public bool load_from_data (string buffer) throws GLib.Error;
151         }
152         [CCode (cheader_filename = "twitter-glib/twitter-glib.h", cprefix = "TWITTER_AUTH_")]
153         public enum AuthState {
154                 NEGOTIATING,
155                 RETRY,
156                 FAILED,
157                 SUCCESS
158         }
159         [CCode (cheader_filename = "twitter-glib/twitter-glib.h", cprefix = "TWITTER_")]
160         public enum Provider {
161                 CUSTOM_PROVIDER,
162                 DEFAULT_PROVIDER,
163                 IDENTI_CA
164         }
165         [CCode (cheader_filename = "twitter-glib/twitter-glib.h", cprefix = "TWITTER_ERROR_")]
166         public errordomain Error {
167                 HOST_NOT_FOUND,
168                 CANCELLED,
169                 PERMISSION_DENIED,
170                 NOT_FOUND,
171                 TIMED_OUT,
172                 FAILED,
173                 NOT_MODIFIED,
174                 PARSE_ERROR
175         }
176         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
177         public const string GLIB_API_VERSION_S;
178         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
179         public const int GLIB_MAJOR_VERSION;
180         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
181         public const int GLIB_MICRO_VERSION;
182         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
183         public const int GLIB_MINOR_VERSION;
184         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
185         public const int GLIB_VERSION_HEX;
186         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
187         public const string GLIB_VERSION_S;
188         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
189         public static bool date_to_time_val (string date, out GLib.TimeVal time_);
190         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
191         public static unowned Twitter.Error error_from_status (uint status);
192         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
193         public static GLib.Quark error_quark ();
194         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
195         public static unowned string http_date_from_delta (int seconds);
196         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
197         public static unowned string http_date_from_time_t (ulong time_);
198         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
199         public static int http_date_to_delta (string date);
200         [CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
201         public static ulong http_date_to_time_t (string date);