~ps-jenkins/account-plugins/trusty-proposed

« back to all changes in this revision

Viewing changes to src/signon.vapi

  • Committer: Alberto Mardegan
  • Date: 2012-03-14 11:55:04 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: alberto.mardegan@canonical.com-20120314115504-zxziwnxkivb4rk8c
Add Facebook and Google plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* signon.vapi generated by vapigen, do not modify. */
 
2
 
 
3
[CCode (cprefix = "Signon", gir_namespace = "Signon", gir_version = "1.0", lower_case_cprefix = "signon_")]
 
4
namespace Signon {
 
5
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_auth_service_get_type ()")]
 
6
        public class AuthService : GLib.Object {
 
7
                [CCode (has_construct_function = false)]
 
8
                public AuthService ();
 
9
                public void query_mechanisms (string method, Signon.QueryMechanismCb cb);
 
10
                public void query_methods (Signon.QueryMethodsCb cb);
 
11
        }
 
12
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_auth_session_get_type ()")]
 
13
        public class AuthSession : GLib.Object {
 
14
                [CCode (has_construct_function = false)]
 
15
                public AuthSession (int id, string method_name) throws GLib.Error;
 
16
                public void cancel ();
 
17
                public unowned string get_method ();
 
18
                public void process (GLib.HashTable<string,GLib.Value?> session_data, string mechanism, Signon.AuthSessionProcessCb cb);
 
19
                public void query_available_mechanisms (string wanted_mechanisms, Signon.AuthSessionQueryAvailableMechanismsCb cb);
 
20
                public signal void state_changed (int object, string p0);
 
21
        }
 
22
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", type_id = "signon_identity_get_type ()")]
 
23
        public class Identity : GLib.Object {
 
24
                [CCode (has_construct_function = false)]
 
25
                public Identity ();
 
26
                public void add_reference (string reference, Signon.IdentityReferenceAddedCb cb, void* user_data);
 
27
                public Signon.AuthSession create_session (string method) throws GLib.Error;
 
28
                [CCode (has_construct_function = false)]
 
29
                public Identity.from_db (uint32 id);
 
30
                public unowned GLib.Error get_last_error ();
 
31
                public void query_info (Signon.IdentityInfoCb cb);
 
32
                public void remove (Signon.IdentityRemovedCb cb, void* user_data);
 
33
                public void remove_reference (string reference, Signon.IdentityReferenceRemovedCb cb, void* user_data);
 
34
                public void store_credentials_with_args (string username, string secret, bool store_secret, GLib.HashTable<string,string[]> methods, string caption, string realms, string access_control_list, Signon.IdentityType type, Signon.IdentityStoreCredentialsCb cb);
 
35
                public void store_credentials_with_info (Signon.IdentityInfo info, Signon.IdentityStoreCredentialsCb cb);
 
36
                public void verify_secret (string secret, Signon.IdentityVerifyCb cb);
 
37
                [NoAccessorMethod]
 
38
                public uint id { get; set; }
 
39
                [HasEmitter]
 
40
                public signal void signout ();
 
41
        }
 
42
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "signon_identity_info_get_type ()")]
 
43
        [Compact]
 
44
        public class IdentityInfo {
 
45
                [CCode (has_construct_function = false)]
 
46
                public IdentityInfo ();
 
47
                public Signon.IdentityInfo copy ();
 
48
                public void free ();
 
49
                [CCode (array_length = false, array_null_terminated = true)]
 
50
                public unowned string[] get_access_control_list ();
 
51
                public unowned string get_caption ();
 
52
                public int get_id ();
 
53
                public Signon.IdentityType get_identity_type ();
 
54
                public unowned GLib.HashTable<string,string[]> get_methods ();
 
55
                [CCode (array_length = false, array_null_terminated = true)]
 
56
                public unowned string[] get_realms ();
 
57
                public bool get_storing_secret ();
 
58
                public unowned string get_username ();
 
59
                public void remove_method (string method);
 
60
                public void set_access_control_list (string access_control_list);
 
61
                public void set_caption (string caption);
 
62
                public void set_identity_type (Signon.IdentityType type);
 
63
                public void set_method (string method, string mechanisms);
 
64
                public void set_realms (string realms);
 
65
                public void set_secret (string secret, bool store_secret);
 
66
                public void set_username (string username);
 
67
        }
 
68
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_IDENTITY_TYPE_")]
 
69
        [Flags]
 
70
        public enum IdentityType {
 
71
                OTHER,
 
72
                APP,
 
73
                WEB,
 
74
                NETWORK
 
75
        }
 
76
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_POLICY_")]
 
77
        public enum SessionDataUiPolicy {
 
78
                DEFAULT,
 
79
                REQUEST_PASSWORD,
 
80
                NO_USER_INTERACTION,
 
81
                VALIDATION
 
82
        }
 
83
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cprefix = "SIGNON_ERROR_")]
 
