gtk+-4.0: Update to 3.94.0+4e868584
[vala-gnome.git] / vapi / packagekit-glib2.vapi
blob3396478857997552aee7f60447f033574570c78e
1 /* packagekit-glib2.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Pk", gir_namespace = "PackageKitGlib", gir_version = "1.0", lower_case_cprefix = "pk_")]
4 namespace Pk {
5         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_category_get_type ()")]
6         public class Category : Pk.Source {
7                 [CCode (has_construct_function = false)]
8                 [Version (since = "0.5.4")]
9                 public Category ();
10                 [Version (since = "0.6.2")]
11                 public unowned string get_icon ();
12                 [Version (since = "0.6.2")]
13                 public unowned string get_id ();
14                 [Version (since = "0.6.2")]
15                 public unowned string get_name ();
16                 [Version (since = "0.6.2")]
17                 public unowned string get_parent_id ();
18                 [Version (since = "0.6.2")]
19                 public unowned string get_summary ();
20                 [Version (since = "0.6.2")]
21                 public void set_icon (string icon);
22                 [Version (since = "0.6.2")]
23                 public void set_id (string cat_id);
24                 [Version (since = "0.6.2")]
25                 public void set_name (string name);
26                 [Version (since = "0.6.2")]
27                 public void set_parent_id (string parent_id);
28                 [Version (since = "0.6.2")]
29                 public void set_summary (string summary);
30                 [NoAccessorMethod]
31                 [Version (since = "0.5.4")]
32                 public string cat_id { owned get; set; }
33                 [Version (since = "0.5.4")]
34                 public string icon { get; set; }
35                 [Version (since = "0.5.4")]
36                 public string name { get; set; }
37                 [Version (since = "0.5.4")]
38                 public string parent_id { get; set; }
39                 [Version (since = "0.5.4")]
40                 public string summary { get; set; }
41         }
42         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_client_get_type ()")]
43         public class Client : GLib.Object {
44                 [CCode (has_construct_function = false)]
45                 [Version (since = "0.5.2")]
46                 public Client ();
47                 [Version (since = "0.5.3")]
48                 public Pk.Results accept_eula (string eula_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
49                 [CCode (finish_name = "pk_client_generic_finish")]
50                 [Version (since = "0.5.2")]
51                 public async Pk.Results accept_eula_async (string eula_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
52                 [Version (since = "0.5.3")]
53                 public Pk.Results adopt (string transaction_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
54                 [CCode (finish_name = "pk_client_generic_finish")]
55                 [Version (since = "0.5.2")]
56                 public async Pk.Results adopt_async (string transaction_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
57                 [NoWrapper]
58                 public virtual void changed ();
59                 [Version (since = "0.5.3")]
60                 public Pk.Results depends_on (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
61                 [CCode (finish_name = "pk_client_generic_finish")]
62                 [Version (since = "0.5.2")]
63                 public async Pk.Results depends_on_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
64                 [Version (since = "0.5.3")]
65                 public Pk.Results download_packages ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
66                 [CCode (finish_name = "pk_client_generic_finish")]
67                 [Version (since = "0.5.2")]
68                 public async Pk.Results download_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
69                 [Version (since = "0.6.10")]
70                 public bool get_background ();
71                 [Version (since = "0.6.10")]
72                 public uint get_cache_age ();
73                 [Version (since = "0.5.3")]
74                 public Pk.Results get_categories (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
75                 [CCode (finish_name = "pk_client_generic_finish")]
76                 [Version (since = "0.5.2")]
77                 public async Pk.Results get_categories_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
78                 [Version (since = "0.5.3")]
79                 public Pk.Results get_details ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
80                 [CCode (finish_name = "pk_client_generic_finish")]
81                 [Version (since = "0.5.2")]
82                 public async Pk.Results get_details_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
83                 [Version (since = "0.8.17")]
84                 public Pk.Results get_details_local ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
85                 [CCode (finish_name = "pk_client_generic_finish")]
86                 [Version (since = "0.8.17")]
87                 public async Pk.Results get_details_local_async ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
88                 [Version (since = "0.5.3")]
89                 public Pk.Results get_distro_upgrades (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
90                 [CCode (finish_name = "pk_client_generic_finish")]
91                 [Version (since = "0.5.2")]
92                 public async Pk.Results get_distro_upgrades_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
93                 [Version (since = "0.5.3")]
94                 public Pk.Results get_files ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
95                 [CCode (finish_name = "pk_client_generic_finish")]
96                 [Version (since = "0.5.2")]
97                 public async Pk.Results get_files_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
98                 [Version (since = "0.9.1")]
99                 public Pk.Results get_files_local ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
100                 [CCode (finish_name = "pk_client_generic_finish")]
101                 [Version (since = "0.9.1")]
102                 public async Pk.Results get_files_local_async ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
103                 [Version (since = "0.6.10")]
104                 public bool get_idle ();
105                 [Version (since = "0.6.10")]
106                 public bool get_interactive ();
107                 [Version (since = "0.6.10")]
108                 public unowned string get_locale ();
109                 [Version (since = "0.5.3")]
110                 public Pk.Results get_old_transactions (uint number, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
111                 [CCode (finish_name = "pk_client_generic_finish")]
112                 [Version (since = "0.5.2")]
113                 public async Pk.Results get_old_transactions_async (uint number, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
114                 [Version (since = "0.5.3")]
115                 public Pk.Results get_packages (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
116                 [CCode (finish_name = "pk_client_generic_finish")]
117                 [Version (since = "0.5.2")]
118                 public async Pk.Results get_packages_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
119                 [Version (since = "0.5.3")]
120                 public Pk.Progress get_progress (string transaction_id, GLib.Cancellable? cancellable = null) throws GLib.Error;
121                 [Version (since = "0.5.2")]
122                 public async Pk.Progress get_progress_async (string transaction_id, GLib.Cancellable? cancellable) throws GLib.Error;
123                 [Version (since = "0.5.3")]
124                 public Pk.Results get_repo_list (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
125                 [CCode (finish_name = "pk_client_generic_finish")]
126                 [Version (since = "0.5.2")]
127                 public async Pk.Results get_repo_list_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
128                 [Version (since = "0.5.3")]
129                 public Pk.Results get_update_detail ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
130                 [CCode (finish_name = "pk_client_generic_finish")]
131                 [Version (since = "0.5.2")]
132                 public async Pk.Results get_update_detail_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
133                 [Version (since = "0.5.3")]
134                 public Pk.Results get_updates (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
135                 [CCode (finish_name = "pk_client_generic_finish")]
136                 [Version (since = "0.5.2")]
137                 public async Pk.Results get_updates_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
138                 [Version (since = "0.8.1")]
139                 public Pk.Results install_files (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
140                 [CCode (finish_name = "pk_client_generic_finish")]
141                 [Version (since = "0.8.1")]
142                 public async Pk.Results install_files_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
143                 [Version (since = "0.8.1")]
144                 public Pk.Results install_packages (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
145                 [CCode (finish_name = "pk_client_generic_finish")]
146                 [Version (since = "0.8.1")]
147                 public async Pk.Results install_packages_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
148                 [Version (since = "0.5.3")]
149                 public Pk.Results install_signature (Pk.SigType type, string key_id, string package_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
150                 [CCode (finish_name = "pk_client_generic_finish")]
151                 [Version (since = "0.5.2")]
152                 public async Pk.Results install_signature_async (Pk.SigType type, string key_id, string package_id, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
153                 [Version (since = "0.5.3")]
154                 public Pk.Results refresh_cache (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
155                 [CCode (finish_name = "pk_client_generic_finish")]
156                 [Version (since = "0.5.2")]
157                 public async Pk.Results refresh_cache_async (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
158                 [Version (since = "0.8.1")]
159                 public Pk.Results remove_packages (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
160                 [CCode (finish_name = "pk_client_generic_finish")]
161                 [Version (since = "0.8.1")]
162                 public async Pk.Results remove_packages_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
163                 [Version (since = "0.8.1")]
164                 public Pk.Results repair_system (Pk.Bitfield transaction_flags, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
165                 [CCode (finish_name = "pk_client_generic_finish")]
166                 [Version (since = "0.8.1")]
167                 public async Pk.Results repair_system_async (Pk.Bitfield transaction_flags, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
168                 [Version (since = "0.5.3")]
169                 public Pk.Results repo_enable (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
170                 [CCode (finish_name = "pk_client_generic_finish")]
171                 [Version (since = "0.5.2")]
172                 public async Pk.Results repo_enable_async (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
173                 [Version (since = "0.9.1")]
174                 public Pk.Results repo_remove (Pk.Bitfield transaction_flags, string repo_id, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
175                 [CCode (finish_name = "pk_client_generic_finish")]
176                 [Version (since = "0.9.1")]
177                 public async Pk.Results repo_remove_async (Pk.Bitfield transaction_flags, string repo_id, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
178                 [Version (since = "0.5.3")]
179                 public Pk.Results repo_set_data (string repo_id, string parameter, string value, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
180                 [CCode (finish_name = "pk_client_generic_finish")]
181                 [Version (since = "0.5.2")]
182                 public async Pk.Results repo_set_data_async (string repo_id, string parameter, string value, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
183                 [Version (since = "0.5.3")]
184                 public Pk.Results required_by (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
185                 [CCode (finish_name = "pk_client_generic_finish")]
186                 [Version (since = "0.5.2")]
187                 public async Pk.Results required_by_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
188                 [Version (since = "0.5.3")]
189                 public Pk.Results resolve (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
190                 [CCode (finish_name = "pk_client_generic_finish")]
191                 [Version (since = "0.5.2")]
192                 public async Pk.Results resolve_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
193                 [Version (since = "0.5.5")]
194                 public Pk.Results search_details (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
195                 [CCode (finish_name = "pk_client_generic_finish")]
196                 [Version (since = "0.5.5")]
197                 public async Pk.Results search_details_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
198                 [Version (since = "0.5.5")]
199                 public Pk.Results search_files (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
200                 [CCode (finish_name = "pk_client_generic_finish")]
201                 [Version (since = "0.5.5")]
202                 public async Pk.Results search_files_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
203                 [Version (since = "0.5.5")]
204                 public Pk.Results search_groups (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
205                 [CCode (finish_name = "pk_client_generic_finish")]
206                 [Version (since = "0.5.5")]
207                 public async Pk.Results search_groups_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
208                 [Version (since = "0.5.5")]
209                 public Pk.Results search_names (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
210                 [CCode (finish_name = "pk_client_generic_finish")]
211                 [Version (since = "0.5.5")]
212                 public async Pk.Results search_names_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
213                 [Version (since = "0.6.10")]
214                 public void set_background (bool background);
215                 [Version (since = "0.6.10")]
216                 public void set_cache_age (uint cache_age);
217                 [Version (since = "0.6.10")]
218                 public void set_interactive (bool interactive);
219                 [Version (since = "0.6.10")]
220                 public void set_locale (string locale);
221                 [Version (since = "0.8.1")]
222                 public Pk.Results update_packages (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
223                 [CCode (finish_name = "pk_client_generic_finish")]
224                 [Version (since = "0.8.1")]
225                 public async Pk.Results update_packages_async (Pk.Bitfield transaction_flags, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
226                 [Version (since = "1.0.10")]
227                 public Pk.Results upgrade_system (Pk.Bitfield transaction_flags, string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
228                 [Version (since = "1.0.10")]
229                 public async void upgrade_system_async (Pk.Bitfield transaction_flags, string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback);
230                 [Version (since = "0.5.3")]
231                 public Pk.Results what_provides (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
232                 [CCode (finish_name = "pk_client_generic_finish")]
233                 [Version (since = "0.5.2")]
234                 public async Pk.Results what_provides_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
235                 [Version (since = "0.5.3")]
236                 public bool background { get; set; }
237                 [Version (since = "0.6.10")]
238                 public uint cache_age { get; set; }
239                 [Version (since = "0.5.4")]
240                 public bool idle { get; }
241                 [Version (since = "0.5.4")]
242                 public bool interactive { get; set; }
243                 [Version (since = "0.5.3")]
244                 public string locale { get; set; }
245         }
246         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_client_helper_get_type ()")]
247         public class ClientHelper : GLib.Object {
248                 [CCode (has_construct_function = false)]
249                 [Version (since = "0.6.10")]
250                 public ClientHelper ();
251                 [Version (since = "0.6.10")]
252                 public bool start (string socket_filename, string argv, string envp) throws GLib.Error;
253                 [Version (since = "0.6.10")]
254                 public bool stop () throws GLib.Error;
255         }
256         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_control_get_type ()")]
257         public class Control : GLib.Object {
258                 [CCode (has_construct_function = false)]
259                 [Version (since = "0.5.2")]
260                 public Control ();
261                 [Version (since = "0.5.2")]
262                 public async Pk.Authorize can_authorize_async (string action_id, GLib.Cancellable? cancellable) throws GLib.Error;
263                 [NoWrapper]
264                 public virtual void connection_changed (bool connected);
265                 [Version (since = "0.5.2")]
266                 public async string get_daemon_state_async (GLib.Cancellable? cancellable) throws GLib.Error;
267                 [Version (since = "0.5.3")]
268                 public bool get_properties (GLib.Cancellable? cancellable = null) throws GLib.Error;
269                 [Version (since = "0.5.2")]
270                 public async bool get_properties_async (GLib.Cancellable? cancellable) throws GLib.Error;
271                 [Version (since = "0.5.2")]
272                 public async string get_tid_async (GLib.Cancellable? cancellable) throws GLib.Error;
273                 [Version (since = "0.5.2")]
274                 public async uint get_time_since_action_async (Pk.Role role, GLib.Cancellable? cancellable) throws GLib.Error;
275                 [CCode (array_length = false, array_null_terminated = true)]
276                 [Version (since = "0.5.3")]
277                 public string[] get_transaction_list (GLib.Cancellable? cancellable = null) throws GLib.Error;
278                 [CCode (array_length = false, array_null_terminated = true)]
279                 [Version (since = "0.5.2")]
280                 public async string[] get_transaction_list_async (GLib.Cancellable? cancellable) throws GLib.Error;
281                 [NoWrapper]
282                 public virtual void network_state_changed ();
283                 [Version (since = "0.6.3")]
284                 public bool set_proxy (string proxy_http, string proxy_ftp, GLib.Cancellable? cancellable = null) throws GLib.Error;
285                 [Version (since = "0.6.13")]
286                 public bool set_proxy2 (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, GLib.Cancellable? cancellable = null) throws GLib.Error;
287                 [Version (since = "0.6.13")]
288                 public async void set_proxy2_async (string proxy_http, string proxy_https, string proxy_ftp, string proxy_socks, string no_proxy, string pac, GLib.Cancellable? cancellable);
289                 [Version (since = "0.5.2")]
290                 public async bool set_proxy_async (string proxy_http, string proxy_ftp, GLib.Cancellable? cancellable) throws GLib.Error;
291                 [Version (since = "0.6.2")]
292                 public bool suggest_daemon_quit (GLib.Cancellable? cancellable = null) throws GLib.Error;
293                 [Version (since = "0.6.2")]
294                 public async bool suggest_daemon_quit_async (GLib.Cancellable? cancellable) throws GLib.Error;
295                 [NoAccessorMethod]
296                 [Version (since = "0.5.2")]
297                 public string backend_author { owned get; set; }
298                 [NoAccessorMethod]
299                 [Version (since = "0.5.2")]
300                 public string backend_description { owned get; set; }
301                 [NoAccessorMethod]
302                 [Version (since = "0.5.2")]
303                 public string backend_name { owned get; set; }
304                 [NoAccessorMethod]
305                 [Version (since = "0.5.3")]
306                 public bool connected { get; set; }
307                 [NoAccessorMethod]
308                 [Version (since = "0.5.5")]
309                 public string distro_id { owned get; set; }
310                 [NoAccessorMethod]
311                 [Version (since = "0.5.2")]
312                 public uint64 filters { get; set; }
313                 [NoAccessorMethod]
314                 [Version (since = "0.5.2")]
315                 public uint64 groups { get; set; }
316                 [NoAccessorMethod]
317                 [Version (since = "0.5.3")]
318                 public virtual bool locked { get; set; }
319                 [CCode (array_length = false, array_null_terminated = true)]
320                 [NoAccessorMethod]
321                 [Version (since = "0.8.1")]
322                 public string[] mime_types { owned get; set; }
323                 [NoAccessorMethod]
324                 [Version (since = "0.5.3")]
325                 public Pk.Network network_state { get; set; }
326                 [NoAccessorMethod]
327                 [Version (since = "0.8.8")]
328                 public uint64 provides { get; set; }
329                 [NoAccessorMethod]
330                 [Version (since = "0.5.2")]
331                 public uint64 roles { get; set; }
332                 [NoAccessorMethod]
333                 [Version (since = "0.5.2")]
334                 public uint version_major { get; }
335                 [NoAccessorMethod]
336                 [Version (since = "0.5.2")]
337                 public uint version_micro { get; }
338                 [NoAccessorMethod]
339                 [Version (since = "0.5.2")]
340                 public uint version_minor { get; }
341                 public virtual signal void repo_list_changed ();
342                 public virtual signal void restart_schedule ();
343                 public virtual signal void transaction_list_changed ([CCode (array_length = false, array_null_terminated = true)] string[] transaction_ids);
344                 public virtual signal void updates_changed ();
345         }
346         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_desktop_get_type ()")]
347         public class Desktop : GLib.Object {
348                 [CCode (has_construct_function = false)]
349                 [Version (since = "0.5.3")]
350                 public Desktop ();
351                 [Version (since = "0.5.3")]
352                 public GLib.GenericArray<weak string> get_files_for_package (string package) throws GLib.Error;
353                 [Version (since = "0.5.3")]
354                 public string get_package_for_file (string filename) throws GLib.Error;
355                 [Version (since = "0.5.3")]
356                 public GLib.GenericArray<weak string> get_shown_for_package (string package) throws GLib.Error;
357                 [Version (since = "0.5.3")]
358                 public bool open_database () throws GLib.Error;
359         }
360         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_details_get_type ()")]
361         public class Details : Pk.Source {
362                 [CCode (has_construct_function = false)]
363                 [Version (since = "0.5.4")]
364                 public Details ();
365                 [Version (since = "0.8.12")]
366                 public unowned string get_description ();
367                 [Version (since = "0.8.12")]
368                 public Pk.Group get_group ();
369                 [Version (since = "0.8.12")]
370                 public unowned string get_license ();
371                 [Version (since = "0.8.12")]
372                 public unowned string get_package_id ();
373                 [Version (since = "0.8.12")]
374                 public uint64 get_size ();
375                 [Version (since = "0.9.1")]
376                 public unowned string get_summary ();
377                 [Version (since = "0.8.12")]
378                 public unowned string get_url ();
379                 [NoAccessorMethod]
380                 [Version (since = "0.5.4")]
381                 public string description { owned get; set; }
382                 [NoAccessorMethod]
383                 [Version (since = "0.5.4")]
384                 public Pk.Group group { get; set; }
385                 [NoAccessorMethod]
386                 [Version (since = "0.5.4")]
387                 public string license { owned get; set; }
388                 [NoAccessorMethod]
389                 [Version (since = "0.5.4")]
390                 public string package_id { owned get; set; }
391                 [NoAccessorMethod]
392                 [Version (since = "0.5.4")]
393                 public uint64 size { get; set; }
394                 [NoAccessorMethod]
395                 [Version (since = "0.9.1")]
396                 public string summary { owned get; set; }
397                 [NoAccessorMethod]
398                 [Version (since = "0.5.4")]
399                 public string url { owned get; set; }
400         }
401         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_distro_upgrade_get_type ()")]
402         public class DistroUpgrade : Pk.Source {
403                 [CCode (has_construct_function = false)]
404                 [Version (since = "0.5.4")]
405                 public DistroUpgrade ();
406                 [Version (since = "0.6.11")]
407                 public unowned string get_id ();
408                 [Version (since = "0.6.11")]
409                 public Pk.DistroUpgradeEnum get_state ();
410                 [Version (since = "0.6.11")]
411                 public unowned string get_summary ();
412                 [NoAccessorMethod]
413                 [Version (since = "0.5.4")]
414                 public string name { owned get; set; }
415                 [NoAccessorMethod]
416                 [Version (since = "0.5.4")]
417                 public Pk.DistroUpgradeEnum state { get; set; }
418                 [NoAccessorMethod]
419                 [Version (since = "0.5.4")]
420                 public string summary { owned get; set; }
421         }
422         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_error_get_type ()")]
423         public class Error : Pk.Source {
424                 [CCode (has_construct_function = false)]
425                 [Version (since = "0.5.5")]
426                 public Error ();
427                 [Version (since = "0.5.5")]
428                 public Pk.ErrorEnum get_code ();
429                 [Version (since = "0.5.5")]
430                 public unowned string get_details ();
431                 [NoAccessorMethod]
432                 [Version (since = "0.5.5")]
433                 public Pk.ErrorEnum code { get; set; }
434                 [NoAccessorMethod]
435                 [Version (since = "0.5.5")]
436                 public string details { owned get; set; }
437         }
438         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_eula_required_get_type ()")]
439         public class EulaRequired : Pk.Source {
440                 [CCode (has_construct_function = false)]
441                 [Version (since = "0.5.4")]
442                 public EulaRequired ();
443                 [Version (since = "1.1.8")]
444                 public unowned string get_eula_id ();
445                 [Version (since = "1.1.8")]
446                 public unowned string get_license_agreement ();
447                 [Version (since = "1.1.8")]
448                 public unowned string get_package_id ();
449                 [Version (since = "1.1.8")]
450                 public unowned string get_vendor_name ();
451                 [NoAccessorMethod]
452                 [Version (since = "0.5.4")]
453                 public string eula_id { owned get; set; }
454                 [NoAccessorMethod]
455                 [Version (since = "0.5.4")]
456                 public string license_agreement { owned get; set; }
457                 [NoAccessorMethod]
458                 [Version (since = "0.5.4")]
459                 public string package_id { owned get; set; }
460                 [NoAccessorMethod]
461                 [Version (since = "0.5.4")]
462                 public string vendor_name { owned get; set; }
463         }
464         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_files_get_type ()")]
465         public class Files : Pk.Source {
466                 [CCode (has_construct_function = false)]
467                 [Version (since = "0.5.4")]
468                 public Files ();
469                 [CCode (array_length = false, array_null_terminated = true)]
470                 [Version (since = "0.9.1")]
471                 public unowned string[] get_files ();
472                 [Version (since = "0.9.1")]
473                 public unowned string get_package_id ();
474                 [CCode (array_length = false, array_null_terminated = true)]
475                 [NoAccessorMethod]
476                 [Version (since = "0.5.4")]
477                 public string[] files { owned get; set; }
478                 [NoAccessorMethod]
479                 [Version (since = "0.5.4")]
480                 public string package_id { owned get; set; }
481         }
482         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_item_progress_get_type ()")]
483         public class ItemProgress : Pk.Source {
484                 [CCode (has_construct_function = false)]
485                 [Version (since = "0.8.1")]
486                 public ItemProgress ();
487                 public unowned string get_package_id ();
488                 public uint get_percentage ();
489                 public Pk.Status get_status ();
490                 [NoAccessorMethod]
491                 [Version (since = "0.8.1")]
492                 public string package_id { owned get; set; }
493                 [NoAccessorMethod]
494                 [Version (since = "0.8.1")]
495                 public uint percentage { get; set; }
496                 [NoAccessorMethod]
497                 [Version (since = "0.8.2")]
498                 public uint status { get; set; }
499         }
500         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_media_change_required_get_type ()")]
501         public class MediaChangeRequired : Pk.Source {
502                 [CCode (has_construct_function = false)]
503                 [Version (since = "0.5.4")]
504                 public MediaChangeRequired ();
505                 [NoAccessorMethod]
506                 [Version (since = "0.5.4")]
507                 public string media_id { owned get; set; }
508                 [NoAccessorMethod]
509                 [Version (since = "0.5.4")]
510                 public string media_text { owned get; set; }
511                 [NoAccessorMethod]
512                 [Version (since = "0.5.4")]
513                 public Pk.MediaType media_type { get; set; }
514         }
515         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_package_get_type ()")]
516         public class Package : Pk.Source {
517                 [CCode (has_construct_function = false)]
518                 [Version (since = "0.5.4")]
519                 public Package ();
520                 [Version (since = "0.5.4")]
521                 public bool equal (Pk.Package package2);
522                 [Version (since = "0.5.4")]
523                 public bool equal_id (Pk.Package package2);
524                 [Version (since = "0.6.4")]
525                 public unowned string get_arch ();
526                 [Version (since = "0.6.4")]
527                 public unowned string get_data ();
528                 [Version (since = "0.5.4")]
529                 public unowned string get_id ();
530                 [Version (since = "0.5.4")]
531                 public Pk.Info get_info ();
532                 [Version (since = "0.6.4")]
533                 public unowned string get_name ();
534                 [Version (since = "0.5.4")]
535                 public unowned string get_summary ();
536                 [Version (since = "0.6.4")]
537                 public unowned string get_version ();
538                 [Version (since = "0.5.0")]
539                 public static string id_build (string name, string version, string arch, string data);
540                 [Version (since = "0.5.0")]
541                 public static bool id_check (string package_id);
542                 [Version (since = "0.5.0")]
543                 public static bool id_equal_fuzzy_arch (string package_id1, string package_id2);
544                 [CCode (array_length = false, array_null_terminated = true)]
545                 [Version (since = "0.5.3")]
546                 public static string[] id_split (string package_id);
547                 [Version (since = "0.5.2")]
548                 public static string id_to_printable (string package_id);
549                 [CCode (array_length = false, array_null_terminated = true)]
550                 [Version (since = "0.5.2")]
551                 public static string[] ids_add_id (string package_ids, string package_id);
552                 [CCode (array_length = false, array_null_terminated = true)]
553                 [Version (since = "0.5.2")]
554                 public static string[] ids_add_ids (string package_ids, string package_ids_new);
555                 [Version (since = "0.5.2")]
556                 public static bool ids_check (string package_ids);
557                 [CCode (array_length = false, array_null_terminated = true)]
558                 [Version (since = "0.5.2")]
559                 public static string[] ids_from_id (string package_id);
560                 [CCode (array_length = false, array_null_terminated = true)]
561                 [Version (since = "0.5.2")]
562                 public static string[] ids_from_string (string package_id);
563                 [Version (since = "0.5.2")]
564                 public static bool ids_present_id (string package_ids, string package_id);
565                 [CCode (array_length = false, array_null_terminated = true)]
566                 [Version (since = "0.5.2")]
567                 public static string[] ids_remove_id (string package_ids, string package_id);
568                 [Version (since = "0.5.2")]
569                 public static string ids_to_string (string package_ids);
570                 [Version (since = "0.8.11")]
571                 public bool parse (string data) throws GLib.Error;
572                 [Version (since = "0.5.4")]
573                 public void print ();
574                 [Version (since = "0.5.4")]
575                 public bool set_id (string package_id) throws GLib.Error;
576                 [Version (since = "0.8.14")]
577                 public void set_info (Pk.Info info);
578                 [Version (since = "0.8.14")]
579                 public void set_summary (string summary);
580                 [NoAccessorMethod]
581                 [Version (since = "0.5.4")]
582                 public string description { owned get; set; }
583                 [NoAccessorMethod]
584                 [Version (since = "0.5.4")]
585                 public Pk.Group group { get; set; }
586                 [Version (since = "0.5.4")]
587                 public Pk.Info info { get; set; }
588                 [NoAccessorMethod]
589                 [Version (since = "0.5.4")]
590                 public string license { owned get; set; }
591                 [NoAccessorMethod]
592                 [Version (since = "0.5.4")]
593                 public string package_id { owned get; }
594                 [NoAccessorMethod]
595                 [Version (since = "0.5.4")]
596                 public uint64 size { get; set; }
597                 [Version (since = "0.5.4")]
598                 public string summary { get; set; }
599                 [CCode (array_length = false, array_null_terminated = true)]
600                 [NoAccessorMethod]
601                 [Version (since = "0.8.1")]
602                 public string[] update_bugzilla_urls { owned get; set; }
603                 [NoAccessorMethod]
604                 [Version (since = "0.5.4")]
605                 public string update_changelog { owned get; set; }
606                 [CCode (array_length = false, array_null_terminated = true)]
607                 [NoAccessorMethod]
608                 [Version (since = "0.8.1")]
609                 public string[] update_cve_urls { owned get; set; }
610                 [NoAccessorMethod]
611                 [Version (since = "0.5.4")]
612                 public string update_issued { owned get; set; }
613                 [NoAccessorMethod]
614                 [Version (since = "0.5.4")]
615                 public string update_obsoletes { owned get; set; }
616                 [NoAccessorMethod]
617                 [Version (since = "0.5.4")]
618                 public Pk.Restart update_restart { get; set; }
619                 [NoAccessorMethod]
620                 [Version (since = "0.5.4")]
621                 public Pk.UpdateState update_state { get; set; }
622                 [NoAccessorMethod]
623                 [Version (since = "0.5.4")]
624                 public string update_text { owned get; set; }
625                 [NoAccessorMethod]
626                 [Version (since = "0.5.4")]
627                 public string update_updated { owned get; set; }
628                 [NoAccessorMethod]
629                 [Version (since = "0.5.4")]
630                 public string update_updates { owned get; set; }
631                 [CCode (array_length = false, array_null_terminated = true)]
632                 [NoAccessorMethod]
633                 [Version (since = "0.8.1")]
634                 public string[] update_vendor_urls { owned get; set; }
635                 [NoAccessorMethod]
636                 [Version (since = "0.5.4")]
637                 public string url { owned get; set; }
638                 public virtual signal void changed ();
639         }
640         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_package_sack_get_type ()")]
641         public class PackageSack : GLib.Object {
642                 [CCode (has_construct_function = false)]
643                 [Version (since = "0.5.2")]
644                 public PackageSack ();
645                 [Version (since = "0.5.2")]
646                 public bool add_package (Pk.Package package);
647                 [Version (since = "0.5.2")]
648                 public bool add_package_by_id (string package_id) throws GLib.Error;
649                 public bool add_packages_from_file (GLib.File file) throws GLib.Error;
650                 [NoWrapper]
651                 public virtual void changed ();
652                 [Version (since = "0.5.2")]
653                 public void clear ();
654                 [Version (since = "0.6.3")]
655                 public Pk.PackageSack filter (Pk.PackageSackFilterFunc filter_cb);
656                 [Version (since = "0.6.2")]
657                 public Pk.PackageSack filter_by_info (Pk.Info info);
658                 [Version (since = "0.5.2")]
659                 public Pk.Package find_by_id (string package_id);
660                 [Version (since = "0.8.16")]
661                 public Pk.Package find_by_id_name_arch (string package_id);
662                 [Version (since = "0.6.1")]
663                 public GLib.GenericArray<weak Pk.Package> get_array ();
664                 [Version (since = "0.6.0")]
665                 public bool get_details (GLib.Cancellable? cancellable = null) throws GLib.Error;
666                 [CCode (finish_name = "pk_package_sack_merge_generic_finish")]
667                 public async bool get_details_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
668                 [CCode (array_length = false, array_null_terminated = true)]
669                 [Version (since = "0.5.3")]
670                 public string[] get_ids ();
671                 [Version (since = "0.5.2")]
672                 public uint get_size ();
673                 [Version (since = "0.5.2")]
674                 public uint64 get_total_bytes ();
675                 [Version (since = "0.6.0")]
676                 public bool get_update_detail (GLib.Cancellable? cancellable = null) throws GLib.Error;
677                 [CCode (finish_name = "pk_package_sack_merge_generic_finish")]
678                 [Version (since = "0.5.2")]
679                 public async bool get_update_detail_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
680                 [Version (since = "0.6.3")]
681                 public bool remove_by_filter (Pk.PackageSackFilterFunc filter_cb);
682                 [Version (since = "0.5.2")]
683                 public bool remove_package (Pk.Package package);
684                 [Version (since = "0.5.2")]
685                 public bool remove_package_by_id (string package_id);
686                 [Version (since = "0.6.0")]
687                 public bool resolve (GLib.Cancellable? cancellable = null) throws GLib.Error;
688                 [CCode (finish_name = "pk_package_sack_merge_generic_finish")]
689                 [Version (since = "0.5.2")]
690                 public async bool resolve_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
691                 [Version (since = "0.6.1")]
692                 public void sort (Pk.PackageSackSortType type);
693                 [Version (since = "0.8.6")]
694                 public bool to_file (GLib.File file) throws GLib.Error;
695         }
696         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", has_type_id = false)]
697         [Compact]
698         public class PackageSackResults {
699         }
700         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_progress_get_type ()")]
701         public class Progress : GLib.Object {
702                 [CCode (has_construct_function = false)]
703                 [Version (since = "0.5.2")]
704                 public Progress ();
705                 [Version (since = "1.0.12")]
706                 public bool get_allow_cancel ();
707                 [Version (since = "1.0.12")]
708                 public bool get_caller_active ();
709                 [Version (since = "1.0.12")]
710                 public uint64 get_download_size_remaining ();
711                 [Version (since = "1.0.12")]
712                 public uint get_elapsed_time ();
713                 [Version (since = "1.0.12")]
714                 public unowned Pk.ItemProgress get_item_progress ();
715                 [Version (since = "1.0.12")]
716                 public unowned Pk.Package get_package ();
717                 [Version (since = "1.0.12")]
718                 public unowned string get_package_id ();
719                 [Version (since = "1.0.12")]
720                 public int get_percentage ();
721                 [Version (since = "1.0.12")]
722                 public uint get_remaining_time ();
723                 [Version (since = "1.0.12")]
724                 public Pk.Role get_role ();
725                 [Version (since = "1.0.12")]
726                 public uint get_speed ();
727                 [Version (since = "1.0.12")]
728                 public Pk.Status get_status ();
729                 [Version (since = "1.0.12")]
730                 public uint64 get_transaction_flags ();
731                 [Version (since = "1.0.12")]
732                 public unowned string get_transaction_id ();
733                 [Version (since = "1.0.12")]
734                 public uint get_uid ();
735                 [Version (since = "0.5.2")]
736                 public bool set_allow_cancel (bool allow_cancel);
737                 [Version (since = "0.5.2")]
738                 public bool set_caller_active (bool caller_active);
739                 [Version (since = "0.8.0")]
740                 public bool set_download_size_remaining (uint64 download_size_remaining);
741                 [Version (since = "0.5.2")]
742                 public bool set_elapsed_time (uint elapsed_time);
743                 [Version (since = "0.8.1")]
744                 public bool set_item_progress (Pk.ItemProgress item_progress);
745                 [Version (since = "0.5.2")]
746                 public bool set_package (Pk.Package package);
747                 [Version (since = "0.5.2")]
748                 public bool set_package_id (string package_id);
749                 [Version (since = "0.5.2")]
750                 public bool set_percentage (int percentage);
751                 [Version (since = "0.5.2")]
752                 public bool set_remaining_time (uint remaining_time);
753                 [Version (since = "0.5.2")]
754                 public bool set_role (Pk.Role role);
755                 [Version (since = "0.5.2")]
756                 public bool set_speed (uint speed);
757                 [Version (since = "0.5.2")]
758                 public bool set_status (Pk.Status status);
759                 [Version (since = "0.8.8")]
760                 public bool set_transaction_flags (uint64 transaction_flags);
761                 [Version (since = "0.5.3")]
762                 public bool set_transaction_id (string transaction_id);
763                 [Version (since = "0.5.2")]
764                 public bool set_uid (uint uid);
765                 [Version (since = "0.5.2")]
766                 public bool allow_cancel { get; set; }
767                 [Version (since = "0.5.2")]
768                 public bool caller_active { get; set; }
769                 [Version (since = "0.8.0")]
770                 public uint64 download_size_remaining { get; set; }
771                 [Version (since = "0.5.2")]
772                 public uint elapsed_time { get; set; }
773                 [Version (since = "0.8.1")]
774                 public Pk.ItemProgress item_progress { get; set; }
775                 [Version (since = "0.5.3")]
776                 public Pk.Package package { get; set; }
777                 [Version (since = "0.5.2")]
778                 public string package_id { get; set; }
779                 [Version (since = "0.5.2")]
780                 public int percentage { get; set; }
781                 [Version (since = "0.5.2")]
782                 public uint remaining_time { get; set; }
783                 [Version (since = "0.5.2")]
784                 public uint role { get; set; }
785                 [Version (since = "0.5.2")]
786                 public uint speed { get; set; }
787                 [Version (since = "0.5.2")]
788                 public uint status { get; set; }
789                 [Version (since = "0.8.8")]
790                 public uint64 transaction_flags { get; set; }
791                 [Version (since = "0.5.2")]
792                 public string transaction_id { get; set; }
793                 [Version (since = "0.5.2")]
794                 public uint uid { get; set; }
795         }
796         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_repo_detail_get_type ()")]
797         public class RepoDetail : Pk.Source {
798                 [CCode (has_construct_function = false)]
799                 [Version (since = "0.5.4")]
800                 public RepoDetail ();
801                 [Version (since = "0.9.1")]
802                 public unowned string get_description ();
803                 [Version (since = "0.9.1")]
804                 public bool get_enabled ();
805                 [Version (since = "0.9.1")]
806                 public unowned string get_id ();
807                 [NoAccessorMethod]
808                 [Version (since = "0.5.4")]
809                 public string description { owned get; set; }
810                 [NoAccessorMethod]
811                 [Version (since = "0.5.4")]
812                 public bool enabled { get; set; }
813                 [NoAccessorMethod]
814                 [Version (since = "0.5.4")]
815                 public string repo_id { owned get; set; }
816         }
817         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_repo_signature_required_get_type ()")]
818         public class RepoSignatureRequired : Pk.Source {
819                 [CCode (has_construct_function = false)]
820                 [Version (since = "0.5.4")]
821                 public RepoSignatureRequired ();
822                 [NoAccessorMethod]
823                 [Version (since = "0.5.4")]
824                 public string key_fingerprint { owned get; set; }
825                 [NoAccessorMethod]
826                 [Version (since = "0.5.4")]
827                 public string key_id { owned get; set; }
828                 [NoAccessorMethod]
829                 [Version (since = "0.5.4")]
830                 public string key_timestamp { owned get; set; }
831                 [NoAccessorMethod]
832                 [Version (since = "0.5.4")]
833                 public string key_url { owned get; set; }
834                 [NoAccessorMethod]
835                 [Version (since = "0.5.4")]
836                 public string key_userid { owned get; set; }
837                 [NoAccessorMethod]
838                 [Version (since = "0.5.4")]
839                 public string package_id { owned get; set; }
840                 [NoAccessorMethod]
841                 [Version (since = "0.5.4")]
842                 public string repository_name { owned get; set; }
843                 [NoAccessorMethod]
844                 [Version (since = "0.5.4")]
845                 public Pk.SigType type { get; set; }
846         }
847         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_require_restart_get_type ()")]
848         public class RequireRestart : Pk.Source {
849                 [CCode (has_construct_function = false)]
850                 [Version (since = "0.5.4")]
851                 public RequireRestart ();
852                 [NoAccessorMethod]
853                 [Version (since = "0.5.4")]
854                 public string package_id { owned get; set; }
855                 [NoAccessorMethod]
856                 [Version (since = "0.5.4")]
857                 public Pk.Restart restart { get; set; }
858         }
859         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_results_get_type ()")]
860         public class Results : GLib.Object {
861                 [CCode (has_construct_function = false)]
862                 [Version (since = "0.5.2")]
863                 public Results ();
864                 [Version (since = "0.5.2")]
865                 public bool add_category (Pk.Category item);
866                 [Version (since = "0.5.2")]
867                 public bool add_details (Pk.Details item);
868                 [Version (since = "0.5.2")]
869                 public bool add_distro_upgrade (Pk.DistroUpgrade item);
870                 [Version (since = "0.5.2")]
871                 public bool add_eula_required (Pk.EulaRequired item);
872                 [Version (since = "0.5.2")]
873                 public bool add_files (Pk.Files item);
874                 [Version (since = "0.5.2")]
875                 public bool add_media_change_required (Pk.MediaChangeRequired item);
876                 [Version (since = "0.5.3")]
877                 public bool add_package (Pk.Package item);
878                 [Version (since = "0.5.2")]
879                 public bool add_repo_detail (Pk.RepoDetail item);
880                 [Version (since = "0.5.2")]
881                 public bool add_repo_signature_required (Pk.RepoSignatureRequired item);
882                 [Version (since = "0.5.2")]
883                 public bool add_require_restart (Pk.RequireRestart item);
884                 [Version (since = "0.5.2")]
885                 public bool add_transaction (Pk.TransactionPast item);
886                 [Version (since = "0.5.2")]
887                 public bool add_update_detail (Pk.UpdateDetail item);
888                 [Version (since = "0.5.2")]
889                 public GLib.GenericArray<weak Pk.Category> get_category_array ();
890                 [Version (since = "0.5.2")]
891                 public GLib.GenericArray<weak Pk.Details> get_details_array ();
892                 [Version (since = "0.5.2")]
893                 public GLib.GenericArray<weak Pk.DistroUpgrade> get_distro_upgrade_array ();
894                 [Version (since = "0.5.2")]
895                 public Pk.Error get_error_code ();
896                 [Version (since = "0.5.2")]
897                 public GLib.GenericArray<weak Pk.EulaRequired> get_eula_required_array ();
898                 [Version (since = "0.5.2")]
899                 public Pk.Exit get_exit_code ();
900                 [Version (since = "0.5.2")]
901                 public GLib.GenericArray<weak Pk.Files> get_files_array ();
902                 [Version (since = "0.5.2")]
903                 public GLib.GenericArray<weak Pk.MediaChangeRequired> get_media_change_required_array ();
904                 [Version (since = "0.5.2")]
905                 public GLib.GenericArray<weak Pk.Package> get_package_array ();
906                 [Version (since = "0.5.2")]
907                 public Pk.PackageSack get_package_sack ();
908                 [Version (since = "0.5.2")]
909                 public GLib.GenericArray<weak Pk.RepoDetail> get_repo_detail_array ();
910                 [Version (since = "0.5.2")]
911                 public GLib.GenericArray<weak Pk.RepoSignatureRequired> get_repo_signature_required_array ();
912                 [Version (since = "0.5.2")]
913                 public GLib.GenericArray<weak Pk.RequireRestart> get_require_restart_array ();
914                 [Version (since = "0.5.2")]
915                 public Pk.Restart get_require_restart_worst ();
916                 [Version (since = "0.7.5")]
917                 public Pk.Role get_role ();
918                 [Version (since = "0.5.2")]
919                 public GLib.GenericArray<weak Pk.TransactionPast> get_transaction_array ();
920                 [Version (since = "0.8.1")]
921                 public Pk.Bitfield get_transaction_flags ();
922                 [Version (since = "0.5.2")]
923                 public GLib.GenericArray<weak Pk.UpdateDetail> get_update_detail_array ();
924                 [Version (since = "0.5.2")]
925                 public bool set_error_code (Pk.Error item);
926                 [Version (since = "0.5.2")]
927                 public bool set_exit_code (Pk.Exit exit_enum);
928                 [Version (since = "1.1.8")]
929                 public bool set_role (Pk.Role role);
930                 [NoAccessorMethod]
931                 [Version (since = "0.5.3")]
932                 public uint inputs { get; set; }
933                 [NoAccessorMethod]
934                 [Version (since = "0.5.3")]
935                 public Pk.Progress progress { owned get; set; }
936                 [Version (since = "0.5.2")]
937                 public Pk.Role role { get; set; }
938                 [NoAccessorMethod]
939                 [Version (since = "0.8.1")]
940                 public uint64 transaction_flags { get; set; }
941         }
942         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_source_get_type ()")]
943         public class Source : GLib.Object {
944                 [CCode (has_construct_function = false)]
945                 [Version (since = "0.6.0")]
946                 public Source ();
947                 [NoAccessorMethod]
948                 [Version (since = "0.6.0")]
949                 public Pk.Role role { get; set; }
950                 [NoAccessorMethod]
951                 [Version (since = "0.6.0")]
952                 public string transaction_id { owned get; set; }
953         }
954         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_task_get_type ()")]
955         public class Task : Pk.Client {
956                 [CCode (has_construct_function = false)]
957                 [Version (since = "0.5.2")]
958                 public Task ();
959                 [CCode (finish_name = "pk_task_generic_finish")]
960                 [Version (since = "0.6.5")]
961                 public async Pk.Results depends_on_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
962                 [Version (since = "0.6.5")]
963                 public Pk.Results depends_on_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
964                 [CCode (finish_name = "pk_task_generic_finish")]
965                 [Version (since = "0.6.5")]
966                 public async Pk.Results download_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
967                 [Version (since = "0.6.5")]
968                 public Pk.Results download_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, string directory, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
969                 [NoWrapper]
970                 public virtual void eula_question (uint request, Pk.Results results);
971                 [Version (since = "1.0.2")]
972                 public bool get_allow_downgrade ();
973                 [Version (since = "1.0.2")]
974                 public bool get_allow_reinstall ();
975                 [CCode (finish_name = "pk_task_generic_finish")]
976                 [Version (since = "0.6.5")]
977                 public async Pk.Results get_categories_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
978                 [Version (since = "0.6.5")]
979                 public Pk.Results get_categories_sync (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
980                 [CCode (finish_name = "pk_task_generic_finish")]
981                 [Version (since = "0.6.5")]
982                 public async Pk.Results get_details_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
983                 [Version (since = "0.6.5")]
984                 public Pk.Results get_details_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
985                 [CCode (finish_name = "pk_task_generic_finish")]
986                 [Version (since = "0.6.5")]
987                 public async Pk.Results get_files_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
988                 [Version (since = "0.6.5")]
989                 public Pk.Results get_files_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
990                 [Version (since = "0.8.1")]
991                 public bool get_only_download ();
992                 [Version (since = "0.9.5")]
993                 public bool get_only_trusted ();
994                 [CCode (finish_name = "pk_task_generic_finish")]
995                 [Version (since = "0.6.5")]
996                 public async Pk.Results get_packages_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
997                 [Version (since = "0.6.5")]
998                 public Pk.Results get_packages_sync (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
999                 [CCode (finish_name = "pk_task_generic_finish")]
1000                 [Version (since = "0.6.5")]
1001                 public async Pk.Results get_repo_list_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1002                 [Version (since = "0.6.5")]
1003                 public Pk.Results get_repo_list_sync (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1004                 [Version (since = "0.6.10")]
1005                 public bool get_simulate ();
1006                 [CCode (finish_name = "pk_task_generic_finish")]
1007                 [Version (since = "0.6.5")]
1008                 public async Pk.Results get_update_detail_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1009                 [Version (since = "0.6.5")]
1010                 public Pk.Results get_update_detail_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1011                 [CCode (finish_name = "pk_task_generic_finish")]
1012                 [Version (since = "0.6.5")]
1013                 public async Pk.Results get_updates_async (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1014                 [Version (since = "0.6.5")]
1015                 public Pk.Results get_updates_sync (Pk.Bitfield filters, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1016                 [CCode (finish_name = "pk_task_generic_finish")]
1017                 [Version (since = "0.5.2")]
1018                 public async Pk.Results install_files_async ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1019                 [Version (since = "0.5.3")]
1020                 public Pk.Results install_files_sync ([CCode (array_length = false, array_null_terminated = true)] string[] files, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1021                 [CCode (finish_name = "pk_task_generic_finish")]
1022                 [Version (since = "0.5.2")]
1023                 public async Pk.Results install_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1024                 [Version (since = "0.5.3")]
1025                 public Pk.Results install_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1026                 [NoWrapper]
1027                 public virtual void key_question (uint request, Pk.Results results);
1028                 [NoWrapper]
1029                 public virtual void media_change_question (uint request, Pk.Results results);
1030                 [CCode (finish_name = "pk_task_generic_finish")]
1031                 [Version (since = "0.6.5")]
1032                 public async Pk.Results refresh_cache_async (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1033                 [Version (since = "0.6.5")]
1034                 public Pk.Results refresh_cache_sync (bool force, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1035                 [CCode (finish_name = "pk_task_generic_finish")]
1036                 [Version (since = "0.5.2")]
1037                 public async Pk.Results remove_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1038                 [Version (since = "0.5.3")]
1039                 public Pk.Results remove_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool allow_deps, bool autoremove, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1040                 [NoWrapper]
1041                 public virtual void repair_question (uint request, Pk.Results results);
1042                 [CCode (finish_name = "pk_task_generic_finish")]
1043                 [Version (since = "0.7.2")]
1044                 public async Pk.Results repair_system_async (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1045                 [Version (since = "0.7.2")]
1046                 public Pk.Results repair_system_sync (GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1047                 [CCode (finish_name = "pk_task_generic_finish")]
1048                 [Version (since = "0.6.5")]
1049                 public async Pk.Results repo_enable_async (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1050                 [Version (since = "0.6.5")]
1051                 public Pk.Results repo_enable_sync (string repo_id, bool enabled, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1052                 [CCode (finish_name = "pk_task_generic_finish")]
1053                 [Version (since = "0.6.5")]
1054                 public async Pk.Results required_by_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1055                 [Version (since = "0.6.5")]
1056                 public Pk.Results required_by_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] package_ids, bool recursive, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1057                 [CCode (finish_name = "pk_task_generic_finish")]
1058                 [Version (since = "0.6.5")]
1059                 public async Pk.Results resolve_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1060                 [Version (since = "0.6.5")]
1061                 public Pk.Results resolve_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] packages, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1062                 [CCode (finish_name = "pk_task_generic_finish")]
1063                 [Version (since = "0.6.5")]
1064                 public async Pk.Results search_details_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1065                 [Version (since = "0.6.5")]
1066                 public Pk.Results search_details_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1067                 [CCode (finish_name = "pk_task_generic_finish")]
1068                 [Version (since = "0.6.5")]
1069                 public async Pk.Results search_files_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1070                 [Version (since = "0.6.5")]
1071                 public Pk.Results search_files_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1072                 [CCode (finish_name = "pk_task_generic_finish")]
1073                 [Version (since = "0.6.5")]
1074                 public async Pk.Results search_groups_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1075                 [Version (since = "0.6.5")]
1076                 public Pk.Results search_groups_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1077                 [CCode (finish_name = "pk_task_generic_finish")]
1078                 [Version (since = "0.6.5")]
1079                 public async Pk.Results search_names_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1080                 [Version (since = "0.6.5")]
1081                 public Pk.Results search_names_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1082                 [Version (since = "1.0.2")]
1083                 public void set_allow_downgrade (bool allow_downgrade);
1084                 [Version (since = "1.0.2")]
1085                 public void set_allow_reinstall (bool allow_reinstall);
1086                 [Version (since = "0.8.1")]
1087                 public void set_only_download (bool only_download);
1088                 [Version (since = "0.9.5")]
1089                 public void set_only_trusted (bool only_trusted);
1090                 [Version (since = "0.6.10")]
1091                 public void set_simulate (bool simulate);
1092                 [NoWrapper]
1093                 public virtual void simulate_question (uint request, Pk.Results results);
1094                 [NoWrapper]
1095                 public virtual void untrusted_question (uint request, Pk.Results results);
1096                 [CCode (finish_name = "pk_task_generic_finish")]
1097                 [Version (since = "0.5.2")]
1098                 public async Pk.Results update_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1099                 [Version (since = "0.5.3")]
1100                 public Pk.Results update_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1101                 [Version (since = "1.0.12")]
1102                 public async void upgrade_system_async (string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback);
1103                 [Version (since = "1.0.12")]
1104                 public Pk.Results upgrade_system_sync (string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1105                 [Version (since = "0.5.2")]
1106                 public bool user_accepted (uint request);
1107                 [Version (since = "0.5.2")]
1108                 public bool user_declined (uint request);
1109                 [CCode (finish_name = "pk_task_generic_finish")]
1110                 [Version (since = "0.6.5")]
1111                 public async Pk.Results what_provides_async (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1112                 [Version (since = "0.6.5")]
1113                 public Pk.Results what_provides_sync (Pk.Bitfield filters, [CCode (array_length = false, array_null_terminated = true)] string[] values, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
1114                 [Version (since = "1.0.2")]
1115                 public bool allow_downgrade { get; set; }
1116                 [Version (since = "1.0.2")]
1117                 public bool allow_reinstall { get; set; }
1118                 [Version (since = "0.8.1")]
1119                 public bool only_download { get; set; }
1120                 [Version (since = "0.9.5")]
1121                 public bool only_trusted { get; set; }
1122                 [Version (since = "0.5.2")]
1123                 public bool simulate { get; set; }
1124         }
1125         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_transaction_list_get_type ()")]
1126         public class TransactionList : GLib.Object {
1127                 [CCode (has_construct_function = false)]
1128                 [Version (since = "0.5.3")]
1129                 public TransactionList ();
1130                 [CCode (array_length = false, array_null_terminated = true)]
1131                 [Version (since = "0.5.3")]
1132                 public string[] get_ids ();
1133                 public virtual signal void added (string tid);
1134                 public virtual signal void removed (string tid);
1135         }
1136         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_transaction_past_get_type ()")]
1137         public class TransactionPast : Pk.Source {
1138                 [CCode (has_construct_function = false)]
1139                 [Version (since = "0.5.4")]
1140                 public TransactionPast ();
1141                 [Version (since = "0.8.11")]
1142                 public unowned string get_cmdline ();
1143                 [Version (since = "0.8.11")]
1144                 public unowned string get_data ();
1145                 [Version (since = "0.8.11")]
1146                 public GLib.DateTime get_datetime ();
1147                 [Version (since = "0.8.11")]
1148                 public uint get_duration ();
1149                 [Version (since = "0.8.11")]
1150                 public unowned string get_id ();
1151                 [Version (since = "0.8.11")]
1152                 public Pk.Role get_role ();
1153                 [Version (since = "0.8.11")]
1154                 public bool get_succeeded ();
1155                 [Version (since = "0.8.11")]
1156                 public unowned string get_timespec ();
1157                 [Version (since = "0.8.11")]
1158                 public int64 get_timestamp ();
1159                 [Version (since = "0.8.11")]
1160                 public uint get_uid ();
1161                 [NoAccessorMethod]
1162                 [Version (since = "0.5.4")]
1163                 public string cmdline { owned get; set; }
1164                 [NoAccessorMethod]
1165                 [Version (since = "0.5.4")]
1166                 public string data { owned get; set; }
1167                 [NoAccessorMethod]
1168                 [Version (since = "0.5.4")]
1169                 public uint duration { get; set; }
1170                 [NoAccessorMethod]
1171                 [Version (since = "0.5.4")]
1172                 public Pk.Role role { get; set; }
1173                 [NoAccessorMethod]
1174                 [Version (since = "0.5.4")]
1175                 public bool succeeded { get; set; }
1176                 [NoAccessorMethod]
1177                 [Version (since = "0.5.4")]
1178                 public string tid { owned get; set; }
1179                 [NoAccessorMethod]
1180                 [Version (since = "0.5.4")]
1181                 public string timespec { owned get; set; }
1182                 [NoAccessorMethod]
1183                 [Version (since = "0.5.4")]
1184                 public uint uid { get; set; }
1185         }
1186         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", type_id = "pk_update_detail_get_type ()")]
1187         public class UpdateDetail : Pk.Source {
1188                 [CCode (has_construct_function = false)]
1189                 [Version (since = "0.5.4")]
1190                 public UpdateDetail ();
1191                 [CCode (array_length = false, array_null_terminated = true)]
1192                 [Version (since = "0.8.8")]
1193                 public unowned string[] get_bugzilla_urls ();
1194                 [Version (since = "0.8.8")]
1195                 public unowned string get_changelog ();
1196                 [CCode (array_length = false, array_null_terminated = true)]
1197                 [Version (since = "0.8.8")]
1198                 public unowned string[] get_cve_urls ();
1199                 [Version (since = "0.8.8")]
1200                 public unowned string get_issued ();
1201                 [CCode (array_length = false, array_null_terminated = true)]
1202                 [Version (since = "0.8.8")]
1203                 public unowned string[] get_obsoletes ();
1204                 [Version (since = "0.8.8")]
1205                 public unowned string get_package_id ();
1206                 [Version (since = "0.8.8")]
1207                 public Pk.Restart get_restart ();
1208                 [Version (since = "0.8.8")]
1209                 public Pk.UpdateState get_state ();
1210                 [Version (since = "0.8.8")]
1211                 public unowned string get_update_text ();
1212                 [Version (since = "0.8.8")]
1213                 public unowned string get_updated ();
1214                 [CCode (array_length = false, array_null_terminated = true)]
1215                 [Version (since = "0.8.8")]
1216                 public unowned string[] get_updates ();
1217                 [CCode (array_length = false, array_null_terminated = true)]
1218                 [Version (since = "0.8.8")]
1219                 public unowned string[] get_vendor_urls ();
1220                 [CCode (array_length = false, array_null_terminated = true)]
1221                 [NoAccessorMethod]
1222                 [Version (since = "0.8.1")]
1223                 public string[] bugzilla_urls { owned get; set; }
1224                 [NoAccessorMethod]
1225                 [Version (since = "0.5.4")]
1226                 public string changelog { owned get; set; }
1227                 [CCode (array_length = false, array_null_terminated = true)]
1228                 [NoAccessorMethod]
1229                 [Version (since = "0.8.1")]
1230                 public string[] cve_urls { owned get; set; }
1231                 [NoAccessorMethod]
1232                 [Version (since = "0.5.4")]
1233                 public string issued { owned get; set; }
1234                 [CCode (array_length = false, array_null_terminated = true)]
1235                 [NoAccessorMethod]
1236                 [Version (since = "0.8.1")]
1237                 public string[] obsoletes { owned get; set; }
1238                 [NoAccessorMethod]
1239                 [Version (since = "0.5.4")]
1240                 public string package_id { owned get; set; }
1241                 [NoAccessorMethod]
1242                 [Version (since = "0.5.4")]
1243                 public Pk.Restart restart { get; set; }
1244                 [NoAccessorMethod]
1245                 [Version (since = "0.5.4")]
1246                 public Pk.UpdateState state { get; set; }
1247                 [NoAccessorMethod]
1248                 [Version (since = "0.5.4")]
1249                 public string update_text { owned get; set; }
1250                 [NoAccessorMethod]
1251                 [Version (since = "0.5.4")]
1252                 public string updated { owned get; set; }
1253                 [CCode (array_length = false, array_null_terminated = true)]
1254                 [NoAccessorMethod]
1255                 [Version (since = "0.8.1")]
1256                 public string[] updates { owned get; set; }
1257                 [CCode (array_length = false, array_null_terminated = true)]
1258                 [NoAccessorMethod]
1259                 [Version (since = "0.8.1")]
1260                 public string[] vendor_urls { owned get; set; }
1261         }
1262         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1263         [SimpleType]
1264         public struct Bitfield : uint64 {
1265                 [CCode (sentinel = "-1")]
1266                 [Version (since = "0.5.2")]
1267                 public int contain_priority (int value, ...);
1268                 [CCode (sentinel = "-1")]
1269                 [Version (since = "0.5.2")]
1270                 public static Pk.Bitfield from_enums (int value, ...);
1271         }
1272         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", has_type_id = false)]
1273         public struct EnumMatch {
1274                 public uint value;
1275                 public weak global::string string;
1276         }
1277         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkAuthorizeEnum", cprefix = "PK_AUTHORIZE_ENUM_", type_id = "pk_authorize_enum_get_type ()")]
1278         [GIR (name = "AuthorizeEnum")]
1279         public enum Authorize {
1280                 UNKNOWN,
1281                 YES,
1282                 NO,
1283                 INTERACTIVE,
1284                 LAST;
1285                 [Version (since = "0.5.0")]
1286                 public static Pk.Authorize type_enum_from_string (string authorize_type);
1287                 [Version (since = "0.5.0")]
1288                 public unowned string type_enum_to_string ();
1289         }
1290         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_DISTRO_UPGRADE_ENUM_", type_id = "pk_distro_upgrade_enum_get_type ()")]
1291         public enum DistroUpgradeEnum {
1292                 UNKNOWN,
1293                 STABLE,
1294                 UNSTABLE,
1295                 LAST;
1296                 [Version (since = "0.5.0")]
1297                 public static Pk.DistroUpgradeEnum from_string (string upgrade);
1298                 [Version (since = "0.5.0")]
1299                 public unowned string to_string ();
1300         }
1301         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_ERROR_ENUM_", type_id = "pk_error_enum_get_type ()")]
1302         public enum ErrorEnum {
1303                 UNKNOWN,
1304                 OOM,
1305                 NO_NETWORK,
1306                 NOT_SUPPORTED,
1307                 INTERNAL_ERROR,
1308                 GPG_FAILURE,
1309                 PACKAGE_ID_INVALID,
1310                 PACKAGE_NOT_INSTALLED,
1311                 PACKAGE_NOT_FOUND,
1312                 PACKAGE_ALREADY_INSTALLED,
1313                 PACKAGE_DOWNLOAD_FAILED,
1314                 GROUP_NOT_FOUND,
1315                 GROUP_LIST_INVALID,
1316                 DEP_RESOLUTION_FAILED,
1317                 FILTER_INVALID,
1318                 CREATE_THREAD_FAILED,
1319                 TRANSACTION_ERROR,
1320                 TRANSACTION_CANCELLED,
1321                 NO_CACHE,
1322                 REPO_NOT_FOUND,
1323                 CANNOT_REMOVE_SYSTEM_PACKAGE,
1324                 PROCESS_KILL,
1325                 FAILED_INITIALIZATION,
1326                 FAILED_FINALISE,
1327                 FAILED_CONFIG_PARSING,
1328                 CANNOT_CANCEL,
1329                 CANNOT_GET_LOCK,
1330                 NO_PACKAGES_TO_UPDATE,
1331                 CANNOT_WRITE_REPO_CONFIG,
1332                 LOCAL_INSTALL_FAILED,
1333                 BAD_GPG_SIGNATURE,
1334                 MISSING_GPG_SIGNATURE,
1335                 CANNOT_INSTALL_SOURCE_PACKAGE,
1336                 REPO_CONFIGURATION_ERROR,
1337                 NO_LICENSE_AGREEMENT,
1338                 FILE_CONFLICTS,
1339                 PACKAGE_CONFLICTS,
1340                 REPO_NOT_AVAILABLE,
1341                 INVALID_PACKAGE_FILE,
1342                 PACKAGE_INSTALL_BLOCKED,
1343                 PACKAGE_CORRUPT,
1344                 ALL_PACKAGES_ALREADY_INSTALLED,
1345                 FILE_NOT_FOUND,
1346                 NO_MORE_MIRRORS_TO_TRY,
1347                 NO_DISTRO_UPGRADE_DATA,
1348                 INCOMPATIBLE_ARCHITECTURE,
1349                 NO_SPACE_ON_DEVICE,
1350                 MEDIA_CHANGE_REQUIRED,
1351                 NOT_AUTHORIZED,
1352                 UPDATE_NOT_FOUND,
1353                 CANNOT_INSTALL_REPO_UNSIGNED,
1354                 CANNOT_UPDATE_REPO_UNSIGNED,
1355                 CANNOT_GET_FILELIST,
1356                 CANNOT_GET_REQUIRES,
1357                 CANNOT_DISABLE_REPOSITORY,
1358                 RESTRICTED_DOWNLOAD,
1359                 PACKAGE_FAILED_TO_CONFIGURE,
1360                 PACKAGE_FAILED_TO_BUILD,
1361                 PACKAGE_FAILED_TO_INSTALL,
1362                 PACKAGE_FAILED_TO_REMOVE,
1363                 UPDATE_FAILED_DUE_TO_RUNNING_PROCESS,
1364                 PACKAGE_DATABASE_CHANGED,
1365                 PROVIDE_TYPE_NOT_SUPPORTED,
1366                 INSTALL_ROOT_INVALID,
1367                 CANNOT_FETCH_SOURCES,
1368                 CANCELLED_PRIORITY,
1369                 UNFINISHED_TRANSACTION,
1370                 LOCK_REQUIRED,
1371                 REPO_ALREADY_SET,
1372                 LAST;
1373                 [Version (since = "0.5.0")]
1374                 public static Pk.ErrorEnum from_string (string code);
1375                 [Version (since = "0.5.0")]
1376                 public unowned string to_string ();
1377         }
1378         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkExitEnum", cprefix = "PK_EXIT_ENUM_", type_id = "pk_exit_enum_get_type ()")]
1379         [GIR (name = "ExitEnum")]
1380         public enum Exit {
1381                 UNKNOWN,
1382                 SUCCESS,
1383                 FAILED,
1384                 CANCELLED,
1385                 KEY_REQUIRED,
1386                 EULA_REQUIRED,
1387                 KILLED,
1388                 MEDIA_CHANGE_REQUIRED,
1389                 NEED_UNTRUSTED,
1390                 CANCELLED_PRIORITY,
1391                 SKIP_TRANSACTION,
1392                 REPAIR_REQUIRED,
1393                 LAST;
1394                 [Version (since = "0.5.0")]
1395                 public static Pk.Exit enum_from_string (string exit);
1396                 [Version (since = "0.5.0")]
1397                 public unowned string enum_to_string ();
1398         }
1399         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkFilterEnum", cprefix = "PK_FILTER_ENUM_", type_id = "pk_filter_enum_get_type ()")]
1400         [GIR (name = "FilterEnum")]
1401         public enum Filter {
1402                 UNKNOWN,
1403                 NONE,
1404                 INSTALLED,
1405                 NOT_INSTALLED,
1406                 DEVELOPMENT,
1407                 NOT_DEVELOPMENT,
1408                 GUI,
1409                 NOT_GUI,
1410                 FREE,
1411                 NOT_FREE,
1412                 VISIBLE,
1413                 NOT_VISIBLE,
1414                 SUPPORTED,
1415                 NOT_SUPPORTED,
1416                 BASENAME,
1417                 NOT_BASENAME,
1418                 NEWEST,
1419                 NOT_NEWEST,
1420                 ARCH,
1421                 NOT_ARCH,
1422                 SOURCE,
1423                 NOT_SOURCE,
1424                 COLLECTIONS,
1425                 NOT_COLLECTIONS,
1426                 APPLICATION,
1427                 NOT_APPLICATION,
1428                 DOWNLOADED,
1429                 NOT_DOWNLOADED,
1430                 LAST;
1431                 [Version (since = "0.5.2")]
1432                 public static Pk.Bitfield bitfield_from_string (string filters);
1433                 [Version (since = "0.5.2")]
1434                 public static string bitfield_to_string (Pk.Bitfield filters);
1435                 [Version (since = "0.5.0")]
1436                 public static Pk.Filter enum_from_string (string filter);
1437                 [Version (since = "0.5.0")]
1438                 public unowned string enum_to_string ();
1439         }
1440         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkGroupEnum", cprefix = "PK_GROUP_ENUM_", type_id = "pk_group_enum_get_type ()")]
1441         [GIR (name = "GroupEnum")]
1442         public enum Group {
1443                 UNKNOWN,
1444                 ACCESSIBILITY,
1445                 ACCESSORIES,
1446                 ADMIN_TOOLS,
1447                 COMMUNICATION,
1448                 DESKTOP_GNOME,
1449                 DESKTOP_KDE,
1450                 DESKTOP_OTHER,
1451                 DESKTOP_XFCE,
1452                 EDUCATION,
1453                 FONTS,
1454                 GAMES,
1455                 GRAPHICS,
1456                 INTERNET,
1457                 LEGACY,
1458                 LOCALIZATION,
1459                 MAPS,
1460                 MULTIMEDIA,
1461                 NETWORK,
1462                 OFFICE,
1463                 OTHER,
1464                 POWER_MANAGEMENT,
1465                 PROGRAMMING,
1466                 PUBLISHING,
1467                 REPOS,
1468                 SECURITY,
1469                 SERVERS,
1470                 SYSTEM,
1471                 VIRTUALIZATION,
1472                 SCIENCE,
1473                 DOCUMENTATION,
1474                 ELECTRONICS,
1475                 COLLECTIONS,
1476                 VENDOR,
1477                 NEWEST,
1478                 LAST;
1479                 [Version (since = "0.5.2")]
1480                 public static Pk.Bitfield bitfield_from_string (string groups);
1481                 [Version (since = "0.5.2")]
1482                 public static string bitfield_to_string (Pk.Bitfield groups);
1483                 [Version (since = "0.5.0")]
1484                 public static Pk.Group enum_from_string (string group);
1485                 [Version (since = "0.5.0")]
1486                 public unowned string enum_to_string ();
1487         }
1488         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkInfoEnum", cprefix = "PK_INFO_ENUM_", type_id = "pk_info_enum_get_type ()")]
1489         [GIR (name = "InfoEnum")]
1490         public enum Info {
1491                 UNKNOWN,
1492                 INSTALLED,
1493                 AVAILABLE,
1494                 LOW,
1495                 ENHANCEMENT,
1496                 NORMAL,
1497                 BUGFIX,
1498                 IMPORTANT,
1499                 SECURITY,
1500                 BLOCKED,
1501                 DOWNLOADING,
1502                 UPDATING,
1503                 INSTALLING,
1504                 REMOVING,
1505                 CLEANUP,
1506                 OBSOLETING,
1507                 COLLECTION_INSTALLED,
1508                 COLLECTION_AVAILABLE,
1509                 FINISHED,
1510                 REINSTALLING,
1511                 DOWNGRADING,
1512                 PREPARING,
1513                 DECOMPRESSING,
1514                 UNTRUSTED,
1515                 TRUSTED,
1516                 UNAVAILABLE,
1517                 LAST;
1518                 [Version (since = "0.5.0")]
1519                 public static Pk.Info enum_from_string (string info);
1520                 [Version (since = "0.7.2")]
1521                 public unowned string enum_to_localised_past ();
1522                 [Version (since = "0.7.2")]
1523                 public unowned string enum_to_localised_present ();
1524                 [Version (since = "0.5.0")]
1525                 public unowned string enum_to_string ();
1526         }
1527         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkMediaTypeEnum", cprefix = "PK_MEDIA_TYPE_ENUM_", type_id = "pk_media_type_enum_get_type ()")]
1528         [GIR (name = "MediaTypeEnum")]
1529         public enum MediaType {
1530                 UNKNOWN,
1531                 CD,
1532                 DVD,
1533                 DISC,
1534                 LAST;
1535                 [Version (since = "0.5.0")]
1536                 public static Pk.MediaType enum_from_string (string media_type);
1537                 [Version (since = "0.5.0")]
1538                 public unowned string enum_to_string ();
1539         }
1540         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkNetworkEnum", cprefix = "PK_NETWORK_ENUM_", type_id = "pk_network_enum_get_type ()")]
1541         [GIR (name = "NetworkEnum")]
1542         public enum Network {
1543                 UNKNOWN,
1544                 OFFLINE,
1545                 ONLINE,
1546                 WIRED,
1547                 WIFI,
1548                 MOBILE,
1549                 LAST;
1550                 [Version (since = "0.5.0")]
1551                 public static Pk.Network enum_from_string (string network);
1552                 [Version (since = "0.5.0")]
1553                 public unowned string enum_to_string ();
1554         }
1555         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_OFFLINE_ACTION_", type_id = "pk_offline_action_get_type ()")]
1556         public enum OfflineAction {
1557                 UNKNOWN,
1558                 REBOOT,
1559                 POWER_OFF,
1560                 UNSET,
1561                 LAST;
1562                 [Version (since = "0.9.6")]
1563                 public static Pk.OfflineAction from_string (string action);
1564                 [Version (since = "0.9.6")]
1565                 public unowned string to_string ();
1566         }
1567         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PACKAGE_SACK_SORT_TYPE_", type_id = "pk_package_sack_sort_type_get_type ()")]
1568         public enum PackageSackSortType {
1569                 NAME,
1570                 INFO,
1571                 PACKAGE_ID,
1572                 SUMMARY,
1573                 LAST
1574         }
1575         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_PROGRESS_TYPE_", type_id = "pk_progress_type_get_type ()")]
1576         public enum ProgressType {
1577                 PACKAGE_ID,
1578                 TRANSACTION_ID,
1579                 PERCENTAGE,
1580                 ALLOW_CANCEL,
1581                 STATUS,
1582                 ROLE,
1583                 CALLER_ACTIVE,
1584                 ELAPSED_TIME,
1585                 REMAINING_TIME,
1586                 SPEED,
1587                 DOWNLOAD_SIZE_REMAINING,
1588                 UID,
1589                 PACKAGE,
1590                 ITEM_PROGRESS,
1591                 TRANSACTION_FLAGS,
1592                 INVALID
1593         }
1594         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkRestartEnum", cprefix = "PK_RESTART_ENUM_", type_id = "pk_restart_enum_get_type ()")]
1595         [GIR (name = "RestartEnum")]
1596         public enum Restart {
1597                 UNKNOWN,
1598                 NONE,
1599                 APPLICATION,
1600                 SESSION,
1601                 SYSTEM,
1602                 SECURITY_SESSION,
1603                 SECURITY_SYSTEM,
1604                 LAST;
1605                 [Version (since = "0.5.0")]
1606                 public static Pk.Restart enum_from_string (string restart);
1607                 [Version (since = "0.5.0")]
1608                 public unowned string enum_to_string ();
1609         }
1610         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkRoleEnum", cprefix = "PK_ROLE_ENUM_", type_id = "pk_role_enum_get_type ()")]
1611         [GIR (name = "RoleEnum")]
1612         public enum Role {
1613                 UNKNOWN,
1614                 CANCEL,
1615                 DEPENDS_ON,
1616                 GET_DETAILS,
1617                 GET_FILES,
1618                 GET_PACKAGES,
1619                 GET_REPO_LIST,
1620                 REQUIRED_BY,
1621                 GET_UPDATE_DETAIL,
1622                 GET_UPDATES,
1623                 INSTALL_FILES,
1624                 INSTALL_PACKAGES,
1625                 INSTALL_SIGNATURE,
1626                 REFRESH_CACHE,
1627                 REMOVE_PACKAGES,
1628                 REPO_ENABLE,
1629                 REPO_SET_DATA,
1630                 RESOLVE,
1631                 SEARCH_DETAILS,
1632                 SEARCH_FILE,
1633                 SEARCH_GROUP,
1634                 SEARCH_NAME,
1635                 UPDATE_PACKAGES,
1636                 WHAT_PROVIDES,
1637                 ACCEPT_EULA,
1638                 DOWNLOAD_PACKAGES,
1639                 GET_DISTRO_UPGRADES,
1640                 GET_CATEGORIES,
1641                 GET_OLD_TRANSACTIONS,
1642                 REPAIR_SYSTEM,
1643                 GET_DETAILS_LOCAL,
1644                 GET_FILES_LOCAL,
1645                 REPO_REMOVE,
1646                 UPGRADE_SYSTEM,
1647                 LAST;
1648                 [Version (since = "0.5.2")]
1649                 public static Pk.Bitfield bitfield_from_string (string roles);
1650                 [Version (since = "0.5.2")]
1651                 public static string bitfield_to_string (Pk.Bitfield roles);
1652                 [Version (since = "0.5.0")]
1653                 public static Pk.Role enum_from_string (string role);
1654                 [Version (since = "0.7.2")]
1655                 public unowned string enum_to_localised_present ();
1656                 [Version (since = "0.5.0")]
1657                 public unowned string enum_to_string ();
1658         }
1659         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkSigTypeEnum", cprefix = "PK_SIGTYPE_ENUM_", type_id = "pk_sig_type_enum_get_type ()")]
1660         [GIR (name = "SigTypeEnum")]
1661         public enum SigType {
1662                 UNKNOWN,
1663                 GPG,
1664                 LAST;
1665                 public static Pk.SigType enum_from_string (string sig_type);
1666                 [Version (since = "0.5.0")]
1667                 public unowned string enum_to_string ();
1668         }
1669         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkStatusEnum", cprefix = "PK_STATUS_ENUM_", type_id = "pk_status_enum_get_type ()")]
1670         [GIR (name = "StatusEnum")]
1671         public enum Status {
1672                 UNKNOWN,
1673                 WAIT,
1674                 SETUP,
1675                 RUNNING,
1676                 QUERY,
1677                 INFO,
1678                 REMOVE,
1679                 REFRESH_CACHE,
1680                 DOWNLOAD,
1681                 INSTALL,
1682                 UPDATE,
1683                 CLEANUP,
1684                 OBSOLETE,
1685                 DEP_RESOLVE,
1686                 SIG_CHECK,
1687                 TEST_COMMIT,
1688                 COMMIT,
1689                 REQUEST,
1690                 FINISHED,
1691                 CANCEL,
1692                 DOWNLOAD_REPOSITORY,
1693                 DOWNLOAD_PACKAGELIST,
1694                 DOWNLOAD_FILELIST,
1695                 DOWNLOAD_CHANGELOG,
1696                 DOWNLOAD_GROUP,
1697                 DOWNLOAD_UPDATEINFO,
1698                 REPACKAGING,
1699                 LOADING_CACHE,
1700                 SCAN_APPLICATIONS,
1701                 GENERATE_PACKAGE_LIST,
1702                 WAITING_FOR_LOCK,
1703                 WAITING_FOR_AUTH,
1704                 SCAN_PROCESS_LIST,
1705                 CHECK_EXECUTABLE_FILES,
1706                 CHECK_LIBRARIES,
1707                 COPY_FILES,
1708                 RUN_HOOK,
1709                 LAST;
1710                 [Version (since = "0.5.0")]
1711                 public static Pk.Status enum_from_string (string status);
1712                 public unowned string enum_to_localised_text ();
1713                 [Version (since = "0.5.0")]
1714                 public unowned string enum_to_string ();
1715         }
1716         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkTransactionFlagEnum", cprefix = "PK_TRANSACTION_FLAG_ENUM_", type_id = "pk_transaction_flag_enum_get_type ()")]
1717         [GIR (name = "TransactionFlagEnum")]
1718         public enum TransactionFlag {
1719                 NONE,
1720                 ONLY_TRUSTED,
1721                 SIMULATE,
1722                 ONLY_DOWNLOAD,
1723                 ALLOW_REINSTALL,
1724                 JUST_REINSTALL,
1725                 ALLOW_DOWNGRADE,
1726                 LAST;
1727                 [Version (since = "0.8.1")]
1728                 public static Pk.Bitfield bitfield_from_string (string transaction_flags);
1729                 [Version (since = "0.8.1")]
1730                 public static string bitfield_to_string (Pk.Bitfield transaction_flags);
1731                 [Version (since = "0.8.1")]
1732                 public static Pk.TransactionFlag enum_from_string (string transaction_flag);
1733                 [Version (since = "0.8.1")]
1734                 public unowned string enum_to_string ();
1735         }
1736         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkUpdateStateEnum", cprefix = "PK_UPDATE_STATE_ENUM_", type_id = "pk_update_state_enum_get_type ()")]
1737         [GIR (name = "UpdateStateEnum")]
1738         public enum UpdateState {
1739                 UNKNOWN,
1740                 STABLE,
1741                 UNSTABLE,
1742                 TESTING,
1743                 LAST;
1744                 [Version (since = "0.5.0")]
1745                 public static Pk.UpdateState enum_from_string (string update_state);
1746                 [Version (since = "0.5.0")]
1747                 public unowned string enum_to_string ();
1748         }
1749         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PkUpgradeKindEnum", cprefix = "PK_UPGRADE_KIND_ENUM_", type_id = "pk_upgrade_kind_enum_get_type ()")]
1750         [GIR (name = "UpgradeKindEnum")]
1751         public enum UpgradeKind {
1752                 UNKNOWN,
1753                 MINIMAL,
1754                 DEFAULT,
1755                 COMPLETE,
1756                 LAST;
1757                 [Version (since = "0.6.11")]
1758                 public static Pk.UpgradeKind enum_from_string (string upgrade_kind);
1759                 [Version (since = "0.6.11")]
1760                 public unowned string enum_to_string ();
1761         }
1762         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_CLIENT_ERROR_")]
1763         public errordomain ClientError {
1764                 FAILED,
1765                 FAILED_AUTH,
1766                 NO_TID,
1767                 ALREADY_TID,
1768                 ROLE_UNKNOWN,
1769                 CANNOT_START_DAEMON,
1770                 INVALID_INPUT,
1771                 INVALID_FILE,
1772                 NOT_SUPPORTED,
1773                 DECLINED_SIMULATION,
1774                 LAST;
1775                 [Version (since = "0.5.2")]
1776                 public static GLib.Quark quark ();
1777         }
1778         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_CONTROL_ERROR_")]
1779         public errordomain ControlError {
1780                 FAILED,
1781                 CANNOT_START_DAEMON;
1782                 [Version (since = "0.5.2")]
1783                 public static GLib.Quark quark ();
1784         }
1785         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cprefix = "PK_OFFLINE_ERROR_")]
1786         public errordomain OfflineError {
1787                 FAILED,
1788                 INVALID_VALUE,
1789                 NO_DATA,
1790                 LAST;
1791                 [Version (since = "0.9.6")]
1792                 public static GLib.Quark quark ();
1793         }
1794         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", instance_pos = 1.9)]
1795         public delegate bool PackageSackFilterFunc (Pk.Package package);
1796         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", instance_pos = 2.9)]
1797         public delegate void ProgressCallback (Pk.Progress progress, Pk.ProgressType type);
1798         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_DBUS_INTERFACE")]
1799         public const string DBUS_INTERFACE;
1800         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_DBUS_INTERFACE_OFFLINE")]
1801         public const string DBUS_INTERFACE_OFFLINE;
1802         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_DBUS_INTERFACE_TRANSACTION")]
1803         public const string DBUS_INTERFACE_TRANSACTION;
1804         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_DBUS_PATH")]
1805         public const string DBUS_PATH;
1806         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_DBUS_SERVICE")]
1807         public const string DBUS_SERVICE;
1808         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_DESKTOP_DEFAULT_APPLICATION_DIR")]
1809         public const string DESKTOP_DEFAULT_APPLICATION_DIR;
1810         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_MAJOR_VERSION")]
1811         public const int MAJOR_VERSION;
1812         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_MICRO_VERSION")]
1813         public const int MICRO_VERSION;
1814         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_MINOR_VERSION")]
1815         public const int MINOR_VERSION;
1816         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_OFFLINE_DESTDIR")]
1817         public const string OFFLINE_DESTDIR;
1818         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_OFFLINE_RESULTS_GROUP")]
1819         public const string OFFLINE_RESULTS_GROUP;
1820         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_PACKAGE_IDS_DELIM")]
1821         public const string PACKAGE_IDS_DELIM;
1822         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_PACKAGE_ID_ARCH")]
1823         public const int PACKAGE_ID_ARCH;
1824         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_PACKAGE_ID_DATA")]
1825         public const int PACKAGE_ID_DATA;
1826         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_PACKAGE_ID_NAME")]
1827         public const int PACKAGE_ID_NAME;
1828         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_PACKAGE_ID_VERSION")]
1829         public const int PACKAGE_ID_VERSION;
1830         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_SYSTEM_PACKAGE_CACHE_FILENAME")]
1831         public const string SYSTEM_PACKAGE_CACHE_FILENAME;
1832         [CCode (cheader_filename = "packagekit-glib2/packagekit.h", cname = "PK_SYSTEM_PACKAGE_LIST_FILENAME")]
1833         public const string SYSTEM_PACKAGE_LIST_FILENAME;
1834         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1835         public static void debug_add_log_domain (string log_domain);
1836         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1837         public static bool debug_is_verbose ();
1838         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1839         public static void debug_set_verbose (bool verbose);
1840         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1841         public static unowned string enum_find_string (Pk.EnumMatch table, uint value);
1842         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1843         public static uint enum_find_value (Pk.EnumMatch table, string string);
1844         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1845         public static string get_distro_id ();
1846         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1847         [Version (since = "0.5.2")]
1848         public static string iso8601_from_date (GLib.Date date);
1849         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1850         [Version (since = "0.5.2")]
1851         public static string iso8601_present ();
1852         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1853         public static bool offline_auth_cancel () throws GLib.Error;
1854         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1855         public static bool offline_auth_clear_results () throws GLib.Error;
1856         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1857         public static bool offline_auth_invalidate () throws GLib.Error;
1858         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1859         public static bool offline_auth_set_action (Pk.OfflineAction action) throws GLib.Error;
1860         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1861         public static bool offline_auth_set_prepared_ids (string package_ids) throws GLib.Error;
1862         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1863         public static bool offline_auth_set_prepared_upgrade (string name, string release_ver) throws GLib.Error;
1864         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1865         public static bool offline_auth_set_results (Pk.Results results) throws GLib.Error;
1866         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1867         public static bool offline_auth_trigger (Pk.OfflineAction action) throws GLib.Error;
1868         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1869         public static bool offline_auth_trigger_upgrade (Pk.OfflineAction action) throws GLib.Error;
1870         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1871         [Version (since = "0.9.6")]
1872         public static bool offline_cancel (GLib.Cancellable? cancellable = null) throws GLib.Error;
1873         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1874         [Version (since = "0.9.6")]
1875         public static bool offline_clear_results (GLib.Cancellable? cancellable = null) throws GLib.Error;
1876         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1877         [Version (since = "0.9.6")]
1878         public static Pk.OfflineAction offline_get_action () throws GLib.Error;
1879         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1880         [Version (since = "0.9.6")]
1881         public static GLib.FileMonitor offline_get_action_monitor (GLib.Cancellable? cancellable = null) throws GLib.Error;
1882         [CCode (array_length = false, array_null_terminated = true, cheader_filename = "packagekit-glib2/packagekit.h")]
1883         [Version (since = "0.9.6")]
1884         public static string[] offline_get_prepared_ids () throws GLib.Error;
1885         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1886         [Version (since = "0.9.6")]
1887         public static GLib.FileMonitor offline_get_prepared_monitor (GLib.Cancellable? cancellable = null) throws GLib.Error;
1888         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1889         [Version (since = "0.9.6")]
1890         public static Pk.PackageSack offline_get_prepared_sack () throws GLib.Error;
1891         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1892         [Version (since = "1.0.12")]
1893         public static GLib.FileMonitor offline_get_prepared_upgrade_monitor (GLib.Cancellable? cancellable = null) throws GLib.Error;
1894         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1895         [Version (since = "1.1.2")]
1896         public static string offline_get_prepared_upgrade_name () throws GLib.Error;
1897         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1898         [Version (since = "1.0.12")]
1899         public static string offline_get_prepared_upgrade_version () throws GLib.Error;
1900         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1901         [Version (since = "0.9.6")]
1902         public static Pk.Results offline_get_results () throws GLib.Error;
1903         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1904         [Version (since = "0.9.6")]
1905         public static uint64 offline_get_results_mtime () throws GLib.Error;
1906         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1907         [Version (since = "0.9.6")]
1908         public static bool offline_trigger (Pk.OfflineAction action, GLib.Cancellable? cancellable = null) throws GLib.Error;
1909         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1910         [Version (since = "1.0.12")]
1911         public static bool offline_trigger_upgrade (Pk.OfflineAction action, GLib.Cancellable? cancellable = null) throws GLib.Error;
1912         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1913         public static void polkit_agent_close ();
1914         [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
1915         public static int polkit_agent_open ();
1916         [CCode (array_length = false, array_null_terminated = true, cheader_filename = "packagekit-glib2/packagekit.h")]
1917         [Version (since = "0.5.2")]
1918         public static string[] ptr_array_to_strv (GLib.GenericArray<string> array);