~ubuntu-branches/ubuntu/raring/vala-0.20/raring-proposed

« back to all changes in this revision

Viewing changes to vapi/rest-0.6.vapi

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-04-05 13:45:05 UTC
  • Revision ID: package-import@ubuntu.com-20130405134505-yyk3rec9904i7p8o
Tags: upstream-0.20.1
ImportĀ upstreamĀ versionĀ 0.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* rest-0.6.vapi generated by vapigen, do not modify. */
 
2
 
 
3
namespace Rest {
 
4
        [CCode (cheader_filename = "rest/oauth-proxy.h", cname = "OAuthProxy")]
 
5
        public class OAuthProxy : Rest.Proxy {
 
6
                [CCode (cname = "oauth_proxy_new", has_construct_function = false, type = "RestProxy*")]
 
7
                public OAuthProxy (string consumer_key, string consumer_secret, string url_format, bool binding_required);
 
8
                [CCode (cname = "oauth_proxy_access_token")]
 
9
                public bool access_token (string function, string verifier) throws GLib.Error;
 
10
                [CCode (cname = "oauth_proxy_access_token_async")]
 
11
                public bool access_token_async (string function, string verifier, [CCode (delegate_target_pos = 4.9)] Rest.OAuthProxyAuthCallback callback, GLib.Object? weak_object) throws GLib.Error;
 
12
                [CCode (cname = "oauth_proxy_auth_step")]
 
13
                [Deprecated]
 
14
                public bool auth_step (string function) throws GLib.Error;
 
15
                [CCode (cname = "oauth_proxy_auth_step_async")]
 
16
                [Deprecated]
 
17
                public bool auth_step_async (string function, [CCode (delegate_target_pos = 3.9)] Rest.OAuthProxyAuthCallback callback, GLib.Object? weak_object) throws GLib.Error;
 
18
                [CCode (cname = "oauth_proxy_get_token")]
 
19
                public unowned string get_token ();
 
20
                [CCode (cname = "oauth_proxy_get_token_secret")]
 
21
                public unowned string get_token_secret ();
 
22
                [CCode (cname = "oauth_proxy_is_oauth10a")]
 
23
                public bool is_oauth10a ();
 
24
                [CCode (cname = "oauth_proxy_request_token")]
 
25
                public bool request_token (string function, string callback_uri) throws GLib.Error;
 
26
                [CCode (cname = "oauth_proxy_request_token_async")]
 
27
                public bool request_token_async (string function, string callback_uri, [CCode (delegate_target_pos = 4.9)] Rest.OAuthProxyAuthCallback callback, GLib.Object? weak_object) throws GLib.Error;
 
28
                [CCode (cname = "oauth_proxy_set_token")]
 
29
                public void set_token (string token);
 
30
                [CCode (cname = "oauth_proxy_set_token_secret")]
 
31
                public void set_token_secret (string token_secret);
 
32
                [CCode (cname = "oauth_proxy_new_with_token", has_construct_function = false, type = "RestProxy*")]
 
33
                public OAuthProxy.with_token (string consumer_key, string consumer_secret, string token, string token_secret, string url_format, bool binding_required);
 
34
                [NoAccessorMethod]
 
35
                public string consumer_key { owned get; construct; }
 
36
                [NoAccessorMethod]
 
37
                public string consumer_secret { owned get; construct; }
 
38
                public string token { get; set; }
 
39
                public string token_secret { get; set; }
 
40
        }
 
41
        [CCode (cheader_filename = "rest/oauth-proxy-call.h")]
 
42
        public class OAuthProxyCall : Rest.ProxyCall {
 
43
                [CCode (has_construct_function = false)]
 
44
                protected OAuthProxyCall ();
 
45
        }
 
46
        [CCode (cheader_filename = "rest/rest-proxy.h")]
 
47
        public class Proxy : GLib.Object {
 
48
                [CCode (has_construct_function = false)]
 
49
                public Proxy (string url_format, bool binding_required);
 
50
                public bool bind (...);
 
51
                public virtual bool bind_valist (void* @params);
 
52
                public static GLib.Quark error_quark ();
 
53
                public unowned string get_user_agent ();
 
54
                public virtual Rest.ProxyCall new_call ();
 
55
                public void set_user_agent (string user_agent);
 
56
                public bool simple_run (string payload, int64 len) throws GLib.Error;
 
57
                public virtual bool simple_run_valist (string payload, int64 len, void* @params) throws GLib.Error;
 
58
                [NoAccessorMethod]
 
59
                public bool binding_required { get; set; }
 
60
                [NoAccessorMethod]
 
61
                public string url_format { owned get; set; }
 
62
                public string user_agent { get; set; }
 
63
        }
 
64
        [CCode (cheader_filename = "rest/rest-proxy-call.h")]
 
65
        public class ProxyCall : GLib.Object {
 
66
                [CCode (has_construct_function = false)]
 
67
                protected ProxyCall ();
 
68
                public void add_header (string header, string value);
 
69
                public void add_headers (...);
 
70
                public void add_headers_from_valist (void* headers);
 
71
                public void add_param (string param, string value);
 
72
                public void add_params (...);
 
73
                public void add_params_from_valist (void* @params);
 
74
                public bool cancel ();
 
75
                public static GLib.Quark error_quark ();
 
76
                public unowned string get_method ();
 
77
                public GLib.HashTable<string,string> get_params ();
 
78
                public unowned string get_payload ();
 
79
                public int64 get_payload_length ();
 
80
                public unowned GLib.HashTable get_response_headers ();
 
81
                public uint get_status_code ();
 
82
                public unowned string get_status_message ();
 
83
                public unowned string lookup_header (string header);
 
84
                public unowned string lookup_param (string param);
 
85
                public unowned string lookup_response_header (string header);
 
86
                [NoWrapper]
 
87
                public virtual bool prepare () throws GLib.Error;
 
88
                public void remove_header (string header);
 
89
                public void remove_param (string param);
 
90
                public bool run (out unowned GLib.MainLoop loop) throws GLib.Error;
 
91
                [CCode (cname = "rest_proxy_call_async")]
 
92
                public bool run_async ([CCode (delegate_target_pos = 2.9)] Rest.ProxyCallAsyncCallback callback, GLib.Object? weak_object) throws GLib.Error;
 
93
                public void set_function (string function);
 
94
                public void set_method (string method);
 
95
                public bool sync () throws GLib.Error;
 
96
                [NoAccessorMethod]
 
97
                public Rest.Proxy proxy { owned get; construct; }
 
98
        }
 
99
        [CCode (cheader_filename = "rest/rest-xml-parser.h", ref_function = "rest_xml_node_ref", type_id = "rest_xml_node_get_type ()", unref_function = "rest_xml_node_unref")]
 
100
        [Compact]
 
101
        public class XmlNode {
 
102
                public weak GLib.HashTable attrs;
 
103
                public weak GLib.HashTable children;
 
104
                public weak string content;
 
105
                public weak string name;
 
106
                public weak Rest.XmlNode next;
 
107
                public int ref_count;
 
108
                public unowned Rest.XmlNode find (string tag);
 
109
                public unowned string get_attr (string attr_name);
 
110
        }
 
111
        [CCode (cheader_filename = "rest/rest-xml-parser.h")]
 
112
        public class XmlParser : GLib.Object {
 
113
                [CCode (has_construct_function = false)]
 
114
                public XmlParser ();
 
115
                public unowned Rest.XmlNode parse_from_data (string data, int64 len);
 
116
        }
 
117
        [CCode (cheader_filename = "rest/oauth-proxy.h", cprefix = "", has_type_id = false)]
 
118
        public enum OAuthSignatureMethod {
 
119
                PLAINTEXT,
 
120
                HMAC_SHA1
 
121
        }
 
122
        [CCode (cheader_filename = "rest/rest-proxy-call.h", cprefix = "REST_PROXY_CALL_")]
 
123
        public errordomain ProxyCallError {
 
124
                FAILED
 
125
        }
 
126
        [CCode (cheader_filename = "rest/rest-proxy.h", cprefix = "REST_PROXY_ERROR_")]
 
127
        public errordomain ProxyError {
 
128
                CANCELLED,
 
129
                RESOLUTION,
 
130
                CONNECTION,
 
131
                SSL,
 
132
                IO,
 
133
                FAILED,
 
134
                HTTP_MULTIPLE_CHOICES,
 
135
                HTTP_MOVED_PERMANENTLY,
 
136
                HTTP_FOUND,
 
137
                HTTP_SEE_OTHER,
 
138
                HTTP_NOT_MODIFIED,
 
139
                HTTP_USE_PROXY,
 
140
                HTTP_THREEOHSIX,
 
141
                HTTP_TEMPORARY_REDIRECT,
 
142
                HTTP_BAD_REQUEST,
 
143
                HTTP_UNAUTHORIZED,
 
144
                HTTP_FOUROHTWO,
 
145
                HTTP_FORBIDDEN,
 
146
                HTTP_NOT_FOUND,
 
147
                HTTP_METHOD_NOT_ALLOWED,
 
148
                HTTP_NOT_ACCEPTABLE,
 
149
                HTTP_PROXY_AUTHENTICATION_REQUIRED,
 
150
                HTTP_REQUEST_TIMEOUT,
 
151
                HTTP_CONFLICT,
 
152
                HTTP_GONE,
 
153
                HTTP_LENGTH_REQUIRED,
 
154
                HTTP_PRECONDITION_FAILED,
 
155
                HTTP_REQUEST_ENTITY_TOO_LARGE,
 
156
                HTTP_REQUEST_URI_TOO_LONG,
 
157
                HTTP_UNSUPPORTED_MEDIA_TYPE,
 
158
                HTTP_REQUESTED_RANGE_NOT_SATISFIABLE,
 
159
                HTTP_EXPECTATION_FAILED,
 
160
                HTTP_INTERNAL_SERVER_ERROR,
 
161
                HTTP_NOT_IMPLEMENTED,
 
162
                HTTP_BAD_GATEWAY,
 
163
                HTTP_SERVICE_UNAVAILABLE,
 
164
                HTTP_GATEWAY_TIMEOUT,
 
165
                HTTP_HTTP_VERSION_NOT_SUPPORTED
 
166
        }
 
167
        [CCode (cheader_filename = "rest/oauth-proxy.h")]
 
168
        public delegate void OAuthProxyAuthCallback (Rest.OAuthProxy proxy, GLib.Error? error, GLib.Object? weak_object);
 
169
        [CCode (cheader_filename = "rest/rest-proxy-call.h")]
 
170
        public delegate void ProxyCallAsyncCallback (Rest.ProxyCall call, GLib.Error? error, GLib.Object? weak_object);
 
171
}