1
/* accounts.vapi generated by vapigen, do not modify. */
3
[CCode (cprefix = "Ag", gir_namespace = "Accounts", gir_version = "1.0", lower_case_cprefix = "ag_")]
5
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", type_id = "ag_account_get_type ()")]
6
public class Account : GLib.Object {
7
[CCode (has_construct_function = false)]
9
public void @delete ();
10
public unowned string get_display_name ();
11
public bool get_enabled ();
12
public unowned Ag.Manager get_manager ();
13
public unowned string get_provider_name ();
14
public Ag.Service get_selected_service ();
15
public Ag.AccountSettingIter get_settings_iter (string? key_prefix);
16
public Ag.SettingSource get_value (string key, ref GLib.Value value);
17
public GLib.List<Ag.Service> list_enabled_services ();
18
public GLib.List<Ag.Service> list_services ();
19
public GLib.List<Ag.Service> list_services_by_type (string service_type);
20
public void remove_watch (Ag.AccountWatch watch);
21
public void select_service (Ag.Service? service);
22
public void set_display_name (string display_name);
23
public void set_enabled (bool enabled);
24
public void set_value (string key, GLib.Value? value);
25
public void settings_iter_init (Ag.AccountSettingIter iter, string? key_prefix);
26
public void sign (string key, string token);
27
public void store (Ag.AccountStoreCb callback);
28
public bool store_blocking () throws GLib.Error;
29
public bool supports_service (string service_type);
30
public bool verify (string key, string token);
31
public bool verify_with_tokens (string key, string tokens);
32
public unowned Ag.AccountWatch watch_dir (string key_prefix, Ag.AccountNotifyCb callback);
33
public unowned Ag.AccountWatch watch_key (string key, Ag.AccountNotifyCb callback);
34
public bool foreign { construct; }
36
public uint id { get; construct; }
37
public Ag.Manager manager { construct; }
38
public string provider { construct; }
39
public signal void deleted ();
40
public signal void display_name_changed ();
41
public signal void enabled (string service, bool enabled);
43
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", type_id = "ag_account_service_get_type ()")]
44
public class AccountService : GLib.Object {
45
[CCode (has_construct_function = false)]
46
public AccountService (owned Ag.Account account, owned Ag.Service? service);
47
public unowned Ag.Account get_account ();
48
public Ag.AuthData get_auth_data ();
49
[CCode (array_length = false, array_null_terminated = true)]
50
public string[] get_changed_fields ();
51
public bool get_enabled ();
52
public unowned Ag.Service get_service ();
53
public Ag.AccountSettingIter get_settings_iter (string? key_prefix);
54
public Ag.SettingSource get_value (string key, ref GLib.Value value);
55
public void set_value (string key, GLib.Value? value);
56
public void settings_iter_init (Ag.AccountSettingIter iter, string? key_prefix);
57
public static bool settings_iter_next (Ag.AccountSettingIter iter, out unowned string key, out GLib.Value value);
58
public Ag.Account account { construct; }
59
public Ag.Service service { construct; }
60
public signal void changed ();
61
public signal void enabled (bool enabled);
63
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "account_settings_iter", type_id = "ag_account_settings_iter_get_type ()")]
65
public class AccountSettingIter {
66
public weak Ag.Account account;
68
public bool next (out unowned string key, out GLib.Value value);
70
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h")]
72
public class AccountWatch {
74
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "ag_application_get_type ()")]
76
public class Application {
77
public unowned string get_description ();
78
public GLib.DesktopAppInfo get_desktop_app_info ();
79
public unowned string get_i18n_domain ();
80
public unowned string get_name ();
81
public unowned string get_service_usage (Ag.Service service);
82
public Ag.Application @ref ();
85
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "ag_auth_data_get_type ()")]
87
public class AuthData {
88
public uint get_credentials_id ();
89
public unowned string get_mechanism ();
90
public unowned string get_method ();
91
public unowned GLib.HashTable<string,GLib.Value?> get_parameters ();
92
public void insert_parameters (GLib.HashTable<string,GLib.Value?> parameters);
93
public Ag.AuthData @ref ();
96
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", type_id = "ag_manager_get_type ()")]
97
public class Manager : GLib.Object {
98
[CCode (has_construct_function = false)]
100
public Ag.Account create_account (string provider_name);
101
[CCode (has_construct_function = false)]
102
public Manager.for_service_type (string service_type);
103
public bool get_abort_on_db_timeout ();
104
public Ag.Account get_account (Ag.AccountId account_id);
105
public GLib.List<Ag.AccountService> get_account_services ();
106
public Ag.Application get_application (string application_name);
107
public uint get_db_timeout ();
108
public GLib.List<Ag.AccountService> get_enabled_account_services ();
109
public Ag.Provider get_provider (string provider_name);
110
public Ag.Service get_service (string service_name);
111
public unowned string get_service_type ();
112
public GLib.List<uint> list ();
113
public GLib.List<Ag.Application> list_applications_by_service (Ag.Service service);
114
public GLib.List<uint> list_by_service_type (string service_type);
115
public GLib.List<uint> list_enabled ();
116
public GLib.List<uint> list_enabled_by_service_type (string service_type);
117
public static void list_free (GLib.List<uint> list);
118
public GLib.List<Ag.Provider> list_providers ();
119
public GLib.List<Ag.ServiceType> list_service_types ();
120
public GLib.List<Ag.Service> list_services ();
121
public GLib.List<Ag.Service> list_services_by_type (string service_type);
122
public Ag.Account load_account (Ag.AccountId account_id) throws GLib.Error;
123
public Ag.ServiceType load_service_type (string service_type);
124
public void set_abort_on_db_timeout (bool abort);
125
public void set_db_timeout (uint timeout_ms);
126
public string service_type { get; construct; }
127
public signal void account_created (uint account_id);
128
public virtual signal void account_deleted (uint id);
129
public signal void account_updated (uint account_id);
130
public signal void enabled_event (uint account_id);
132
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "ag_provider_get_type ()")]
134
public class Provider {
135
public unowned string get_display_name ();
136
public unowned string get_description ();
137
public unowned string get_domains_regex ();
138
public void get_file_contents (string contents);
139
public unowned string get_i18n_domain ();
140
public unowned string get_icon_name ();
141
public unowned string get_name ();
142
public static void list_free (GLib.List<Ag.Provider> list);
143
public bool match_domain (string domain);
144
public Ag.Provider @ref ();
145
public void unref ();
147
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "ag_service_get_type ()")]
149
public class Service {
150
public unowned string get_display_name ();
151
public unowned string get_description ();
152
public void get_file_contents (string contents, size_t data_offset);
153
public unowned string get_i18n_domain ();
154
public unowned string get_icon_name ();
155
public unowned string get_name ();
156
public unowned string get_provider ();
157
public unowned string get_service_type ();
158
public GLib.List<weak string> get_tags ();
159
public bool has_tag (string tag);
160
public static void list_free (GLib.List<Ag.Service> list);
161
public Ag.Service @ref ();
162
public void unref ();
164
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "ag_service_type_get_type ()")]
166
public class ServiceType {
167
public unowned string get_display_name ();
168
public unowned string get_description ();
169
public void get_file_contents (string contents, size_t len);
170
public unowned string get_i18n_domain ();
171
public unowned string get_icon_name ();
172
public unowned string get_name ();
173
public GLib.List<weak string> get_tags ();
174
public bool has_tag (string tag);
175
public static void list_free (GLib.List<Ag.ServiceType> list);
176
public Ag.ServiceType @ref ();
177
public void unref ();
179
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h")]
181
public struct AccountId : uint {
183
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", cprefix = "AG_ERROR_")]
191
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", cprefix = "AG_SETTING_SOURCE_")]
192
public enum SettingSource {
197
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", instance_pos = 2.9)]
198
public delegate void AccountNotifyCb (Ag.Account account, string key);
199
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", instance_pos = 2.9)]
200
public delegate void AccountServiceNotifyCb (Ag.AccountService self, string key);
201
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h", instance_pos = 2.9)]
202
public delegate void AccountStoreCb (Ag.Account account, GLib.Error error);
203
[CCode (cheader_filename = "libaccounts-glib/accounts-glib.h")]
204
public static GLib.Quark errors_quark ();