84
        public errordomain Error {
 
85
                UNKNOWN,
 
86
                INTERNAL_SERVER,
 
87
                INTERNAL_COMMUNICATION,
 
88
                PERMISSION_DENIED,
 
89
                METHOD_NOT_KNOWN,
 
90
                SERVICE_NOT_AVAILABLE,
 
91
                INVALID_QUERY,
 
92
                METHOD_NOT_AVAILABLE,
 
93
                IDENTITY_NOT_FOUND,
 
94
                STORE_FAILED,
 
95
                REMOVE_FAILED,
 
96
                SIGNOUT_FAILED,
 
97
                IDENTITY_OPERATION_CANCELED,
 
98
                CREDENTIALS_NOT_AVAILABLE,
 
99
                REFERENCE_NOT_FOUND,
 
100
                MECHANISM_NOT_AVAILABLE,
 
101
                MISSING_DATA,
 
102
                INVALID_CREDENTIALS,
 
103
                NOT_AUTHORIZED,
 
104
                WRONG_STATE,
 
105
                OPERATION_NOT_SUPPORTED,
 
106
                NO_CONNECTION,
 
107
                NETWORK,
 
108
                SSL,
 
109
                RUNTIME,
 
110
                SESSION_CANCELED,
 
111
                TIMED_OUT,
 
112
                USER_INTERACTION,
 
113
                OPERATION_FAILED,
 
114
                ENCRYPTION_FAILED,
 
115
                TOS_NOT_ACCEPTED,
 
116
                FORGOT_PASSWORD,
 
117
                METHOD_OR_MECHANISM_NOT_ALLOWED,
 
118
                INCORRECT_DATE,
 
119
                USER_ERROR;
 
120
                public static GLib.Quark quark ();
 
121
        }
 
122
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
123
        public delegate void AuthSessionProcessCb (Signon.AuthSession self, owned GLib.HashTable<string,GLib.Value?> session_data, GLib.Error error);
 
124
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
125
        public delegate void AuthSessionQueryAvailableMechanismsCb (Signon.AuthSession self, [CCode (array_length = false, array_null_terminated = true)] owned string[] mechanisms, GLib.Error error);
 
126
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
127
        public delegate void AuthSessionQueryAvailableMethodsCb (Signon.AuthSession self, [CCode (array_length = false, array_null_terminated = true)] owned string[] mechanisms, GLib.Error error);
 
128
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
129
        public delegate void IdentityInfoCb (Signon.Identity self, Signon.IdentityInfo info, GLib.Error error);
 
130
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)]
 
131
        public delegate void IdentityReferenceAddedCb (Signon.Identity self, GLib.Error error);
 
132
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)]
 
133
        public delegate void IdentityReferenceRemovedCb (Signon.Identity self, GLib.Error error);
 
134
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)]
 
135
        public delegate void IdentityRemovedCb (Signon.Identity self, GLib.Error error);
 
136
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)]
 
137
        public delegate void IdentitySignedOutCb (Signon.Identity self, GLib.Error error);
 
138
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
139
        public delegate void IdentityStoreCredentialsCb (Signon.Identity self, uint32 id, GLib.Error error);
 
140
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
141
        public delegate void IdentityVerifyCb (Signon.Identity self, bool valid, GLib.Error error);
 
142
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 2.9)]
 
143
        public delegate void IdentityVoidCb (Signon.Identity self, GLib.Error error);
 
144
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 4.9)]
 
145
        public delegate void QueryMechanismCb (Signon.AuthService auth_service, string method, [CCode (array_length = false, array_null_terminated = true)] owned string[] mechanisms, GLib.Error error);
 
146
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", instance_pos = 3.9)]
 
147
        public delegate void QueryMethodsCb (Signon.AuthService auth_service, [CCode (array_length = false, array_null_terminated = true)] owned string[] methods, GLib.Error error);
 
148
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_CAPTION")]
 
149
        public const string SESSION_DATA_CAPTION;
 
150
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_PROXY")]
 
151
        public const string SESSION_DATA_PROXY;
 
152
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_REALM")]
 
153
        public const string SESSION_DATA_REALM;
 
154
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_RENEW_TOKEN")]
 
155
        public const string SESSION_DATA_RENEW_TOKEN;
 
156
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_SECRET")]
 
157
        public const string SESSION_DATA_SECRET;
 
158
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_TIMEOUT")]
 
159
        public const string SESSION_DATA_TIMEOUT;
 
160
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_UI_POLICY")]
 
161
        public const string SESSION_DATA_UI_POLICY;
 
162
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_USERNAME")]
 
163
        public const string SESSION_DATA_USERNAME;
 
164
        [CCode (cheader_filename = "libsignon-glib/signon-glib.h", cname = "SIGNON_SESSION_DATA_WINDOW_ID")]
 
165
        public const string SESSION_DATA_WINDOW_ID;
 
166
}