1
1
[CCode (cprefix = "E", lower_case_cprefix = "e_")]
3
[CCode (cheader_filename = "libebackend/libebackend.h", type_id = "e_authentication_session_get_type ()")]
4
public abstract class AuthenticationSession : GLib.Object {
5
[CCode (has_construct_function = false)]
6
private AuthenticationSession ();
7
public E.SourceRegistryServer get_server ();
8
public E.SourceAuthenticator get_authenticator ();
9
public unowned string get_source_uid ();
10
public unowned string get_prompt_title ();
11
public string dup_prompt_title ();
12
public void set_prompt_title (string prompt_title);
13
public unowned string get_prompt_message ();
14
public string dup_prompt_message ();
15
public void set_prompt_message (string prompt_message);
16
public unowned string get_prompt_description ();
17
public string dup_prompt_description ();
18
public void set_prompt_description (string prompt_description);
19
public abstract E.AuthenticationSessionResult execute_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
20
public abstract async E.AuthenticationSessionResult execute (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
21
public bool store_password_sync (string password, bool permanently, GLib.Cancellable? cancellable = null) throws GLib.Error;
22
public async bool store_password (string password, bool permanently, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
23
public bool lookup_password_sync (GLib.Cancellable? cancellable, out string password) throws GLib.Error;
24
public async bool lookup_password (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
25
public bool delete_password_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
26
public async bool delete_password (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
28
[CCode (cheader_filename = "libebackend/libebackend.h", cprefix = "E_AUTHENTICATION_SESSION_", type_id = "e_authentication_session_result_get_type ()")]
29
public enum AuthenticationSessionResult {
34
3
[CCode (cheader_filename = "libebackend/libebackend.h", type_id = "e_backend_get_type ()")]
35
4
public abstract class Backend : GLib.Object {
36
5
[CCode (has_construct_function = false)]
164
133
[CCode (cheader_filename = "libebackend/libebackend.h", type_cname = "EOAuth2SupportInterface", type_id = "e_oauth2_support_get_type ()")]
165
134
public interface OAuth2Support : GLib.Object {
166
public abstract bool get_access_token_sync (E.Source source, GLib.Cancellable? cancellable, out string? access_token = null, out int? expires_in = null) throws GLib.Error;
167
public abstract async bool get_access_token (E.Source source, GLib.Cancellable? cancellable, out string? access_token = null, out int? expires_in = null) throws GLib.Error;
135
public abstract bool get_access_token_sync (E.Source source, GLib.Cancellable? cancellable, out string? access_token, out int expires_in) throws GLib.Error;
136
public abstract async bool get_access_token (E.Source source, GLib.Cancellable? cancellable, out string? access_token, out int expires_in) throws GLib.Error;
169
138
[CCode (cheader_filename = "libebackend/libebackend.h", type_id = "e_soup_auth_bearer_get_type ()")]
170
139
public class SoupAuthBearer : Soup.Auth {
193
162
public E.Source find_extension (E.Source source, string extension_name);
194
163
public E.CollectionBackend ref_backend (E.Source source);
195
164
public E.CollectionBackendFactory ref_backend_factory (E.Source source);
196
public E.AuthenticationSession new_auth_session (E.SourceAuthenticator authenticator, string source_uid);
197
public bool authenticate_sync (E.AuthenticationSession session, GLib.Cancellable? cancellable = null) throws GLib.Error;
198
public async void authenticate (E.AuthenticationSession session, GLib.Cancellable? cancellable = null) throws GLib.Error;
199
165
public signal void files_loaded ();
200
166
public signal void load_error (GLib.File file, GLib.Error error);
201
167
public signal void source_added (E.ServerSideSource source);