Debian Codegraph @

src/EWS/common/e-oauth2-service-office365.h

raw
1 /*
2 * SPDX-FileCopyrightText: (C) 2018 Red Hat, Inc. (www.redhat.com)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #ifndef E_OAUTH2_SERVICE_OFFICE365_H
7 #define E_OAUTH2_SERVICE_OFFICE365_H
8
9 #include <gmodule.h>
10 #include <libedataserver/libedataserver.h>
11
12 /* Standard GObject macros */
13 #define E_TYPE_OAUTH2_SERVICE_OFFICE365 \
14 (e_oauth2_service_office365_get_type ())
15 #define E_OAUTH2_SERVICE_OFFICE365(obj) \
16 (G_TYPE_CHECK_INSTANCE_CAST \
17 ((obj), E_TYPE_OAUTH2_SERVICE_OFFICE365, EOAuth2ServiceOffice365))
18 #define E_OAUTH2_SERVICE_OFFICE365_CLASS(cls) \
19 (G_TYPE_CHECK_CLASS_CAST \
20 ((cls), E_TYPE_OAUTH2_SERVICE_OFFICE365, EOAuth2ServiceOffice365Class))
21 #define E_IS_OAUTH2_SERVICE_OFFICE365(obj) \
22 (G_TYPE_CHECK_INSTANCE_TYPE \
23 ((obj), E_TYPE_OAUTH2_SERVICE_OFFICE365))
24 #define E_IS_OAUTH2_SERVICE_OFFICE365_CLASS(cls) \
25 (G_TYPE_CHECK_CLASS_TYPE \
26 ((cls), E_TYPE_OAUTH2_SERVICE_OFFICE365))
27 #define E_OAUTH2_SERVICE_OFFICE365_GET_CLASS(obj) \
28 (G_TYPE_INSTANCE_GET_CLASS \
29 ((obj), E_TYPE_OAUTH2_SERVICE_OFFICE365, EOAuth2ServiceOffice365Class))
30
31 #define OFFICE365_FALLBACK_RESOURCE_URI "https://outlook.office365.com"
32
33 G_BEGIN_DECLS
34
35 typedef struct _EOAuth2ServiceOffice365 EOAuth2ServiceOffice365;
36 typedef struct _EOAuth2ServiceOffice365Class EOAuth2ServiceOffice365Class;
37 typedef struct _EOAuth2ServiceOffice365Private EOAuth2ServiceOffice365Private;
38
39 struct _EOAuth2ServiceOffice365 {
40 EOAuth2ServiceBase parent;
41 EOAuth2ServiceOffice365Private *priv;
42 };
43
44 struct _EOAuth2ServiceOffice365Class {
45 EOAuth2ServiceBaseClass parent_class;
46 };
47
48 GType e_oauth2_service_office365_get_type (void) G_GNUC_CONST;
49
50 void e_oauth2_service_office365_type_register
51 (GTypeModule *type_module);
52
53 G_END_DECLS
54
55 #endif /* E_OAUTH2_SERVICE_OFFICE365_H */