~ubuntu-branches/ubuntu/utopic/gnome-online-accounts/utopic

« back to all changes in this revision

Viewing changes to src/goabackend/goaoauth2provider.h

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Laurent Bigonville, Andreas Henriksson
  • Date: 2014-05-16 11:42:52 UTC
  • mfrom: (1.1.28) (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20140516114252-u5ect6mk6ht8i38x
Tags: 3.12.2-1
[ Laurent Bigonville ]
* debian/control.in: Recommends realmd package (Closes: #725965)

[ Andreas Henriksson ]
* New upstream release.
  - Removes chat support from Windows Live provider (XMPP gateway gone).
* Bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
2
/*
3
 
 * Copyright (C) 2011, 2012 Red Hat, Inc.
 
3
 * Copyright (C) 2011, 2012, 2014 Red Hat, Inc.
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU Lesser General Public
13
13
 * Lesser General Public License for more details.
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General
16
 
 * Public License along with this library; if not, write to the
17
 
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18
 
 * Boston, MA 02111-1307, USA.
 
16
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19
17
 *
20
18
 * Author: David Zeuthen <davidz@redhat.com>
21
19
 */
28
26
#define __GOA_OAUTH2_PROVIDER_H__
29
27
 
30
28
#include <goabackend/goaprovider.h>
 
29
#include <goabackend/goaprovider-priv.h>
31
30
#include <webkit/webkit.h>
32
31
 
33
32
G_BEGIN_DECLS
72
71
 * @get_use_external_browser: Virtual function for goa_oauth2_provider_get_use_external_browser().
73
72
 * @get_use_mobile_browser: Virtual function for goa_oauth2_provider_get_use_mobile_browser().
74
73
 * @add_account_key_values: Virtual function for goa_oauth2_provider_add_account_key_values().
 
74
 * @process_redirect_url: Virtual function for goa_oauth2_provider_process_redirect_url().
75
75
 * @is_deny_node: Virtual function for goa_oauth2_provider_is_deny_node().
76
76
 * @is_identity_node: Virtual function for goa_oauth2_provider_is_identity_node().
77
77
 * @is_password_node: Virtual function for goa_oauth2_provider_is_password_node().
85
85
  /* pure virtual */
86
86
  const gchar *(*get_authorization_uri)        (GoaOAuth2Provider            *provider);
87
87
  const gchar *(*get_redirect_uri)             (GoaOAuth2Provider            *provider);
88
 
  const gchar *(*get_scope)                    (GoaOAuth2Provider            *provider);
89
88
  const gchar *(*get_client_id)                (GoaOAuth2Provider            *provider);
90
89
  const gchar *(*get_client_secret)            (GoaOAuth2Provider            *provider);
91
90
  const gchar *(*get_authentication_cookie)    (GoaOAuth2Provider            *provider);
102
101
                                                const gchar                  *escaped_client_id,
103
102
                                                const gchar                  *escaped_scope);
104
103
  const gchar *(*get_token_uri)                (GoaOAuth2Provider            *provider);
 
104
  const gchar *(*get_scope)                    (GoaOAuth2Provider            *provider);
105
105
  gboolean     (*get_use_external_browser)     (GoaOAuth2Provider            *provider);
106
106
  gboolean     (*get_use_mobile_browser)       (GoaOAuth2Provider            *provider);
107
107
  void         (*add_account_key_values)       (GoaOAuth2Provider            *provider,
117
117
  gboolean     (*is_password_node)             (GoaOAuth2Provider            *provider,
118
118
                                                WebKitDOMHTMLInputElement    *element);
119
119
 
 
120
  gboolean     (*process_redirect_url)         (GoaOAuth2Provider            *provider,
 
121
                                                const gchar                  *redirect_url,
 
122
                                                gchar                       **access_token,
 
123
                                                GError                      **error);
 
124
 
 
125
 
120
126
  /*< private >*/
121
127
  /* Padding for future expansion */
122
 
  gpointer goa_reserved[29];
 
128
  gpointer goa_reserved[28];
123
129
};
124
130
 
125
131
GType        goa_oauth2_provider_get_type                     (void) G_GNUC_CONST;
156
162
gboolean     goa_oauth2_provider_get_use_mobile_browser       (GoaOAuth2Provider             *provider);
157
163
void         goa_oauth2_provider_add_account_key_values       (GoaOAuth2Provider             *provider,
158
164
                                                               GVariantBuilder               *builder);
 
165
gboolean     goa_oauth2_provider_process_redirect_url         (GoaOAuth2Provider             *provider,
 
166
                                                               const gchar                   *redirect_url,
 
167
                                                               gchar                        **authorization_code,
 
168
                                                               GError                       **error);
159
169
 
160
170
G_END_DECLS
161
171