1
/* AccountPlugin.vapi generated by vapigen-0.16, do not modify. */
3
[CCode (cprefix = "Ap", gir_namespace = "AccountPlugin", gir_version = "1.0", lower_case_cprefix = "ap_")]
5
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h", type_id = "ap_application_plugin_get_type ()")]
6
public class ApplicationPlugin : GLib.Object {
7
[CCode (has_construct_function = false)]
8
protected ApplicationPlugin ();
9
public virtual unowned Gtk.Widget build_widget ();
10
public void emit_finished ();
11
public unowned Ag.Account get_account ();
12
public unowned Ag.Application get_application ();
13
public unowned GLib.Error get_error ();
14
public void set_error (GLib.Error error);
15
public Ag.Account account { get; construct; }
16
public Ag.Application application { get; construct; }
17
public signal void finished ();
19
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h", type_id = "ap_oauth_plugin_get_type ()")]
20
public class OAuthPlugin : Ap.Plugin {
21
[CCode (has_construct_function = false)]
22
protected OAuthPlugin ();
23
public void set_mechanism (Ap.OAuthMechanism mechanism);
24
public void set_oauth_parameters (GLib.HashTable<string,GLib.Value?> oauth_params);
25
public void set_account_oauth_parameters (GLib.HashTable<string,GLib.Value?> oauth_params);
27
public GLib.HashTable<weak void*,weak void*> oauth_params { owned get; construct; }
29
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h", type_id = "ap_plugin_get_type ()")]
30
public class Plugin : GLib.Object {
31
[CCode (has_construct_function = false)]
33
public virtual void act_headless ();
34
public virtual unowned Gtk.Widget build_widget ();
35
public virtual async bool delete_account () throws GLib.Error;
36
public void emit_finished ();
37
public unowned Ag.Account get_account ();
38
public unowned GLib.HashTable<string,string> get_cookies ();
39
public unowned GLib.Error get_error ();
40
public bool get_ignore_cookies ();
41
public bool get_need_authentication ();
42
public unowned string get_password ();
43
public unowned Ag.Provider get_provider ();
44
public bool get_user_cancelled ();
45
public unowned string get_username ();
46
public void set_cookies (GLib.HashTable<string,string> cookies);
47
public void set_credentials (string username, string password);
48
public void set_error (GLib.Error error);
49
public void set_ignore_cookies (bool ignore_cookies);
50
public void set_need_authentication (bool need_authentication);
51
public void set_user_cancelled (bool cancelled);
52
public Ag.Account account { get; construct; }
53
public bool need_authentication { get; set; }
54
public signal void finished ();
56
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h", cprefix = "AP_OAUTH_MECHANISM_")]
57
public enum OAuthMechanism {
64
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h", cname = "AP_PLUGIN_CREDENTIALS_ID_FIELD")]
65
public const string PLUGIN_CREDENTIALS_ID_FIELD;
66
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h")]
67
public static Ap.ApplicationPlugin client_load_application_plugin (Ag.Application application, Ag.Account account);
68
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h")]
69
public static Ap.Plugin client_load_plugin (Ag.Account account);
70
[CCode (cheader_filename = "libaccount-plugin/account-plugin.h")]
71
public static GLib.Type module_get_object_type ();