4 * This library is free software you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, see <http://www.gnu.org/licenses/>.
18 #if !defined (__LIBEBACKEND_H_INSIDE__) && !defined (LIBEBACKEND_COMPILATION)
19 #error "Only <libebackend/libebackend.h> should be included directly."
22 #ifndef E_SOUP_AUTH_BEARER_H
23 #define E_SOUP_AUTH_BEARER_H
25 #include <libsoup/soup.h>
27 /* Standard GObject macros */
28 #define E_TYPE_SOUP_AUTH_BEARER \
29 (e_soup_auth_bearer_get_type ())
30 #define E_SOUP_AUTH_BEARER(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST \
32 ((obj), E_TYPE_SOUP_AUTH_BEARER, ESoupAuthBearer))
33 #define E_SOUP_AUTH_BEARER_CLASS(cls) \
34 (G_TYPE_CHECK_CLASS_CAST \
35 ((cls), E_TYPE_SOUP_AUTH_BEARER, ESoupAuthBearerClass))
36 #define E_IS_SOUP_AUTH_BEARER(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE \
38 ((obj), E_TYPE_SOUP_AUTH_BEARER))
39 #define E_IS_SOUP_AUTH_BEARER_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_TYPE \
41 ((cls), E_TYPE_SOUP_AUTH_BEARER))
42 #define E_SOUP_AUTH_BEARER_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS \
44 ((obj), E_TYPE_SOUP_AUTH_BEARER, ESoupAuthBearerClass))
48 typedef struct _ESoupAuthBearer ESoupAuthBearer;
49 typedef struct _ESoupAuthBearerClass ESoupAuthBearerClass;
50 typedef struct _ESoupAuthBearerPrivate ESoupAuthBearerPrivate;
55 * Contains only private data that should be read and manipulated using the
60 struct _ESoupAuthBearer {
62 ESoupAuthBearerPrivate *priv;
65 struct _ESoupAuthBearerClass {
66 SoupAuthClass parent_class;
69 GType e_soup_auth_bearer_get_type (void) G_GNUC_CONST;
70 void e_soup_auth_bearer_set_access_token
71 (ESoupAuthBearer *bearer,
72 const gchar *access_token,
73 gint expires_in_seconds);
77 #endif /* E_SOUP_AUTH_BEARER_H */