~kobe24-lixiang/account-plugins/13.04

« back to all changes in this revision

Viewing changes to src/AccountPlugin.vapi

  • Committer: David King
  • Date: 2012-11-13 10:03:48 UTC
  • mfrom: (76.1.10 no-binary-plugins)
  • Revision ID: david.king@canonical.com-20121113100348-glmjacwdosg0q74r
Allow building without binary account plugins

Also, refactor the build system to use non-recursive make and remove
some old VAPI files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* AccountPlugin.vapi generated by vapigen-0.16, do not modify. */
2
 
 
3
 
[CCode (cprefix = "Ap", gir_namespace = "AccountPlugin", gir_version = "1.0", lower_case_cprefix = "ap_")]
4
 
namespace 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 ();
18
 
        }
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);
26
 
                [NoAccessorMethod]
27
 
                public GLib.HashTable<weak void*,weak void*> oauth_params { owned get; construct; }
28
 
        }
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)]
32
 
                protected Plugin ();
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 ();
55
 
        }
56
 
        [CCode (cheader_filename = "libaccount-plugin/account-plugin.h", cprefix = "AP_OAUTH_MECHANISM_")]
57
 
        public enum OAuthMechanism {
58
 
                USER_AGENT,
59
 
                WEB_SERVER,
60
 
                HMAC_SHA1,
61
 
                PLAINTEXT,
62
 
                RSA_SHA1
63
 
        }
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 ();
72
 
}