~ubuntu-branches/ubuntu/quantal/evolution-data-server/quantal

« back to all changes in this revision

Viewing changes to libedataserver/e-source-authenticator.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-07-03 22:41:23 UTC
  • mfrom: (1.1.100)
  • Revision ID: package-import@ubuntu.com-20120703224123-90dydkyfyvff8s0s
Tags: 3.5.3.1-0ubuntu1
* New upstream release 3.5.3.1.
* debian/control:
  - Drop libgconf2-dev from Build-Depends.
  - Bump versions for glib, goa, and libsoup in Build-Depends.
  - Add a Build-Depends on libgcr-3-dev (>= 3.4)
  - Rename packages following upstream SONAME changes.
  - Add Depends on libgnome-keyring-dev to libedataserver1.2-dev.
* debian/rules:
  - Update mkshlibs arguments for libcamel-1.2-38 instead of -33; as it was
    renamed in control due to the soname change.
  - Strip out -Bsymbolic-functions from LDFLAGS.
* Renamed install files in debian/:
  - libcamel-1.2-33.install => libcamel-1.2-38.install
  - libebackend-1.2-2.install => libebackend-1.2-4.install
  - libebook-1.2-13.install => libebook-1.2-17.install
  - libecal-1.2-11.install => libecal-1.2-15.install
  - libedata-book-1.2-13.install => libedata-book-1.2-15.install
  - libedata-cal-1.2-15.install => libedata-cal-1.2-18.install
  - libedataserver-1.2-16.install => libedataserver-1.2-17.install
  - libedataserverui-3.0-1.install => libedataserverui-3.0-4.install
* debian/patches/google_tests_fpic.patch: build tests with -fPIC; otherwise
  build fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * e-source-authenticator.h
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) version 3.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 
16
 *
 
17
 */
 
18
 
 
19
#if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
 
20
#error "Only <libedataserver/libedataserver.h> should be included directly."
 
21
#endif
 
22
 
 
23
#ifndef E_SOURCE_AUTHENTICATOR_H
 
24
#define E_SOURCE_AUTHENTICATOR_H
 
25
 
 
26
#include <libedataserver/e-source.h>
 
27
#include <libedataserver/e-source-enums.h>
 
28
 
 
29
/* Standard GObject macros */
 
30
#define E_TYPE_SOURCE_AUTHENTICATOR \
 
31
        (e_source_authenticator_get_type ())
 
32
#define E_SOURCE_AUTHENTICATOR(obj) \
 
33
        (G_TYPE_CHECK_INSTANCE_CAST \
 
34
        ((obj), E_TYPE_SOURCE_AUTHENTICATOR, ESourceAuthenticator))
 
35
#define E_IS_SOURCE_AUTHENTICATOR(obj) \
 
36
        (G_TYPE_CHECK_INSTANCE_TYPE \
 
37
        ((obj), E_TYPE_SOURCE_AUTHENTICATOR))
 
38
#define E_SOURCE_AUTHENTICATOR_GET_INTERFACE(obj) \
 
39
        (G_TYPE_INSTANCE_GET_INTERFACE \
 
40
        ((obj), E_TYPE_SOURCE_AUTHENTICATOR, ESourceAuthenticatorInterface))
 
41
 
 
42
G_BEGIN_DECLS
 
43
 
 
44
/**
 
45
 * ESourceAuthenticator:
 
46
 *
 
47
 * Since: 3.6
 
48
 **/
 
49
typedef struct _ESourceAuthenticator ESourceAuthenticator;
 
50
typedef struct _ESourceAuthenticatorInterface ESourceAuthenticatorInterface;
 
51
 
 
52
struct _ESourceAuthenticatorInterface {
 
53
        GTypeInterface parent_interface;
 
54
 
 
55
        void            (*get_prompt_strings)   (ESourceAuthenticator *auth,
 
56
                                                 ESource *source,
 
57
                                                 gchar **prompt_title,
 
58
                                                 gchar **prompt_message,
 
59
                                                 gchar **prompt_description);
 
60
 
 
61
        /* Synchronous I/O Methods */
 
62
        ESourceAuthenticationResult
 
63
                        (*try_password_sync)    (ESourceAuthenticator *auth,
 
64
                                                 const GString *password,
 
65
                                                 GCancellable *cancellable,
 
66
                                                 GError **error);
 
67
 
 
68
        /* Asynchronous I/O Methods (all have defaults) */
 
69
        void            (*try_password)         (ESourceAuthenticator *auth,
 
70
                                                 const GString *password,
 
71
                                                 GCancellable *cancellable,
 
72
                                                 GAsyncReadyCallback callback,
 
73
                                                 gpointer user_data);
 
74
        ESourceAuthenticationResult
 
75
                        (*try_password_finish)  (ESourceAuthenticator *auth,
 
76
                                                 GAsyncResult *result,
 
77
                                                 GError **error);
 
78
};
 
79
 
 
80
GType           e_source_authenticator_get_type (void) G_GNUC_CONST;
 
81
void            e_source_authenticator_get_prompt_strings
 
82
                                                (ESourceAuthenticator *auth,
 
83
                                                 ESource *source,
 
84
                                                 gchar **prompt_title,
 
85
                                                 gchar **prompt_message,
 
86
                                                 gchar **prompt_description);
 
87
ESourceAuthenticationResult
 
88
                e_source_authenticator_try_password_sync
 
89
                                                (ESourceAuthenticator *auth,
 
90
                                                 const GString *password,
 
91
                                                 GCancellable *cancellable,
 
92
                                                 GError **error);
 
93
void            e_source_authenticator_try_password
 
94
                                                (ESourceAuthenticator *auth,
 
95
                                                 const GString *password,
 
96
                                                 GCancellable *cancellable,
 
97
                                                 GAsyncReadyCallback callback,
 
98
                                                 gpointer user_data);
 
99
ESourceAuthenticationResult
 
100
                e_source_authenticator_try_password_finish
 
101
                                                (ESourceAuthenticator *auth,
 
102
                                                 GAsyncResult *result,
 
103
                                                 GError **error);
 
104
 
 
105
G_END_DECLS
 
106
 
 
107
#endif /* E_SOURCE_AUTHENTICATOR_H */