OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GDataOAuth2Authorizer.h
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
10 #ifndef GDATAOAUTH2AUTHORIZER_H_
11 #define GDATAOAUTH2AUTHORIZER_H_
12 
13 #include <gdata/gdata.h>
14 
15 G_BEGIN_DECLS
16 
17 typedef enum {
20 
21 GQuark gdata_oauth2_authorizer_error_quark (void) G_GNUC_CONST;
22 
23 #define GDATA_OAUTH2_AUTHORIZER_ERROR gdata_oauth2_authorizer_error_quark()
24 #define GDATA_TYPE_OAUTH2_AUTHORIZER (gdata_oauth2_authorizer_get_type())
25 #define GDATA_OAUTH2_AUTHORIZER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_OAUTH2_AUTHORIZER, GDataOAuth2Authorizer))
26 #define GDATA_OAUTH2_AUTHORIZER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDATA_TYPE_OAUTH2_AUTHORIZER, GDataOAuth2AuthorizerClass))
27 #define GDATA_IS_OAUTH2_AUTHORIZER(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GDATA_TYPE_OAUTH2_AUTHORIZER)
28 #define GDATA_IS_OAUTH2_AUTHORIZER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GDATA_TYPE_OAUTH2_AUTHORIZER)
29 #define GDATA_CLIENT_OAUTH2_AUTHORIZER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GDATA_TYPE_OAUTH2_AUTHORIZER, GDataOAuth2AuthorizerClass))
30 
32 
33 typedef struct {
34  GObject parent;
37 
38 typedef struct {
39  GObjectClass parent;
41 
42 GType gdata_oauth2_authorizer_get_type (void) G_GNUC_CONST;
43 
45 
47  const char* client_id,
48  const char* client_secret,
49  const char* refresh_token,
50  GCancellable* cancellable,
51  GError **error);
52 
53 G_END_DECLS
54 
55 #endif // GDATAOAUTH2AUTHORIZER_H_
GObjectClass parent
Definition: GDataOAuth2Authorizer.h:39
Definition: GDataOAuth2Authorizer.c:95
Definition: GDataOAuth2Authorizer.h:18
GObject parent
Definition: GDataOAuth2Authorizer.h:34
gboolean gdata_oauth2_authorizer_authenticate(GDataOAuth2Authorizer *self, const char *client_id, const char *client_secret, const char *refresh_token, GCancellable *cancellable, GError **error)
Definition: GDataOAuth2Authorizer.c:292
GDataOAuth2AuthorizerPrivate * priv
Definition: GDataOAuth2Authorizer.h:35
Definition: GDataOAuth2Authorizer.h:33
Definition: GDataOAuth2Authorizer.h:38
GType gdata_oauth2_authorizer_get_type(void) G_GNUC_CONST
GDataOAuth2Authorizer * gdata_oauth2_authorizer_new(GType service_type)
Definition: GDataOAuth2Authorizer.c:218
GQuark gdata_oauth2_authorizer_error_quark(void) G_GNUC_CONST
GDataOAuth2AuthorizerError
Definition: GDataOAuth2Authorizer.h:17