41
33
<h2><span class="refentrytitle"><a name="GoaOAuthBased.top_of_page"></a>GoaOAuthBased</span></h2>
42
34
<p>GoaOAuthBased — Generated C code for the org.gnome.OnlineAccounts.OAuthBased D-Bus interface</p>
44
<td valign="top" align="right"></td>
36
<td class="gallery_image" valign="top" align="right"></td>
45
37
</tr></table></div>
46
<div class="refsynopsisdiv">
47
<a name="GoaOAuthBased.synopsis"></a><h2>Synopsis</h2>
48
<pre class="synopsis"> <a class="link" href="GoaOAuthBased.html#GoaOAuthBased-struct" title="GoaOAuthBased">GoaOAuthBased</a>;
49
struct <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedIface" title="struct GoaOAuthBasedIface">GoaOAuthBasedIface</a>;
50
<span class="returnvalue">GDBusInterfaceInfo</span> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-interface-info" title="goa_oauth_based_interface_info ()">goa_oauth_based_interface_info</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
51
<span class="returnvalue">guint</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-override-properties" title="goa_oauth_based_override_properties ()">goa_oauth_based_override_properties</a> (<em class="parameter"><code><span class="type">GObjectClass</span> *klass</code></em>,
52
<em class="parameter"><code><span class="type">guint</span> property_id_begin</code></em>);
53
<span class="returnvalue">void</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()">goa_oauth_based_call_get_access_token</a>
54
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
55
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
56
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
57
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
58
<span class="returnvalue">gboolean</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-finish" title="goa_oauth_based_call_get_access_token_finish ()">goa_oauth_based_call_get_access_token_finish</a>
59
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
60
<em class="parameter"><code><span class="type">gchar</span> **out_access_token</code></em>,
61
<em class="parameter"><code><span class="type">gchar</span> **out_access_token_secret</code></em>,
62
<em class="parameter"><code><span class="type">gint</span> *out_expires_in</code></em>,
63
<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
64
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
65
<span class="returnvalue">gboolean</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-sync" title="goa_oauth_based_call_get_access_token_sync ()">goa_oauth_based_call_get_access_token_sync</a>
66
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
67
<em class="parameter"><code><span class="type">gchar</span> **out_access_token</code></em>,
68
<em class="parameter"><code><span class="type">gchar</span> **out_access_token_secret</code></em>,
69
<em class="parameter"><code><span class="type">gint</span> *out_expires_in</code></em>,
70
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
71
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
72
<span class="returnvalue">void</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-complete-get-access-token" title="goa_oauth_based_complete_get_access_token ()">goa_oauth_based_complete_get_access_token</a>
73
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
74
<em class="parameter"><code><span class="type">GDBusMethodInvocation</span> *invocation</code></em>,
75
<em class="parameter"><code>const <span class="type">gchar</span> *access_token</code></em>,
76
<em class="parameter"><code>const <span class="type">gchar</span> *access_token_secret</code></em>,
77
<em class="parameter"><code><span class="type">gint</span> expires_in</code></em>);
78
const <span class="returnvalue">gchar</span> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-get-consumer-key" title="goa_oauth_based_get_consumer_key ()">goa_oauth_based_get_consumer_key</a> (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);
79
<span class="returnvalue">gchar</span> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-key" title="goa_oauth_based_dup_consumer_key ()">goa_oauth_based_dup_consumer_key</a> (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);
80
<span class="returnvalue">void</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-set-consumer-key" title="goa_oauth_based_set_consumer_key ()">goa_oauth_based_set_consumer_key</a> (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
81
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);
82
const <span class="returnvalue">gchar</span> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-get-consumer-secret" title="goa_oauth_based_get_consumer_secret ()">goa_oauth_based_get_consumer_secret</a> (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);
83
<span class="returnvalue">gchar</span> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-secret" title="goa_oauth_based_dup_consumer_secret ()">goa_oauth_based_dup_consumer_secret</a> (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);
84
<span class="returnvalue">void</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-set-consumer-secret" title="goa_oauth_based_set_consumer_secret ()">goa_oauth_based_set_consumer_secret</a> (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
85
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);
86
struct <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy">GoaOAuthBasedProxy</a>;
87
struct <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxyClass" title="struct GoaOAuthBasedProxyClass">GoaOAuthBasedProxyClass</a>;
88
<span class="returnvalue">void</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()">goa_oauth_based_proxy_new</a> (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
89
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
90
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
91
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
92
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
93
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
94
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
95
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-finish" title="goa_oauth_based_proxy_new_finish ()">goa_oauth_based_proxy_new_finish</a> (<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
96
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
97
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-sync" title="goa_oauth_based_proxy_new_sync ()">goa_oauth_based_proxy_new_sync</a> (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
98
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
99
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
100
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
101
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
102
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
103
<span class="returnvalue">void</span> <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()">goa_oauth_based_proxy_new_for_bus</a> (<em class="parameter"><code><span class="type">GBusType</span> bus_type</code></em>,
104
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
105
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
106
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
107
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
108
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
109
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
110
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-finish" title="goa_oauth_based_proxy_new_for_bus_finish ()">goa_oauth_based_proxy_new_for_bus_finish</a>
111
(<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
112
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
113
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-sync" title="goa_oauth_based_proxy_new_for_bus_sync ()">goa_oauth_based_proxy_new_for_bus_sync</a>
114
(<em class="parameter"><code><span class="type">GBusType</span> bus_type</code></em>,
115
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
116
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
117
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
118
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
119
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
120
struct <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedSkeleton" title="struct GoaOAuthBasedSkeleton">GoaOAuthBasedSkeleton</a>;
121
struct <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedSkeletonClass" title="struct GoaOAuthBasedSkeletonClass">GoaOAuthBasedSkeletonClass</a>;
122
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * <a class="link" href="GoaOAuthBased.html#goa-oauth-based-skeleton-new" title="goa_oauth_based_skeleton_new ()">goa_oauth_based_skeleton_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
38
<div class="refsect1">
39
<a name="GoaOAuthBased.functions"></a><h2>Functions</h2>
40
<div class="informaltable"><table width="100%" border="0">
42
<col width="150px" class="functions_return">
43
<col class="functions_name">
47
<td class="function_type">
48
<a href="http://library.gnome.org/devel/gio/unstable/gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo"><span class="returnvalue">GDBusInterfaceInfo</span></a> *
50
<td class="function_name">
51
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-interface-info" title="goa_oauth_based_interface_info ()">goa_oauth_based_interface_info</a> <span class="c_punctuation">()</span>
55
<td class="function_type">
56
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
58
<td class="function_name">
59
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-override-properties" title="goa_oauth_based_override_properties ()">goa_oauth_based_override_properties</a> <span class="c_punctuation">()</span>
63
<td class="function_type">
64
<span class="returnvalue">void</span>
66
<td class="function_name">
67
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()">goa_oauth_based_call_get_access_token</a> <span class="c_punctuation">()</span>
71
<td class="function_type">
72
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
74
<td class="function_name">
75
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-finish" title="goa_oauth_based_call_get_access_token_finish ()">goa_oauth_based_call_get_access_token_finish</a> <span class="c_punctuation">()</span>
79
<td class="function_type">
80
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
82
<td class="function_name">
83
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-sync" title="goa_oauth_based_call_get_access_token_sync ()">goa_oauth_based_call_get_access_token_sync</a> <span class="c_punctuation">()</span>
87
<td class="function_type">
88
<span class="returnvalue">void</span>
90
<td class="function_name">
91
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-complete-get-access-token" title="goa_oauth_based_complete_get_access_token ()">goa_oauth_based_complete_get_access_token</a> <span class="c_punctuation">()</span>
95
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
97
<td class="function_name">
98
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-get-consumer-key" title="goa_oauth_based_get_consumer_key ()">goa_oauth_based_get_consumer_key</a> <span class="c_punctuation">()</span>
102
<td class="function_type">
103
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
105
<td class="function_name">
106
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-key" title="goa_oauth_based_dup_consumer_key ()">goa_oauth_based_dup_consumer_key</a> <span class="c_punctuation">()</span>
110
<td class="function_type">
111
<span class="returnvalue">void</span>
113
<td class="function_name">
114
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-set-consumer-key" title="goa_oauth_based_set_consumer_key ()">goa_oauth_based_set_consumer_key</a> <span class="c_punctuation">()</span>
118
<td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
120
<td class="function_name">
121
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-get-consumer-secret" title="goa_oauth_based_get_consumer_secret ()">goa_oauth_based_get_consumer_secret</a> <span class="c_punctuation">()</span>
125
<td class="function_type">
126
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
128
<td class="function_name">
129
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-secret" title="goa_oauth_based_dup_consumer_secret ()">goa_oauth_based_dup_consumer_secret</a> <span class="c_punctuation">()</span>
133
<td class="function_type">
134
<span class="returnvalue">void</span>
136
<td class="function_name">
137
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-set-consumer-secret" title="goa_oauth_based_set_consumer_secret ()">goa_oauth_based_set_consumer_secret</a> <span class="c_punctuation">()</span>
141
<td class="function_type">
142
<span class="returnvalue">void</span>
144
<td class="function_name">
145
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()">goa_oauth_based_proxy_new</a> <span class="c_punctuation">()</span>
149
<td class="function_type">
150
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
152
<td class="function_name">
153
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-finish" title="goa_oauth_based_proxy_new_finish ()">goa_oauth_based_proxy_new_finish</a> <span class="c_punctuation">()</span>
157
<td class="function_type">
158
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
160
<td class="function_name">
161
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-sync" title="goa_oauth_based_proxy_new_sync ()">goa_oauth_based_proxy_new_sync</a> <span class="c_punctuation">()</span>
165
<td class="function_type">
166
<span class="returnvalue">void</span>
168
<td class="function_name">
169
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()">goa_oauth_based_proxy_new_for_bus</a> <span class="c_punctuation">()</span>
173
<td class="function_type">
174
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
176
<td class="function_name">
177
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-finish" title="goa_oauth_based_proxy_new_for_bus_finish ()">goa_oauth_based_proxy_new_for_bus_finish</a> <span class="c_punctuation">()</span>
181
<td class="function_type">
182
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
184
<td class="function_name">
185
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-sync" title="goa_oauth_based_proxy_new_for_bus_sync ()">goa_oauth_based_proxy_new_for_bus_sync</a> <span class="c_punctuation">()</span>
189
<td class="function_type">
190
<a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
192
<td class="function_name">
193
<a class="link" href="GoaOAuthBased.html#goa-oauth-based-skeleton-new" title="goa_oauth_based_skeleton_new ()">goa_oauth_based_skeleton_new</a> <span class="c_punctuation">()</span>
199
<div class="refsect1">
200
<a name="GoaOAuthBased.properties"></a><h2>Properties</h2>
201
<div class="informaltable"><table border="0">
203
<col width="150px" class="properties_type">
204
<col width="300px" class="properties_name">
205
<col width="200px" class="properties_flags">
209
<td class="property_type">
210
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
211
<td class="property_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-key" title="The “consumer-key” property">consumer-key</a></td>
212
<td class="property_flags">Read / Write</td>
215
<td class="property_type">
216
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
217
<td class="property_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-secret" title="The “consumer-secret” property">consumer-secret</a></td>
218
<td class="property_flags">Read / Write</td>
223
<div class="refsect1">
224
<a name="GoaOAuthBased.signals"></a><h2>Signals</h2>
225
<div class="informaltable"><table border="0">
227
<col width="150px" class="signals_return">
228
<col width="300px" class="signals_name">
229
<col width="200px" class="signals_flags">
232
<td class="signal_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a></td>
233
<td class="signal_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBased-handle-get-access-token" title="The “handle-get-access-token” signal">handle-get-access-token</a></td>
234
<td class="signal_flags">Run Last</td>
238
<div class="refsect1">
239
<a name="GoaOAuthBased.other"></a><h2>Types and Values</h2>
240
<div class="informaltable"><table width="100%" border="0">
242
<col width="150px" class="name">
243
<col class="description">
247
<td class="datatype_keyword"> </td>
248
<td class="function_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBased-struct" title="GoaOAuthBased">GoaOAuthBased</a></td>
251
<td class="datatype_keyword">struct</td>
252
<td class="function_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBasedIface" title="struct GoaOAuthBasedIface">GoaOAuthBasedIface</a></td>
255
<td class="datatype_keyword">struct</td>
256
<td class="function_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy">GoaOAuthBasedProxy</a></td>
259
<td class="datatype_keyword">struct</td>
260
<td class="function_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxyClass" title="struct GoaOAuthBasedProxyClass">GoaOAuthBasedProxyClass</a></td>
263
<td class="datatype_keyword">struct</td>
264
<td class="function_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBasedSkeleton" title="struct GoaOAuthBasedSkeleton">GoaOAuthBasedSkeleton</a></td>
267
<td class="datatype_keyword">struct</td>
268
<td class="function_name"><a class="link" href="GoaOAuthBased.html#GoaOAuthBasedSkeletonClass" title="struct GoaOAuthBasedSkeletonClass">GoaOAuthBasedSkeletonClass</a></td>
125
273
<div class="refsect1">
126
274
<a name="GoaOAuthBased.object-hierarchy"></a><h2>Object Hierarchy</h2>
127
<pre class="synopsis">
275
<pre class="screen"> GInterface
276
<span class="lineart">╰──</span> GoaOAuthBased
132
279
<div class="refsect1">
133
280
<a name="GoaOAuthBased.prerequisites"></a><h2>Prerequisites</h2>
135
282
GoaOAuthBased requires
138
<div class="refsect1">
139
<a name="GoaOAuthBased.properties"></a><h2>Properties</h2>
140
<pre class="synopsis">
141
"<a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-key" title='The "consumer-key" property'>consumer-key</a>" <span class="type">gchar</span>* : Read / Write
142
"<a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-secret" title='The "consumer-secret" property'>consumer-secret</a>" <span class="type">gchar</span>* : Read / Write
145
<div class="refsect1">
146
<a name="GoaOAuthBased.signals"></a><h2>Signals</h2>
147
<pre class="synopsis">
148
"<a class="link" href="GoaOAuthBased.html#GoaOAuthBased-handle-get-access-token" title='The "handle-get-access-token" signal'>handle-get-access-token</a>" : <code class="literal">Run Last</code>
283
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>.</p>
151
285
<div class="refsect1">
152
286
<a name="GoaOAuthBased.description"></a><h2>Description</h2>
154
This section contains code for working with the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a> D-Bus interface in C.
157
<div class="refsect1">
158
<a name="GoaOAuthBased.details"></a><h2>Details</h2>
287
<p>This section contains code for working with the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a> D-Bus interface in C.</p>
289
<div class="refsect1">
290
<a name="GoaOAuthBased.functions_details"></a><h2>Functions</h2>
291
<div class="refsect2">
292
<a name="goa-oauth-based-interface-info"></a><h3>goa_oauth_based_interface_info ()</h3>
293
<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo"><span class="returnvalue">GDBusInterfaceInfo</span></a> *
294
goa_oauth_based_interface_info (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
295
<p>Gets a machine-readable description of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a> D-Bus interface.</p>
296
<div class="refsect3">
297
<a name="id-1.4.5.6.10.2.5"></a><h4>Returns</h4>
298
<p> A <a href="http://library.gnome.org/devel/gio/unstable/gio-D-Bus-Introspection-Data.html#GDBusInterfaceInfo"><span class="type">GDBusInterfaceInfo</span></a>. Do not free. </p>
299
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
303
<div class="refsect2">
304
<a name="goa-oauth-based-override-properties"></a><h3>goa_oauth_based_override_properties ()</h3>
305
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
306
goa_oauth_based_override_properties (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> *klass</code></em>,
307
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> property_id_begin</code></em>);</pre>
308
<p>Overrides all <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> properties in the <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> interface for a concrete class.
309
The properties are overridden in the order they are defined.</p>
310
<div class="refsect3">
311
<a name="id-1.4.5.6.10.3.5"></a><h4>Parameters</h4>
312
<div class="informaltable"><table width="100%" border="0">
314
<col width="150px" class="parameters_name">
315
<col class="parameters_description">
316
<col width="200px" class="parameters_annotations">
320
<td class="parameter_name"><p>klass</p></td>
321
<td class="parameter_description"><p>The class structure for a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>-derived class.</p></td>
322
<td class="parameter_annotations"> </td>
325
<td class="parameter_name"><p>property_id_begin</p></td>
326
<td class="parameter_description"><p>The property id to assign to the first overridden property.</p></td>
327
<td class="parameter_annotations"> </td>
332
<div class="refsect3">
333
<a name="id-1.4.5.6.10.3.6"></a><h4>Returns</h4>
334
<p> The last property id.</p>
339
<div class="refsect2">
340
<a name="goa-oauth-based-call-get-access-token"></a><h3>goa_oauth_based_call_get_access_token ()</h3>
341
<pre class="programlisting"><span class="returnvalue">void</span>
342
goa_oauth_based_call_get_access_token (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
343
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
344
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
345
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
346
<p>Asynchronously invokes the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-method-org-gnome-OnlineAccounts-OAuthBased.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method on <em class="parameter"><code>proxy</code></em>
348
When the operation is finished, <em class="parameter"><code>callback</code></em>
349
will be invoked in the <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-context-push-thread-default">thread-default main loop</a> of the thread you are calling this method from.
350
You can then call <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-finish" title="goa_oauth_based_call_get_access_token_finish ()"><code class="function">goa_oauth_based_call_get_access_token_finish()</code></a> to get the result of the operation.</p>
351
<p>See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-sync" title="goa_oauth_based_call_get_access_token_sync ()"><code class="function">goa_oauth_based_call_get_access_token_sync()</code></a> for the synchronous, blocking version of this method.</p>
352
<div class="refsect3">
353
<a name="id-1.4.5.6.10.4.6"></a><h4>Parameters</h4>
354
<div class="informaltable"><table width="100%" border="0">
356
<col width="150px" class="parameters_name">
357
<col class="parameters_description">
358
<col width="200px" class="parameters_annotations">
362
<td class="parameter_name"><p>proxy</p></td>
363
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</p></td>
364
<td class="parameter_annotations"> </td>
367
<td class="parameter_name"><p>cancellable</p></td>
368
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
369
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
372
<td class="parameter_name"><p>callback</p></td>
373
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
374
<td class="parameter_annotations"> </td>
377
<td class="parameter_name"><p>user_data</p></td>
378
<td class="parameter_description"><p>User data to pass to <em class="parameter"><code>callback</code></em>
380
<td class="parameter_annotations"> </td>
387
<div class="refsect2">
388
<a name="goa-oauth-based-call-get-access-token-finish"></a><h3>goa_oauth_based_call_get_access_token_finish ()</h3>
389
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
390
goa_oauth_based_call_get_access_token_finish
391
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
392
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token</code></em>,
393
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token_secret</code></em>,
394
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *out_expires_in</code></em>,
395
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
396
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
397
<p>Finishes an operation started with <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()"><code class="function">goa_oauth_based_call_get_access_token()</code></a>.</p>
398
<div class="refsect3">
399
<a name="id-1.4.5.6.10.5.5"></a><h4>Parameters</h4>
400
<div class="informaltable"><table width="100%" border="0">
402
<col width="150px" class="parameters_name">
403
<col class="parameters_description">
404
<col width="200px" class="parameters_annotations">
408
<td class="parameter_name"><p>proxy</p></td>
409
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</p></td>
410
<td class="parameter_annotations"> </td>
413
<td class="parameter_name"><p>out_access_token</p></td>
414
<td class="parameter_description"><p> Return location for return parameter or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
415
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
418
<td class="parameter_name"><p>out_access_token_secret</p></td>
419
<td class="parameter_description"><p> Return location for return parameter or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
420
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
423
<td class="parameter_name"><p>out_expires_in</p></td>
424
<td class="parameter_description"><p> Return location for return parameter or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
425
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
428
<td class="parameter_name"><p>res</p></td>
429
<td class="parameter_description"><p>The <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> obtained from the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> passed to <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()"><code class="function">goa_oauth_based_call_get_access_token()</code></a>.</p></td>
430
<td class="parameter_annotations"> </td>
433
<td class="parameter_name"><p>error</p></td>
434
<td class="parameter_description"><p>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
435
<td class="parameter_annotations"> </td>
440
<div class="refsect3">
441
<a name="id-1.4.5.6.10.5.6"></a><h4>Returns</h4>
442
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the call succeded, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em>
444
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
448
<div class="refsect2">
449
<a name="goa-oauth-based-call-get-access-token-sync"></a><h3>goa_oauth_based_call_get_access_token_sync ()</h3>
450
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
451
goa_oauth_based_call_get_access_token_sync
452
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
453
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token</code></em>,
454
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> **out_access_token_secret</code></em>,
455
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *out_expires_in</code></em>,
456
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
457
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
458
<p>Synchronously invokes the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-method-org-gnome-OnlineAccounts-OAuthBased.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method on <em class="parameter"><code>proxy</code></em>
459
. The calling thread is blocked until a reply is received.</p>
460
<p>See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()"><code class="function">goa_oauth_based_call_get_access_token()</code></a> for the asynchronous version of this method.</p>
461
<div class="refsect3">
462
<a name="id-1.4.5.6.10.6.6"></a><h4>Parameters</h4>
463
<div class="informaltable"><table width="100%" border="0">
465
<col width="150px" class="parameters_name">
466
<col class="parameters_description">
467
<col width="200px" class="parameters_annotations">
471
<td class="parameter_name"><p>proxy</p></td>
472
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</p></td>
473
<td class="parameter_annotations"> </td>
476
<td class="parameter_name"><p>out_access_token</p></td>
477
<td class="parameter_description"><p> Return location for return parameter or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
478
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
481
<td class="parameter_name"><p>out_access_token_secret</p></td>
482
<td class="parameter_description"><p> Return location for return parameter or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
483
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
486
<td class="parameter_name"><p>out_expires_in</p></td>
487
<td class="parameter_description"><p> Return location for return parameter or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
488
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
491
<td class="parameter_name"><p>cancellable</p></td>
492
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
493
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
496
<td class="parameter_name"><p>error</p></td>
497
<td class="parameter_description"><p>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p></td>
498
<td class="parameter_annotations"> </td>
503
<div class="refsect3">
504
<a name="id-1.4.5.6.10.6.7"></a><h4>Returns</h4>
505
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the call succeded, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em>
507
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
511
<div class="refsect2">
512
<a name="goa-oauth-based-complete-get-access-token"></a><h3>goa_oauth_based_complete_get_access_token ()</h3>
513
<pre class="programlisting"><span class="returnvalue">void</span>
514
goa_oauth_based_complete_get_access_token
515
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
516
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a> *invocation</code></em>,
517
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *access_token</code></em>,
518
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *access_token_secret</code></em>,
519
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> expires_in</code></em>);</pre>
520
<p>Helper function used in service implementations to finish handling invocations of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-method-org-gnome-OnlineAccounts-OAuthBased.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method. If you instead want to finish handling an invocation by returning an error, use <a href="http://library.gnome.org/devel/gio/unstable/GDBusMethodInvocation.html#g-dbus-method-invocation-return-error"><code class="function">g_dbus_method_invocation_return_error()</code></a> or similar.</p>
521
<p>This method will free <em class="parameter"><code>invocation</code></em>
522
, you cannot use it afterwards.</p>
523
<div class="refsect3">
524
<a name="id-1.4.5.6.10.7.6"></a><h4>Parameters</h4>
525
<div class="informaltable"><table width="100%" border="0">
527
<col width="150px" class="parameters_name">
528
<col class="parameters_description">
529
<col width="200px" class="parameters_annotations">
533
<td class="parameter_name"><p>object</p></td>
534
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
535
<td class="parameter_annotations"> </td>
538
<td class="parameter_name"><p>invocation</p></td>
539
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GDBusMethodInvocation.html"><span class="type">GDBusMethodInvocation</span></a>. </p></td>
540
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
543
<td class="parameter_name"><p>access_token</p></td>
544
<td class="parameter_description"><p>Parameter to return.</p></td>
545
<td class="parameter_annotations"> </td>
548
<td class="parameter_name"><p>access_token_secret</p></td>
549
<td class="parameter_description"><p>Parameter to return.</p></td>
550
<td class="parameter_annotations"> </td>
553
<td class="parameter_name"><p>expires_in</p></td>
554
<td class="parameter_description"><p>Parameter to return.</p></td>
555
<td class="parameter_annotations"> </td>
562
<div class="refsect2">
563
<a name="goa-oauth-based-get-consumer-key"></a><h3>goa_oauth_based_get_consumer_key ()</h3>
564
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
565
goa_oauth_based_get_consumer_key (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
566
<p>Gets the value of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerKey" title='The "ConsumerKey" property'>"ConsumerKey"</a> D-Bus property.</p>
567
<p>Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.</p>
568
<div class="warning">The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where <em class="parameter"><code>object</code></em> was constructed. Use <a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-key" title="goa_oauth_based_dup_consumer_key ()"><code class="function">goa_oauth_based_dup_consumer_key()</code></a> if on another thread.</div>
569
<div class="refsect3">
570
<a name="id-1.4.5.6.10.8.7"></a><h4>Parameters</h4>
571
<div class="informaltable"><table width="100%" border="0">
573
<col width="150px" class="parameters_name">
574
<col class="parameters_description">
575
<col width="200px" class="parameters_annotations">
578
<td class="parameter_name"><p>object</p></td>
579
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
580
<td class="parameter_annotations"> </td>
584
<div class="refsect3">
585
<a name="id-1.4.5.6.10.8.8"></a><h4>Returns</h4>
586
<p> The property value or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. Do not free the returned value, it belongs to <em class="parameter"><code>object</code></em>
588
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
592
<div class="refsect2">
593
<a name="goa-oauth-based-dup-consumer-key"></a><h3>goa_oauth_based_dup_consumer_key ()</h3>
594
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
595
goa_oauth_based_dup_consumer_key (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
596
<p>Gets a copy of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerKey" title='The "ConsumerKey" property'>"ConsumerKey"</a> D-Bus property.</p>
597
<p>Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.</p>
598
<div class="refsect3">
599
<a name="id-1.4.5.6.10.9.6"></a><h4>Parameters</h4>
600
<div class="informaltable"><table width="100%" border="0">
602
<col width="150px" class="parameters_name">
603
<col class="parameters_description">
604
<col width="200px" class="parameters_annotations">
607
<td class="parameter_name"><p>object</p></td>
608
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
609
<td class="parameter_annotations"> </td>
613
<div class="refsect3">
614
<a name="id-1.4.5.6.10.9.7"></a><h4>Returns</h4>
615
<p> The property value or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. The returned value should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. </p>
616
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
620
<div class="refsect2">
621
<a name="goa-oauth-based-set-consumer-key"></a><h3>goa_oauth_based_set_consumer_key ()</h3>
622
<pre class="programlisting"><span class="returnvalue">void</span>
623
goa_oauth_based_set_consumer_key (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
624
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
625
<p>Sets the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerKey" title='The "ConsumerKey" property'>"ConsumerKey"</a> D-Bus property to <em class="parameter"><code>value</code></em>
627
<p>Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.</p>
628
<div class="refsect3">
629
<a name="id-1.4.5.6.10.10.6"></a><h4>Parameters</h4>
630
<div class="informaltable"><table width="100%" border="0">
632
<col width="150px" class="parameters_name">
633
<col class="parameters_description">
634
<col width="200px" class="parameters_annotations">
638
<td class="parameter_name"><p>object</p></td>
639
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
640
<td class="parameter_annotations"> </td>
643
<td class="parameter_name"><p>value</p></td>
644
<td class="parameter_description"><p>The value to set.</p></td>
645
<td class="parameter_annotations"> </td>
652
<div class="refsect2">
653
<a name="goa-oauth-based-get-consumer-secret"></a><h3>goa_oauth_based_get_consumer_secret ()</h3>
654
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
655
goa_oauth_based_get_consumer_secret (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
656
<p>Gets the value of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerSecret" title='The "ConsumerSecret" property'>"ConsumerSecret"</a> D-Bus property.</p>
657
<p>Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.</p>
658
<div class="warning">The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where <em class="parameter"><code>object</code></em> was constructed. Use <a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-secret" title="goa_oauth_based_dup_consumer_secret ()"><code class="function">goa_oauth_based_dup_consumer_secret()</code></a> if on another thread.</div>
659
<div class="refsect3">
660
<a name="id-1.4.5.6.10.11.7"></a><h4>Parameters</h4>
661
<div class="informaltable"><table width="100%" border="0">
663
<col width="150px" class="parameters_name">
664
<col class="parameters_description">
665
<col width="200px" class="parameters_annotations">
668
<td class="parameter_name"><p>object</p></td>
669
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
670
<td class="parameter_annotations"> </td>
674
<div class="refsect3">
675
<a name="id-1.4.5.6.10.11.8"></a><h4>Returns</h4>
676
<p> The property value or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. Do not free the returned value, it belongs to <em class="parameter"><code>object</code></em>
678
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
682
<div class="refsect2">
683
<a name="goa-oauth-based-dup-consumer-secret"></a><h3>goa_oauth_based_dup_consumer_secret ()</h3>
684
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
685
goa_oauth_based_dup_consumer_secret (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
686
<p>Gets a copy of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerSecret" title='The "ConsumerSecret" property'>"ConsumerSecret"</a> D-Bus property.</p>
687
<p>Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.</p>
688
<div class="refsect3">
689
<a name="id-1.4.5.6.10.12.6"></a><h4>Parameters</h4>
690
<div class="informaltable"><table width="100%" border="0">
692
<col width="150px" class="parameters_name">
693
<col class="parameters_description">
694
<col width="200px" class="parameters_annotations">
697
<td class="parameter_name"><p>object</p></td>
698
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
699
<td class="parameter_annotations"> </td>
703
<div class="refsect3">
704
<a name="id-1.4.5.6.10.12.7"></a><h4>Returns</h4>
705
<p> The property value or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the property is not set. The returned value should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. </p>
706
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
710
<div class="refsect2">
711
<a name="goa-oauth-based-set-consumer-secret"></a><h3>goa_oauth_based_set_consumer_secret ()</h3>
712
<pre class="programlisting"><span class="returnvalue">void</span>
713
goa_oauth_based_set_consumer_secret (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
714
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
715
<p>Sets the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerSecret" title='The "ConsumerSecret" property'>"ConsumerSecret"</a> D-Bus property to <em class="parameter"><code>value</code></em>
717
<p>Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.</p>
718
<div class="refsect3">
719
<a name="id-1.4.5.6.10.13.6"></a><h4>Parameters</h4>
720
<div class="informaltable"><table width="100%" border="0">
722
<col width="150px" class="parameters_name">
723
<col class="parameters_description">
724
<col width="200px" class="parameters_annotations">
728
<td class="parameter_name"><p>object</p></td>
729
<td class="parameter_description"><p>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</p></td>
730
<td class="parameter_annotations"> </td>
733
<td class="parameter_name"><p>value</p></td>
734
<td class="parameter_description"><p>The value to set.</p></td>
735
<td class="parameter_annotations"> </td>
742
<div class="refsect2">
743
<a name="goa-oauth-based-proxy-new"></a><h3>goa_oauth_based_proxy_new ()</h3>
744
<pre class="programlisting"><span class="returnvalue">void</span>
745
goa_oauth_based_proxy_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html"><span class="type">GDBusConnection</span></a> *connection</code></em>,
746
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
747
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
748
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
749
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
750
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
751
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
752
<p>Asynchronously creates a proxy for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>. See <a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#g-dbus-proxy-new"><code class="function">g_dbus_proxy_new()</code></a> for more details.</p>
753
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
754
will be invoked in the <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-context-push-thread-default">thread-default main loop</a> of the thread you are calling this method from.
755
You can then call <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-finish" title="goa_oauth_based_proxy_new_finish ()"><code class="function">goa_oauth_based_proxy_new_finish()</code></a> to get the result of the operation.</p>
756
<p>See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-sync" title="goa_oauth_based_proxy_new_sync ()"><code class="function">goa_oauth_based_proxy_new_sync()</code></a> for the synchronous, blocking version of this constructor.</p>
757
<div class="refsect3">
758
<a name="id-1.4.5.6.10.14.7"></a><h4>Parameters</h4>
759
<div class="informaltable"><table width="100%" border="0">
761
<col width="150px" class="parameters_name">
762
<col class="parameters_description">
763
<col width="200px" class="parameters_annotations">
767
<td class="parameter_name"><p>connection</p></td>
768
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.</p></td>
769
<td class="parameter_annotations"> </td>
772
<td class="parameter_name"><p>flags</p></td>
773
<td class="parameter_description"><p>Flags from the <a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</p></td>
774
<td class="parameter_annotations"> </td>
777
<td class="parameter_name"><p>name</p></td>
778
<td class="parameter_description"><p> A bus name (well-known or unique) or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>connection</code></em>
779
is not a message bus connection. </p></td>
780
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
783
<td class="parameter_name"><p>object_path</p></td>
784
<td class="parameter_description"><p>An object path.</p></td>
785
<td class="parameter_annotations"> </td>
788
<td class="parameter_name"><p>cancellable</p></td>
789
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
790
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
793
<td class="parameter_name"><p>callback</p></td>
794
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied.</p></td>
795
<td class="parameter_annotations"> </td>
798
<td class="parameter_name"><p>user_data</p></td>
799
<td class="parameter_description"><p>User data to pass to <em class="parameter"><code>callback</code></em>
801
<td class="parameter_annotations"> </td>
808
<div class="refsect2">
809
<a name="goa-oauth-based-proxy-new-finish"></a><h3>goa_oauth_based_proxy_new_finish ()</h3>
810
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
811
goa_oauth_based_proxy_new_finish (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
812
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
813
<p>Finishes an operation started with <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a>.</p>
814
<div class="refsect3">
815
<a name="id-1.4.5.6.10.15.5"></a><h4>Parameters</h4>
816
<div class="informaltable"><table width="100%" border="0">
818
<col width="150px" class="parameters_name">
819
<col class="parameters_description">
820
<col width="200px" class="parameters_annotations">
824
<td class="parameter_name"><p>res</p></td>
825
<td class="parameter_description"><p>The <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> obtained from the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> passed to <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a>.</p></td>
826
<td class="parameter_annotations"> </td>
829
<td class="parameter_name"><p>error</p></td>
830
<td class="parameter_description"><p>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
831
<td class="parameter_annotations"> </td>
836
<div class="refsect3">
837
<a name="id-1.4.5.6.10.15.6"></a><h4>Returns</h4>
838
<p> The constructed proxy object or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em>
840
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span></p>
844
<div class="refsect2">
845
<a name="goa-oauth-based-proxy-new-sync"></a><h3>goa_oauth_based_proxy_new_sync ()</h3>
846
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
847
goa_oauth_based_proxy_new_sync (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html"><span class="type">GDBusConnection</span></a> *connection</code></em>,
848
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
849
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
850
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
851
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
852
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
853
<p>Synchronously creates a proxy for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>. See <a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#g-dbus-proxy-new-sync"><code class="function">g_dbus_proxy_new_sync()</code></a> for more details.</p>
854
<p>The calling thread is blocked until a reply is received.</p>
855
<p>See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a> for the asynchronous version of this constructor.</p>
856
<div class="refsect3">
857
<a name="id-1.4.5.6.10.16.7"></a><h4>Parameters</h4>
858
<div class="informaltable"><table width="100%" border="0">
860
<col width="150px" class="parameters_name">
861
<col class="parameters_description">
862
<col width="200px" class="parameters_annotations">
866
<td class="parameter_name"><p>connection</p></td>
867
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.</p></td>
868
<td class="parameter_annotations"> </td>
871
<td class="parameter_name"><p>flags</p></td>
872
<td class="parameter_description"><p>Flags from the <a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</p></td>
873
<td class="parameter_annotations"> </td>
876
<td class="parameter_name"><p>name</p></td>
877
<td class="parameter_description"><p> A bus name (well-known or unique) or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>connection</code></em>
878
is not a message bus connection. </p></td>
879
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
882
<td class="parameter_name"><p>object_path</p></td>
883
<td class="parameter_description"><p>An object path.</p></td>
884
<td class="parameter_annotations"> </td>
887
<td class="parameter_name"><p>cancellable</p></td>
888
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
889
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
892
<td class="parameter_name"><p>error</p></td>
893
<td class="parameter_description"><p>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
894
<td class="parameter_annotations"> </td>
899
<div class="refsect3">
900
<a name="id-1.4.5.6.10.16.8"></a><h4>Returns</h4>
901
<p> The constructed proxy object or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em>
903
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span></p>
907
<div class="refsect2">
908
<a name="goa-oauth-based-proxy-new-for-bus"></a><h3>goa_oauth_based_proxy_new_for_bus ()</h3>
909
<pre class="programlisting"><span class="returnvalue">void</span>
910
goa_oauth_based_proxy_new_for_bus (<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> bus_type</code></em>,
911
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
912
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
913
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
914
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
915
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
916
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
917
<p>Like <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a> but takes a <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> instead of a <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.</p>
918
<p>When the operation is finished, <em class="parameter"><code>callback</code></em>
919
will be invoked in the <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#g-main-context-push-thread-default">thread-default main loop</a> of the thread you are calling this method from.
920
You can then call <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-finish" title="goa_oauth_based_proxy_new_for_bus_finish ()"><code class="function">goa_oauth_based_proxy_new_for_bus_finish()</code></a> to get the result of the operation.</p>
921
<p>See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-sync" title="goa_oauth_based_proxy_new_for_bus_sync ()"><code class="function">goa_oauth_based_proxy_new_for_bus_sync()</code></a> for the synchronous, blocking version of this constructor.</p>
922
<div class="refsect3">
923
<a name="id-1.4.5.6.10.17.7"></a><h4>Parameters</h4>
924
<div class="informaltable"><table width="100%" border="0">
926
<col width="150px" class="parameters_name">
927
<col class="parameters_description">
928
<col width="200px" class="parameters_annotations">
932
<td class="parameter_name"><p>bus_type</p></td>
933
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a>.</p></td>
934
<td class="parameter_annotations"> </td>
937
<td class="parameter_name"><p>flags</p></td>
938
<td class="parameter_description"><p>Flags from the <a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</p></td>
939
<td class="parameter_annotations"> </td>
942
<td class="parameter_name"><p>name</p></td>
943
<td class="parameter_description"><p>A bus name (well-known or unique).</p></td>
944
<td class="parameter_annotations"> </td>
947
<td class="parameter_name"><p>object_path</p></td>
948
<td class="parameter_description"><p>An object path.</p></td>
949
<td class="parameter_annotations"> </td>
952
<td class="parameter_name"><p>cancellable</p></td>
953
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
954
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
957
<td class="parameter_name"><p>callback</p></td>
958
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied.</p></td>
959
<td class="parameter_annotations"> </td>
962
<td class="parameter_name"><p>user_data</p></td>
963
<td class="parameter_description"><p>User data to pass to <em class="parameter"><code>callback</code></em>
965
<td class="parameter_annotations"> </td>
972
<div class="refsect2">
973
<a name="goa-oauth-based-proxy-new-for-bus-finish"></a><h3>goa_oauth_based_proxy_new_for_bus_finish ()</h3>
974
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
975
goa_oauth_based_proxy_new_for_bus_finish
976
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
977
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
978
<p>Finishes an operation started with <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()"><code class="function">goa_oauth_based_proxy_new_for_bus()</code></a>.</p>
979
<div class="refsect3">
980
<a name="id-1.4.5.6.10.18.5"></a><h4>Parameters</h4>
981
<div class="informaltable"><table width="100%" border="0">
983
<col width="150px" class="parameters_name">
984
<col class="parameters_description">
985
<col width="200px" class="parameters_annotations">
989
<td class="parameter_name"><p>res</p></td>
990
<td class="parameter_description"><p>The <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> obtained from the <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> passed to <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()"><code class="function">goa_oauth_based_proxy_new_for_bus()</code></a>.</p></td>
991
<td class="parameter_annotations"> </td>
994
<td class="parameter_name"><p>error</p></td>
995
<td class="parameter_description"><p>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
996
<td class="parameter_annotations"> </td>
1001
<div class="refsect3">
1002
<a name="id-1.4.5.6.10.18.6"></a><h4>Returns</h4>
1003
<p> The constructed proxy object or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em>
1005
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span></p>
1009
<div class="refsect2">
1010
<a name="goa-oauth-based-proxy-new-for-bus-sync"></a><h3>goa_oauth_based_proxy_new_for_bus_sync ()</h3>
1011
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
1012
goa_oauth_based_proxy_new_for_bus_sync
1013
(<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> bus_type</code></em>,
1014
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> flags</code></em>,
1015
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
1016
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *object_path</code></em>,
1017
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
1018
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1019
<p>Like <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-sync" title="goa_oauth_based_proxy_new_sync ()"><code class="function">goa_oauth_based_proxy_new_sync()</code></a> but takes a <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a> instead of a <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html"><span class="type">GDBusConnection</span></a>.</p>
1020
<p>The calling thread is blocked until a reply is received.</p>
1021
<p>See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()"><code class="function">goa_oauth_based_proxy_new_for_bus()</code></a> for the asynchronous version of this constructor.</p>
1022
<div class="refsect3">
1023
<a name="id-1.4.5.6.10.19.7"></a><h4>Parameters</h4>
1024
<div class="informaltable"><table width="100%" border="0">
1026
<col width="150px" class="parameters_name">
1027
<col class="parameters_description">
1028
<col width="200px" class="parameters_annotations">
1032
<td class="parameter_name"><p>bus_type</p></td>
1033
<td class="parameter_description"><p>A <a href="http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#GBusType"><span class="type">GBusType</span></a>.</p></td>
1034
<td class="parameter_annotations"> </td>
1037
<td class="parameter_name"><p>flags</p></td>
1038
<td class="parameter_description"><p>Flags from the <a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyFlags"><span class="type">GDBusProxyFlags</span></a> enumeration.</p></td>
1039
<td class="parameter_annotations"> </td>
1042
<td class="parameter_name"><p>name</p></td>
1043
<td class="parameter_description"><p>A bus name (well-known or unique).</p></td>
1044
<td class="parameter_annotations"> </td>
1047
<td class="parameter_name"><p>object_path</p></td>
1048
<td class="parameter_description"><p>An object path.</p></td>
1049
<td class="parameter_annotations"> </td>
1052
<td class="parameter_name"><p>cancellable</p></td>
1053
<td class="parameter_description"><p> A <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
1054
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1057
<td class="parameter_name"><p>error</p></td>
1058
<td class="parameter_description"><p>Return location for error or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
1059
<td class="parameter_annotations"> </td>
1064
<div class="refsect3">
1065
<a name="id-1.4.5.6.10.19.8"></a><h4>Returns</h4>
1066
<p> The constructed proxy object or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em>
1068
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span></p>
1072
<div class="refsect2">
1073
<a name="goa-oauth-based-skeleton-new"></a><h3>goa_oauth_based_skeleton_new ()</h3>
1074
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> *
1075
goa_oauth_based_skeleton_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1076
<p>Creates a skeleton object for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>.</p>
1077
<div class="refsect3">
1078
<a name="id-1.4.5.6.10.20.5"></a><h4>Returns</h4>
1079
<p> The skeleton object. </p>
1080
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedSkeleton]</span></p>
1084
<div class="refsect1">
1085
<a name="GoaOAuthBased.other_details"></a><h2>Types and Values</h2>
159
1086
<div class="refsect2">
160
1087
<a name="GoaOAuthBased-struct"></a><h3>GoaOAuthBased</h3>
161
1088
<pre class="programlisting">typedef struct _GoaOAuthBased GoaOAuthBased;</pre>
163
Abstract interface type for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>.
1089
<p>Abstract interface type for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>.</p>
167
1092
<div class="refsect2">
179
1104
const gchar * (*get_consumer_secret) (GoaOAuthBased *object);
183
Virtual table for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>.
185
<div class="variablelist"><table border="0" class="variablelist">
187
<col align="left" valign="top">
192
<td><p><span class="term"><span class="type">GTypeInterface</span> <em class="structfield"><code><a name="GoaOAuthBasedIface.parent-iface"></a>parent_iface</code></em>;</span></p></td>
193
<td>The parent interface.</td>
196
<td><p><span class="term"><em class="structfield"><code><a name="GoaOAuthBasedIface.handle-get-access-token"></a>handle_get_access_token</code></em> ()</span></p></td>
197
<td>Handler for the <a class="link" href="GoaOAuthBased.html#GoaOAuthBased-handle-get-access-token" title='The "handle-get-access-token" signal'><span class="type">"handle-get-access-token"</span></a> signal.</td>
200
<td><p><span class="term"><em class="structfield"><code><a name="GoaOAuthBasedIface.get-consumer-key"></a>get_consumer_key</code></em> ()</span></p></td>
201
<td>Getter for the <a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-key" title='The "consumer-key" property'><span class="type">"consumer-key"</span></a> property.</td>
204
<td><p><span class="term"><em class="structfield"><code><a name="GoaOAuthBasedIface.get-consumer-secret"></a>get_consumer_secret</code></em> ()</span></p></td>
205
<td>Getter for the <a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-secret" title='The "consumer-secret" property'><span class="type">"consumer-secret"</span></a> property.</td>
211
<div class="refsect2">
212
<a name="goa-oauth-based-interface-info"></a><h3>goa_oauth_based_interface_info ()</h3>
213
<pre class="programlisting"><span class="returnvalue">GDBusInterfaceInfo</span> * goa_oauth_based_interface_info (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
215
Gets a machine-readable description of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a> D-Bus interface.
217
<div class="variablelist"><table border="0" class="variablelist">
219
<col align="left" valign="top">
223
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
224
<td>A <span class="type">GDBusInterfaceInfo</span>. Do not free. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
230
<div class="refsect2">
231
<a name="goa-oauth-based-override-properties"></a><h3>goa_oauth_based_override_properties ()</h3>
232
<pre class="programlisting"><span class="returnvalue">guint</span> goa_oauth_based_override_properties (<em class="parameter"><code><span class="type">GObjectClass</span> *klass</code></em>,
233
<em class="parameter"><code><span class="type">guint</span> property_id_begin</code></em>);</pre>
235
Overrides all <span class="type">GObject</span> properties in the <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> interface for a concrete class.
236
The properties are overridden in the order they are defined.
238
<div class="variablelist"><table border="0" class="variablelist">
240
<col align="left" valign="top">
245
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
246
<td>The class structure for a <span class="type">GObject</span>-derived class.</td>
249
<td><p><span class="term"><em class="parameter"><code>property_id_begin</code></em> :</span></p></td>
250
<td>The property id to assign to the first overridden property.</td>
253
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
254
<td>The last property id.</td>
260
<div class="refsect2">
261
<a name="goa-oauth-based-call-get-access-token"></a><h3>goa_oauth_based_call_get_access_token ()</h3>
262
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth_based_call_get_access_token
263
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
264
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
265
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
266
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
268
Asynchronously invokes the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-method-org-gnome-OnlineAccounts-OAuthBased.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method on <em class="parameter"><code>proxy</code></em>.
269
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked in the thread-default main loop of the thread you are calling this method from.
270
You can then call <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-finish" title="goa_oauth_based_call_get_access_token_finish ()"><code class="function">goa_oauth_based_call_get_access_token_finish()</code></a> to get the result of the operation.
273
See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token-sync" title="goa_oauth_based_call_get_access_token_sync ()"><code class="function">goa_oauth_based_call_get_access_token_sync()</code></a> for the synchronous, blocking version of this method.
275
<div class="variablelist"><table border="0" class="variablelist">
277
<col align="left" valign="top">
282
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
283
<td>A <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</td>
286
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
287
<td>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
291
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
292
<td>A <span class="type">GAsyncReadyCallback</span> to call when the request is satisfied or <code class="literal">NULL</code>.</td>
295
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
296
<td>User data to pass to <em class="parameter"><code>callback</code></em>.</td>
302
<div class="refsect2">
303
<a name="goa-oauth-based-call-get-access-token-finish"></a><h3>goa_oauth_based_call_get_access_token_finish ()</h3>
304
<pre class="programlisting"><span class="returnvalue">gboolean</span> goa_oauth_based_call_get_access_token_finish
305
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
306
<em class="parameter"><code><span class="type">gchar</span> **out_access_token</code></em>,
307
<em class="parameter"><code><span class="type">gchar</span> **out_access_token_secret</code></em>,
308
<em class="parameter"><code><span class="type">gint</span> *out_expires_in</code></em>,
309
<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
310
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
312
Finishes an operation started with <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()"><code class="function">goa_oauth_based_call_get_access_token()</code></a>.
314
<div class="variablelist"><table border="0" class="variablelist">
316
<col align="left" valign="top">
321
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
322
<td>A <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</td>
325
<td><p><span class="term"><em class="parameter"><code>out_access_token</code></em> :</span></p></td>
326
<td>Return location for return parameter or <code class="literal">NULL</code> to ignore. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
330
<td><p><span class="term"><em class="parameter"><code>out_access_token_secret</code></em> :</span></p></td>
331
<td>Return location for return parameter or <code class="literal">NULL</code> to ignore. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
335
<td><p><span class="term"><em class="parameter"><code>out_expires_in</code></em> :</span></p></td>
336
<td>Return location for return parameter or <code class="literal">NULL</code> to ignore. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
340
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
341
<td>The <span class="type">GAsyncResult</span> obtained from the <span class="type">GAsyncReadyCallback</span> passed to <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()"><code class="function">goa_oauth_based_call_get_access_token()</code></a>.</td>
344
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
345
<td>Return location for error or <code class="literal">NULL</code>.</td>
348
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
350
<code class="literal">TRUE</code> if the call succeded, <code class="literal">FALSE</code> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span>
357
<div class="refsect2">
358
<a name="goa-oauth-based-call-get-access-token-sync"></a><h3>goa_oauth_based_call_get_access_token_sync ()</h3>
359
<pre class="programlisting"><span class="returnvalue">gboolean</span> goa_oauth_based_call_get_access_token_sync
360
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *proxy</code></em>,
361
<em class="parameter"><code><span class="type">gchar</span> **out_access_token</code></em>,
362
<em class="parameter"><code><span class="type">gchar</span> **out_access_token_secret</code></em>,
363
<em class="parameter"><code><span class="type">gint</span> *out_expires_in</code></em>,
364
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
365
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
367
Synchronously invokes the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-method-org-gnome-OnlineAccounts-OAuthBased.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method on <em class="parameter"><code>proxy</code></em>. The calling thread is blocked until a reply is received.
370
See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-call-get-access-token" title="goa_oauth_based_call_get_access_token ()"><code class="function">goa_oauth_based_call_get_access_token()</code></a> for the asynchronous version of this method.
372
<div class="variablelist"><table border="0" class="variablelist">
374
<col align="left" valign="top">
379
<td><p><span class="term"><em class="parameter"><code>proxy</code></em> :</span></p></td>
380
<td>A <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</td>
383
<td><p><span class="term"><em class="parameter"><code>out_access_token</code></em> :</span></p></td>
384
<td>Return location for return parameter or <code class="literal">NULL</code> to ignore. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
388
<td><p><span class="term"><em class="parameter"><code>out_access_token_secret</code></em> :</span></p></td>
389
<td>Return location for return parameter or <code class="literal">NULL</code> to ignore. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
393
<td><p><span class="term"><em class="parameter"><code>out_expires_in</code></em> :</span></p></td>
394
<td>Return location for return parameter or <code class="literal">NULL</code> to ignore. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
398
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
399
<td>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
403
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
404
<td>Return location for error or <code class="literal">NULL</code>.</td>
407
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
409
<code class="literal">TRUE</code> if the call succeded, <code class="literal">FALSE</code> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span>
416
<div class="refsect2">
417
<a name="goa-oauth-based-complete-get-access-token"></a><h3>goa_oauth_based_complete_get_access_token ()</h3>
418
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth_based_complete_get_access_token
419
(<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
420
<em class="parameter"><code><span class="type">GDBusMethodInvocation</span> *invocation</code></em>,
421
<em class="parameter"><code>const <span class="type">gchar</span> *access_token</code></em>,
422
<em class="parameter"><code>const <span class="type">gchar</span> *access_token_secret</code></em>,
423
<em class="parameter"><code><span class="type">gint</span> expires_in</code></em>);</pre>
425
Helper function used in service implementations to finish handling invocations of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-method-org-gnome-OnlineAccounts-OAuthBased.GetAccessToken" title="The GetAccessToken() method"><code class="function">GetAccessToken()</code></a> D-Bus method. If you instead want to finish handling an invocation by returning an error, use <code class="function">g_dbus_method_invocation_return_error()</code> or similar.
428
This method will free <em class="parameter"><code>invocation</code></em>, you cannot use it afterwards.
430
<div class="variablelist"><table border="0" class="variablelist">
432
<col align="left" valign="top">
437
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
438
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
441
<td><p><span class="term"><em class="parameter"><code>invocation</code></em> :</span></p></td>
442
<td>A <span class="type">GDBusMethodInvocation</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
446
<td><p><span class="term"><em class="parameter"><code>access_token</code></em> :</span></p></td>
447
<td>Parameter to return.</td>
450
<td><p><span class="term"><em class="parameter"><code>access_token_secret</code></em> :</span></p></td>
451
<td>Parameter to return.</td>
454
<td><p><span class="term"><em class="parameter"><code>expires_in</code></em> :</span></p></td>
455
<td>Parameter to return.</td>
461
<div class="refsect2">
462
<a name="goa-oauth-based-get-consumer-key"></a><h3>goa_oauth_based_get_consumer_key ()</h3>
463
<pre class="programlisting">const <span class="returnvalue">gchar</span> * goa_oauth_based_get_consumer_key (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
465
Gets the value of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerKey" title='The "ConsumerKey" property'>"ConsumerKey"</a> D-Bus property.
468
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
472
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
473
<h3 class="title">Warning</h3>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where <em class="parameter"><code>object</code></em> was constructed. Use <a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-key" title="goa_oauth_based_dup_consumer_key ()"><code class="function">goa_oauth_based_dup_consumer_key()</code></a> if on another thread.</div>
476
<div class="variablelist"><table border="0" class="variablelist">
478
<col align="left" valign="top">
483
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
484
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
487
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
488
<td>The property value or <code class="literal">NULL</code> if the property is not set. Do not free the returned value, it belongs to <em class="parameter"><code>object</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
495
<div class="refsect2">
496
<a name="goa-oauth-based-dup-consumer-key"></a><h3>goa_oauth_based_dup_consumer_key ()</h3>
497
<pre class="programlisting"><span class="returnvalue">gchar</span> * goa_oauth_based_dup_consumer_key (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
499
Gets a copy of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerKey" title='The "ConsumerKey" property'>"ConsumerKey"</a> D-Bus property.
502
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
504
<div class="variablelist"><table border="0" class="variablelist">
506
<col align="left" valign="top">
511
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
512
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
515
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
516
<td>The property value or <code class="literal">NULL</code> if the property is not set. The returned value should be freed with <code class="function">g_free()</code>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
523
<div class="refsect2">
524
<a name="goa-oauth-based-set-consumer-key"></a><h3>goa_oauth_based_set_consumer_key ()</h3>
525
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth_based_set_consumer_key (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
526
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);</pre>
528
Sets the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerKey" title='The "ConsumerKey" property'>"ConsumerKey"</a> D-Bus property to <em class="parameter"><code>value</code></em>.
531
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
533
<div class="variablelist"><table border="0" class="variablelist">
535
<col align="left" valign="top">
540
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
541
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
544
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
545
<td>The value to set.</td>
551
<div class="refsect2">
552
<a name="goa-oauth-based-get-consumer-secret"></a><h3>goa_oauth_based_get_consumer_secret ()</h3>
553
<pre class="programlisting">const <span class="returnvalue">gchar</span> * goa_oauth_based_get_consumer_secret (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
555
Gets the value of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerSecret" title='The "ConsumerSecret" property'>"ConsumerSecret"</a> D-Bus property.
558
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
562
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
563
<h3 class="title">Warning</h3>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where <em class="parameter"><code>object</code></em> was constructed. Use <a class="link" href="GoaOAuthBased.html#goa-oauth-based-dup-consumer-secret" title="goa_oauth_based_dup_consumer_secret ()"><code class="function">goa_oauth_based_dup_consumer_secret()</code></a> if on another thread.</div>
566
<div class="variablelist"><table border="0" class="variablelist">
568
<col align="left" valign="top">
573
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
574
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
577
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
578
<td>The property value or <code class="literal">NULL</code> if the property is not set. Do not free the returned value, it belongs to <em class="parameter"><code>object</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
585
<div class="refsect2">
586
<a name="goa-oauth-based-dup-consumer-secret"></a><h3>goa_oauth_based_dup_consumer_secret ()</h3>
587
<pre class="programlisting"><span class="returnvalue">gchar</span> * goa_oauth_based_dup_consumer_secret (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>);</pre>
589
Gets a copy of the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerSecret" title='The "ConsumerSecret" property'>"ConsumerSecret"</a> D-Bus property.
592
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
594
<div class="variablelist"><table border="0" class="variablelist">
596
<col align="left" valign="top">
601
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
602
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
605
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
606
<td>The property value or <code class="literal">NULL</code> if the property is not set. The returned value should be freed with <code class="function">g_free()</code>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
613
<div class="refsect2">
614
<a name="goa-oauth-based-set-consumer-secret"></a><h3>goa_oauth_based_set_consumer_secret ()</h3>
615
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth_based_set_consumer_secret (<em class="parameter"><code><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a> *object</code></em>,
616
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);</pre>
618
Sets the <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-property-org-gnome-OnlineAccounts-OAuthBased.ConsumerSecret" title='The "ConsumerSecret" property'>"ConsumerSecret"</a> D-Bus property to <em class="parameter"><code>value</code></em>.
621
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
623
<div class="variablelist"><table border="0" class="variablelist">
625
<col align="left" valign="top">
630
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
631
<td>A <a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="type">GoaOAuthBased</span></a>.</td>
634
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
635
<td>The value to set.</td>
1107
<p>Virtual table for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>.</p>
1108
<div class="refsect3">
1109
<a name="id-1.4.5.6.11.3.5"></a><h4>Members</h4>
1110
<div class="informaltable"><table width="100%" border="0">
1112
<col width="300px" class="struct_members_name">
1113
<col class="struct_members_description">
1114
<col width="200px" class="struct_members_annotations">
1118
<td class="struct_member_name"><p><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GTypeInterface"><span class="type">GTypeInterface</span></a> <em class="structfield"><code><a name="GoaOAuthBasedIface.parent-iface"></a>parent_iface</code></em>;</p></td>
1119
<td class="struct_member_description"><p>The parent interface.</p></td>
1120
<td class="struct_member_annotations"> </td>
1123
<td class="struct_member_name"><p><em class="structfield"><code><a name="GoaOAuthBasedIface.handle-get-access-token"></a>handle_get_access_token</code></em> ()</p></td>
1124
<td class="struct_member_description"><p>Handler for the <a class="link" href="GoaOAuthBased.html#GoaOAuthBased-handle-get-access-token" title="The “handle-get-access-token” signal"><span class="type">“handle-get-access-token”</span></a> signal.</p></td>
1125
<td class="struct_member_annotations"> </td>
1128
<td class="struct_member_name"><p><em class="structfield"><code><a name="GoaOAuthBasedIface.get-consumer-key"></a>get_consumer_key</code></em> ()</p></td>
1129
<td class="struct_member_description"><p>Getter for the <a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-key" title="The “consumer-key” property"><span class="type">“consumer-key”</span></a> property.</p></td>
1130
<td class="struct_member_annotations"> </td>
1133
<td class="struct_member_name"><p><em class="structfield"><code><a name="GoaOAuthBasedIface.get-consumer-secret"></a>get_consumer_secret</code></em> ()</p></td>
1134
<td class="struct_member_description"><p>Getter for the <a class="link" href="GoaOAuthBased.html#GoaOAuthBased--consumer-secret" title="The “consumer-secret” property"><span class="type">“consumer-secret”</span></a> property.</p></td>
1135
<td class="struct_member_annotations"> </td>
641
1142
<div class="refsect2">
654
1153
GDBusProxyClass parent_class;
658
Class structure for <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.
660
<div class="variablelist"><table border="0" class="variablelist">
1156
<p>Class structure for <a class="link" href="GoaOAuthBased.html#GoaOAuthBasedProxy" title="struct GoaOAuthBasedProxy"><span class="type">GoaOAuthBasedProxy</span></a>.</p>
1157
<div class="refsect3">
1158
<a name="id-1.4.5.6.11.5.5"></a><h4>Members</h4>
1159
<div class="informaltable"><table width="100%" border="0">
662
<col align="left" valign="top">
1161
<col width="300px" class="struct_members_name">
1162
<col class="struct_members_description">
1163
<col width="200px" class="struct_members_annotations">
666
<td><p><span class="term"><span class="type">GDBusProxyClass</span> <em class="structfield"><code><a name="GoaOAuthBasedProxyClass.parent-class"></a>parent_class</code></em>;</span></p></td>
667
<td>The parent class.</td>
1166
<td class="struct_member_name"><p><a href="http://library.gnome.org/devel/gio/unstable/GDBusProxy.html#GDBusProxyClass"><span class="type">GDBusProxyClass</span></a> <em class="structfield"><code><a name="GoaOAuthBasedProxyClass.parent-class"></a>parent_class</code></em>;</p></td>
1167
<td class="struct_member_description"><p>The parent class.</p></td>
1168
<td class="struct_member_annotations"> </td>
672
<div class="refsect2">
673
<a name="goa-oauth-based-proxy-new"></a><h3>goa_oauth_based_proxy_new ()</h3>
674
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth_based_proxy_new (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
675
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
676
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
677
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
678
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
679
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
680
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
682
Asynchronously creates a proxy for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>. See <code class="function">g_dbus_proxy_new()</code> for more details.
685
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked in the thread-default main loop of the thread you are calling this method from.
686
You can then call <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-finish" title="goa_oauth_based_proxy_new_finish ()"><code class="function">goa_oauth_based_proxy_new_finish()</code></a> to get the result of the operation.
689
See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-sync" title="goa_oauth_based_proxy_new_sync ()"><code class="function">goa_oauth_based_proxy_new_sync()</code></a> for the synchronous, blocking version of this constructor.
691
<div class="variablelist"><table border="0" class="variablelist">
693
<col align="left" valign="top">
698
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
699
<td>A <span class="type">GDBusConnection</span>.</td>
702
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
703
<td>Flags from the <span class="type">GDBusProxyFlags</span> enumeration.</td>
706
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
707
<td>A bus name (well-known or unique) or <code class="literal">NULL</code> if <em class="parameter"><code>connection</code></em> is not a message bus connection. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
711
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
712
<td>An object path.</td>
715
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
716
<td>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
720
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
721
<td>A <span class="type">GAsyncReadyCallback</span> to call when the request is satisfied.</td>
724
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
725
<td>User data to pass to <em class="parameter"><code>callback</code></em>.</td>
731
<div class="refsect2">
732
<a name="goa-oauth-based-proxy-new-finish"></a><h3>goa_oauth_based_proxy_new_finish ()</h3>
733
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * goa_oauth_based_proxy_new_finish (<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
734
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
736
Finishes an operation started with <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a>.
738
<div class="variablelist"><table border="0" class="variablelist">
740
<col align="left" valign="top">
745
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
746
<td>The <span class="type">GAsyncResult</span> obtained from the <span class="type">GAsyncReadyCallback</span> passed to <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a>.</td>
749
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
750
<td>Return location for error or <code class="literal">NULL</code>
754
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
755
<td>The constructed proxy object or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span>
762
<div class="refsect2">
763
<a name="goa-oauth-based-proxy-new-sync"></a><h3>goa_oauth_based_proxy_new_sync ()</h3>
764
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * goa_oauth_based_proxy_new_sync (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
765
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
766
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
767
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
768
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
769
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
771
Synchronously creates a proxy for the D-Bus interface <a class="link" href="gdbus-org.gnome.OnlineAccounts.OAuthBased.html#gdbus-interface-org-gnome-OnlineAccounts-OAuthBased.top_of_page">org.gnome.OnlineAccounts.OAuthBased</a>. See <code class="function">g_dbus_proxy_new_sync()</code> for more details.
774
The calling thread is blocked until a reply is received.
777
See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a> for the asynchronous version of this constructor.
779
<div class="variablelist"><table border="0" class="variablelist">
781
<col align="left" valign="top">
786
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
787
<td>A <span class="type">GDBusConnection</span>.</td>
790
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
791
<td>Flags from the <span class="type">GDBusProxyFlags</span> enumeration.</td>
794
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
795
<td>A bus name (well-known or unique) or <code class="literal">NULL</code> if <em class="parameter"><code>connection</code></em> is not a message bus connection. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
799
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
800
<td>An object path.</td>
803
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
804
<td>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
808
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
809
<td>Return location for error or <code class="literal">NULL</code>
813
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
814
<td>The constructed proxy object or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span>
821
<div class="refsect2">
822
<a name="goa-oauth-based-proxy-new-for-bus"></a><h3>goa_oauth_based_proxy_new_for_bus ()</h3>
823
<pre class="programlisting"><span class="returnvalue">void</span> goa_oauth_based_proxy_new_for_bus (<em class="parameter"><code><span class="type">GBusType</span> bus_type</code></em>,
824
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
825
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
826
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
827
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
828
<em class="parameter"><code><span class="type">GAsyncReadyCallback</span> callback</code></em>,
829
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
831
Like <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new" title="goa_oauth_based_proxy_new ()"><code class="function">goa_oauth_based_proxy_new()</code></a> but takes a <span class="type">GBusType</span> instead of a <span class="type">GDBusConnection</span>.
834
When the operation is finished, <em class="parameter"><code>callback</code></em> will be invoked in the thread-default main loop of the thread you are calling this method from.
835
You can then call <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-finish" title="goa_oauth_based_proxy_new_for_bus_finish ()"><code class="function">goa_oauth_based_proxy_new_for_bus_finish()</code></a> to get the result of the operation.
838
See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus-sync" title="goa_oauth_based_proxy_new_for_bus_sync ()"><code class="function">goa_oauth_based_proxy_new_for_bus_sync()</code></a> for the synchronous, blocking version of this constructor.
840
<div class="variablelist"><table border="0" class="variablelist">
842
<col align="left" valign="top">
847
<td><p><span class="term"><em class="parameter"><code>bus_type</code></em> :</span></p></td>
848
<td>A <span class="type">GBusType</span>.</td>
851
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
852
<td>Flags from the <span class="type">GDBusProxyFlags</span> enumeration.</td>
855
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
856
<td>A bus name (well-known or unique).</td>
859
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
860
<td>An object path.</td>
863
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
864
<td>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
868
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
869
<td>A <span class="type">GAsyncReadyCallback</span> to call when the request is satisfied.</td>
872
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
873
<td>User data to pass to <em class="parameter"><code>callback</code></em>.</td>
879
<div class="refsect2">
880
<a name="goa-oauth-based-proxy-new-for-bus-finish"></a><h3>goa_oauth_based_proxy_new_for_bus_finish ()</h3>
881
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * goa_oauth_based_proxy_new_for_bus_finish
882
(<em class="parameter"><code><span class="type">GAsyncResult</span> *res</code></em>,
883
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
885
Finishes an operation started with <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()"><code class="function">goa_oauth_based_proxy_new_for_bus()</code></a>.
887
<div class="variablelist"><table border="0" class="variablelist">
889
<col align="left" valign="top">
894
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
895
<td>The <span class="type">GAsyncResult</span> obtained from the <span class="type">GAsyncReadyCallback</span> passed to <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()"><code class="function">goa_oauth_based_proxy_new_for_bus()</code></a>.</td>
898
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
899
<td>Return location for error or <code class="literal">NULL</code>
903
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
904
<td>The constructed proxy object or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span>
911
<div class="refsect2">
912
<a name="goa-oauth-based-proxy-new-for-bus-sync"></a><h3>goa_oauth_based_proxy_new_for_bus_sync ()</h3>
913
<pre class="programlisting"><a class="link" href="GoaOAuthBased.html" title="GoaOAuthBased"><span class="returnvalue">GoaOAuthBased</span></a> * goa_oauth_based_proxy_new_for_bus_sync
914
(<em class="parameter"><code><span class="type">GBusType</span> bus_type</code></em>,
915
<em class="parameter"><code><span class="type">GDBusProxyFlags</span> flags</code></em>,
916
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
917
<em class="parameter"><code>const <span class="type">gchar</span> *object_path</code></em>,
918
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>,
919
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
921
Like <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-sync" title="goa_oauth_based_proxy_new_sync ()"><code class="function">goa_oauth_based_proxy_new_sync()</code></a> but takes a <span class="type">GBusType</span> instead of a <span class="type">GDBusConnection</span>.
924
The calling thread is blocked until a reply is received.
927
See <a class="link" href="GoaOAuthBased.html#goa-oauth-based-proxy-new-for-bus" title="goa_oauth_based_proxy_new_for_bus ()"><code class="function">goa_oauth_based_proxy_new_for_bus()</code></a> for the asynchronous version of this constructor.
929
<div class="variablelist"><table border="0" class="variablelist">
931
<col align="left" valign="top">
936
<td><p><span class="term"><em class="parameter"><code>bus_type</code></em> :</span></p></td>
937
<td>A <span class="type">GBusType</span>.</td>
940
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
941
<td>Flags from the <span class="type">GDBusProxyFlags</span> enumeration.</td>
944
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
945
<td>A bus name (well-known or unique).</td>
948
<td><p><span class="term"><em class="parameter"><code>object_path</code></em> :</span></p></td>
949
<td>An object path.</td>
952
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
953
<td>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
957
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
958
<td>Return location for error or <code class="literal">NULL</code>
962
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
963
<td>The constructed proxy object or <code class="literal">NULL</code> if <em class="parameter"><code>error</code></em> is set. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> GoaOAuthBasedProxy]</span>
970
1174
<div class="refsect2">