gio-2.0: "address" parameter of Socket.receive_message() is optional
[vala-gnome.git] / vapi / liboobs-1.vapi
blob99e576cbfb023b09285f2998c8402c981f2ae931
1 /* liboobs-1.vapi generated by vapigen, do not modify. */
3 namespace Oobs {
4         [CCode (cheader_filename = "oobs/oobs.h")]
5         public class Group : Oobs.Object {
6                 [CCode (has_construct_function = false)]
7                 public Group (string name);
8                 public void add_user (Oobs.User user);
9                 public void clear_users ();
10                 public long get_gid ();
11                 public unowned string get_name ();
12                 public unowned GLib.List get_users ();
13                 public bool is_root ();
14                 public void remove_user (Oobs.User user);
15                 public void set_gid (long gid);
16                 public void set_password (string password);
17                 public uint gid { get; set; }
18                 public string name { get; construct; }
19                 [NoAccessorMethod]
20                 public string password { owned get; set; }
21         }
22         [CCode (cheader_filename = "oobs/oobs.h")]
23         public class GroupsConfig : Oobs.Object {
24                 [CCode (has_construct_function = false)]
25                 protected GroupsConfig ();
26                 public Oobs.Result add_group (Oobs.Group group);
27                 public Oobs.Result delete_group (Oobs.Group group);
28                 public long find_free_gid (long gid_min, long gid_max);
29                 public static unowned Oobs.Object @get ();
30                 public unowned Oobs.Group get_from_gid (long gid);
31                 public unowned Oobs.Group get_from_name (string name);
32                 public unowned Oobs.List get_groups ();
33                 public bool is_gid_used (long gid);
34                 public bool is_name_used (string name);
35                 [NoAccessorMethod]
36                 public int maximum_gid { get; set; }
37                 [NoAccessorMethod]
38                 public int minimum_gid { get; set; }
39         }
40         [CCode (cheader_filename = "oobs/oobs.h")]
41         public class HostsConfig : Oobs.Object {
42                 [CCode (has_construct_function = false)]
43                 protected HostsConfig ();
44                 public static unowned Oobs.Object @get ();
45                 public unowned GLib.List get_dns_servers ();
46                 public unowned string get_domainname ();
47                 public unowned string get_hostname ();
48                 public unowned GLib.List get_search_domains ();
49                 public unowned Oobs.List get_static_hosts ();
50                 public void set_dns_servers (GLib.List dns_list);
51                 public void set_domainname (string domainname);
52                 public void set_hostname (string hostname);
53                 public void set_search_domains (GLib.List search_domains_list);
54         }
55         [CCode (cheader_filename = "oobs/oobs.h")]
56         public class Iface : GLib.Object {
57                 [CCode (has_construct_function = false)]
58                 protected Iface ();
59                 public bool get_active ();
60                 public bool get_auto ();
61                 public bool get_configured ();
62                 public unowned string get_device_name ();
63                 public virtual bool has_gateway ();
64                 [NoWrapper]
65                 public virtual bool is_configured ();
66                 public void set_active (bool is_active);
67                 public void set_auto (bool is_auto);
68                 public void set_configured (bool is_configured);
69                 public bool active { get; set; }
70                 public bool auto { get; set; }
71                 public bool configured { get; set; }
72                 [NoAccessorMethod]
73                 public string device { owned get; construct; }
74                 public virtual signal void state_changed ();
75         }
76         [CCode (cheader_filename = "oobs/oobs.h")]
77         public class IfaceEthernet : Oobs.Iface {
78                 [CCode (has_construct_function = false)]
79                 protected IfaceEthernet ();
80                 public unowned string get_broadcast_address ();
81                 public unowned string get_configuration_method ();
82                 public unowned string get_gateway_address ();
83                 public unowned string get_ip_address ();
84                 public unowned string get_network_address ();
85                 public unowned string get_network_mask ();
86                 public void set_broadcast_address (string address);
87                 public void set_configuration_method (string method);
88                 public void set_gateway_address (string address);
89                 public void set_ip_address (string address);
90                 public void set_network_address (string address);
91                 public void set_network_mask (string mask);
92                 public string broadcast_address { get; set; }
93                 [NoAccessorMethod]
94                 public string config_method { owned get; set; }
95                 public string gateway_address { get; set; }
96                 public string ip_address { get; set; }
97                 [NoAccessorMethod]
98                 public string ip_mask { owned get; set; }
99                 public string network_address { get; set; }
100         }
101         [CCode (cheader_filename = "oobs/oobs.h")]
102         public class IfaceIRLan : Oobs.IfaceEthernet {
103                 [CCode (has_construct_function = false)]
104                 protected IfaceIRLan ();
105         }
106         [CCode (cheader_filename = "oobs/oobs.h")]
107         public class IfacePPP : Oobs.Iface {
108                 [CCode (has_construct_function = false)]
109                 protected IfacePPP ();
110                 public unowned string get_apn ();
111                 public unowned string get_connection_type ();
112                 public bool get_default_gateway ();
113                 public Oobs.DialType get_dial_type ();
114                 public unowned Oobs.IfaceEthernet get_ethernet ();
115                 public unowned string get_login ();
116                 public bool get_peer_noauth ();
117                 public bool get_persistent ();
118                 public unowned string get_phone_number ();
119                 public unowned string get_phone_prefix ();
120                 public unowned string get_serial_port ();
121                 public bool get_use_peer_dns ();
122                 public Oobs.ModemVolume get_volume ();
123                 public void set_apn (string apn);
124                 public void set_connection_type (string type);
125                 public void set_default_gateway (bool default_gw);
126                 public void set_dial_type (Oobs.DialType dial_type);
127                 public void set_ethernet (Oobs.IfaceEthernet ethernet);
128                 public void set_login (string login);
129                 public void set_password (string password);
130                 public void set_peer_noauth (bool use_peer_dns);
131                 public void set_persistent (bool persistent);
132                 public void set_phone_number (string phone_number);
133                 public void set_phone_prefix (string phone_prefix);
134                 public void set_serial_port (string serial_port);
135                 public void set_use_peer_dns (bool use_peer_dns);
136                 public void set_volume (Oobs.ModemVolume volume);
137                 public string apn { get; set; }
138                 public string connection_type { get; set; }
139                 public bool default_gateway { get; set; }
140                 public Oobs.DialType dial_type { get; set; }
141                 public Oobs.IfaceEthernet ethernet { get; set; }
142                 [NoAccessorMethod]
143                 public string iface_section { owned get; set; }
144                 public string login { get; set; }
145                 [NoAccessorMethod]
146                 public string password { owned get; set; }
147                 public bool peer_noauth { get; set; }
148                 public bool persistent { get; set; }
149                 public string phone_number { get; set; }
150                 public string phone_prefix { get; set; }
151                 public string serial_port { get; set; }
152                 public bool use_peer_dns { get; set; }
153                 public Oobs.ModemVolume volume { get; set; }
154         }
155         [CCode (cheader_filename = "oobs/oobs.h")]
156         public class IfacePlip : Oobs.Iface {
157                 [CCode (has_construct_function = false)]
158                 protected IfacePlip ();
159                 public unowned string get_address ();
160                 public unowned string get_remote_address ();
161                 public void set_address (string address);
162                 public void set_remote_address (string address);
163                 public string address { get; set; }
164                 public string remote_address { get; set; }
165         }
166         [CCode (cheader_filename = "oobs/oobs.h")]
167         public class IfaceWireless : Oobs.IfaceEthernet {
168                 [CCode (has_construct_function = false)]
169                 protected IfaceWireless ();
170                 public unowned string get_essid ();
171                 public unowned string get_key ();
172                 public unowned string get_key_type ();
173                 public void set_essid (string essid);
174                 public void set_key (string key);
175                 public void set_key_type (string key_type);
176                 public string essid { get; set; }
177                 public string key { get; set; }
178                 public string key_type { get; set; }
179         }
180         [CCode (cheader_filename = "oobs/oobs.h")]
181         public class IfacesConfig : Oobs.Object {
182                 [CCode (has_construct_function = false)]
183                 protected IfacesConfig ();
184                 public static unowned Oobs.Object @get ();
185                 public unowned GLib.List get_available_configuration_methods ();
186                 public unowned GLib.List get_available_key_types ();
187                 public unowned GLib.List get_available_ppp_types ();
188                 public unowned Oobs.List get_ifaces (Oobs.IfaceType type);
189         }
190         [CCode (cheader_filename = "oobs/oobs.h")]
191         public class List : GLib.Object {
192                 [CCode (has_construct_function = false)]
193                 protected List ();
194                 public void append (Oobs.ListIter iter);
195                 public void clear ();
196                 public unowned GLib.Object @get (Oobs.ListIter iter);
197                 public bool get_iter_first (Oobs.ListIter iter);
198                 public int get_n_items ();
199                 public void insert_after (Oobs.ListIter anchor, Oobs.ListIter iter);
200                 public void insert_before (Oobs.ListIter anchor, Oobs.ListIter iter);
201                 public void prepend (Oobs.ListIter iter);
202                 public bool remove (Oobs.ListIter iter);
203                 public void @set (Oobs.ListIter iter, void* data);
204                 public void* contained_type { construct; }
205         }
206         [CCode (cheader_filename = "oobs/oobs.h", copy_function = "oobs_list_iter_copy", type_id = "oobs_list_iter_get_type ()")]
207         [Compact]
208         public class ListIter {
209                 public void* data;
210                 public uint stamp;
211                 public Oobs.ListIter copy ();
212                 public static bool next (Oobs.List list, Oobs.ListIter iter);
213         }
214         [CCode (cheader_filename = "oobs/oobs.h")]
215         public class NFSConfig : Oobs.Object {
216                 [CCode (has_construct_function = false)]
217                 protected NFSConfig ();
218                 public static unowned Oobs.Object @get ();
219                 public unowned Oobs.List get_shares ();
220         }
221         [CCode (cheader_filename = "oobs/oobs.h")]
222         public class NTPConfig : Oobs.Object {
223                 [CCode (has_construct_function = false)]
224                 protected NTPConfig ();
225                 public static unowned Oobs.Object @get ();
226                 public unowned Oobs.List get_servers ();
227         }
228         [CCode (cheader_filename = "oobs/oobs.h")]
229         public class NTPServer : GLib.Object {
230                 [CCode (has_construct_function = false)]
231                 public NTPServer (string hostname);
232                 public unowned string get_hostname ();
233                 public void set_hostname (string hostname);
234                 public string hostname { get; set; }
235         }
236         [CCode (cheader_filename = "oobs/oobs.h")]
237         public class Object : GLib.Object {
238                 [CCode (has_construct_function = false)]
239                 protected Object ();
240                 public Oobs.Result add ();
241                 public Oobs.Result add_async (Oobs.ObjectAsyncFunc func, void* data);
242                 public bool authenticate () throws GLib.Error;
243                 public virtual void commit ();
244                 public Oobs.Result commit_async (Oobs.ObjectAsyncFunc func, void* data);
245                 public Oobs.Result @delete ();
246                 public Oobs.Result delete_async (Oobs.ObjectAsyncFunc func, void* data);
247                 public void ensure_update ();
248                 [NoWrapper]
249                 public virtual void get_update_message ();
250                 public bool has_updated ();
251                 public void process_requests ();
252                 public virtual void update ();
253                 public Oobs.Result update_async (Oobs.ObjectAsyncFunc func, void* data);
254                 public string remote_object { construct; }
255                 public virtual signal void changed ();
256                 public virtual signal void committed ();
257                 public virtual signal void updated ();
258         }
259         [CCode (cheader_filename = "oobs/oobs.h")]
260         [Compact]
261         public class Platform {
262                 public weak string codename;
263                 public weak string id;
264                 public weak string name;
265                 public weak string version;
266         }
267         [CCode (cheader_filename = "oobs/oobs.h")]
268         public class SMBConfig : Oobs.Object {
269                 [CCode (has_construct_function = false)]
270                 protected SMBConfig ();
271                 public void delete_user_password (Oobs.User user);
272                 public static unowned Oobs.Object @get ();
273                 public unowned string get_description ();
274                 public bool get_is_wins_server ();
275                 public unowned Oobs.List get_shares ();
276                 public unowned string get_wins_server ();
277                 public unowned string get_workgroup ();
278                 public void set_description (string description);
279                 public void set_is_wins_server (bool is_wins_server);
280                 public void set_user_password (Oobs.User user, string password);
281                 public void set_wins_server (string wins_server);
282                 public void set_workgroup (string workgroup);
283                 public bool user_has_password (Oobs.User user);
284                 public string description { get; set; }
285                 public bool is_wins_server { get; set; }
286                 public string wins_server { get; set; }
287                 public string workgroup { get; set; }
288         }
289         [CCode (cheader_filename = "oobs/oobs.h")]
290         public class SelfConfig : Oobs.Object {
291                 [CCode (has_construct_function = false)]
292                 protected SelfConfig ();
293                 public static unowned Oobs.Object @get ();
294                 public unowned Oobs.User get_user ();
295                 public bool is_user_self (Oobs.User user);
296         }
297         [CCode (cheader_filename = "oobs/oobs.h")]
298         public class Service : Oobs.Object {
299                 [CCode (has_construct_function = false)]
300                 protected Service ();
301                 public unowned string get_name ();
302                 public void get_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
303                 public void set_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
304                 public string name { get; construct; }
305         }
306         [CCode (cheader_filename = "oobs/oobs.h")]
307         public class ServicesConfig : Oobs.Object {
308                 [CCode (has_construct_function = false)]
309                 protected ServicesConfig ();
310                 public static unowned Oobs.Object @get ();
311                 public unowned Oobs.ServicesRunlevel get_default_runlevel ();
312                 public unowned GLib.List get_runlevels ();
313                 public unowned Oobs.List get_services ();
314         }
315         [CCode (cheader_filename = "oobs/oobs.h")]
316         [Compact]
317         public class ServicesRunlevel {
318                 public weak string name;
319                 public uint role;
320         }
321         [CCode (cheader_filename = "oobs/oobs.h")]
322         public class Session : GLib.Object {
323                 [CCode (has_construct_function = false)]
324                 protected Session ();
325                 public Oobs.Result commit ();
326                 public static unowned Oobs.Session @get ();
327                 public unowned string get_authentication_action ();
328                 public bool get_connected ();
329                 public Oobs.Result get_platform (string platform);
330                 public Oobs.Result get_supported_platforms (GLib.List platforms);
331                 public void process_requests ();
332                 public Oobs.Result set_platform (string platform);
333                 public string platform { get; set; }
334         }
335         [CCode (cheader_filename = "oobs/oobs.h")]
336         public class Share : GLib.Object {
337                 [CCode (has_construct_function = false)]
338                 protected Share ();
339                 public unowned string get_path ();
340                 public void set_path (string path);
341                 public string path { get; set; }
342         }
343         [CCode (cheader_filename = "oobs/oobs.h")]
344         [Compact]
345         public class ShareAclElement {
346                 public weak string element;
347                 public bool read_only;
348         }
349         [CCode (cheader_filename = "oobs/oobs.h")]
350         public class ShareNFS : Oobs.Share {
351                 [CCode (has_construct_function = false, type = "OobsShare*")]
352                 public ShareNFS (string path);
353                 public void add_acl_element (string element, bool read_only);
354                 public unowned GLib.SList get_acl ();
355                 public void set_acl (GLib.SList acl);
356         }
357         [CCode (cheader_filename = "oobs/oobs.h")]
358         public class ShareSMB : Oobs.Share {
359                 [CCode (has_construct_function = false, type = "OobsShare*")]
360                 public ShareSMB (string path, string name, string comment, Oobs.ShareSMBFlags flags);
361                 public unowned string get_comment ();
362                 public Oobs.ShareSMBFlags get_flags ();
363                 public unowned string get_name ();
364                 public void set_comment (string comment);
365                 public void set_flags (Oobs.ShareSMBFlags flags);
366                 public void set_name (string name);
367                 public string comment { get; set construct; }
368                 public Oobs.ShareSMBFlags flags { get; set construct; }
369                 public string name { get; set construct; }
370         }
371         [CCode (cheader_filename = "oobs/oobs.h")]
372         public class StaticHost : GLib.Object {
373                 [CCode (has_construct_function = false)]
374                 public StaticHost (string ip_address, GLib.List aliases);
375                 public unowned GLib.List get_aliases ();
376                 public unowned string get_ip_address ();
377                 public void set_aliases (GLib.List aliases);
378                 public void set_ip_address (string ip_address);
379                 public string ip_address { get; set; }
380         }
381         [CCode (cheader_filename = "oobs/oobs.h")]
382         public class TimeConfig : Oobs.Object {
383                 [CCode (has_construct_function = false)]
384                 protected TimeConfig ();
385                 public static unowned Oobs.Object @get ();
386                 public void get_time (int year, int month, int day, int hour, int minute, int second);
387                 public unowned string get_timezone ();
388                 public long get_unix_time ();
389                 public void get_utc_time (int year, int month, int day, int hour, int minute, int second);
390                 public void set_time (int year, int month, int day, int hour, int minute, int second);
391                 public void set_timezone (string timezone);
392                 public void set_unix_time (long unix_time);
393                 public void set_utc_time (int year, int month, int day, int hour, int minute, int second);
394                 public string timezone { get; set; }
395                 public long unix_time { get; set; }
396         }
397         [CCode (cheader_filename = "oobs/oobs.h")]
398         public class User : Oobs.Object {
399                 [CCode (has_construct_function = false)]
400                 public User (string name);
401                 public bool get_active ();
402                 public bool get_encrypted_home ();
403                 public unowned string get_full_name ();
404                 public unowned string get_home_directory ();
405                 public unowned string get_home_phone_number ();
406                 public unowned string get_locale ();
407                 public unowned string get_login_name ();
408                 public unowned Oobs.Group get_main_group ();
409                 public unowned string get_other_data ();
410                 public bool get_password_disabled ();
411                 public bool get_password_empty ();
412                 public unowned string get_room_number ();
413                 public unowned string get_shell ();
414                 public long get_uid ();
415                 public unowned string get_work_phone_number ();
416                 public bool is_in_group (Oobs.Group group);
417                 public bool is_root ();
418                 public void set_encrypted_home (bool encrypted_home);
419                 public void set_full_name (string full_name);
420                 public void set_home_directory (string home_directory);
421                 public void set_home_flags (Oobs.UserHomeFlags home_flags);
422                 public void set_home_phone_number (string phone_number);
423                 public void set_locale (string locale);
424                 public void set_main_group (Oobs.Group main_group);
425                 public void set_other_data (string data);
426                 public void set_password (string password);
427                 public void set_password_disabled (bool disabled);
428                 public void set_password_empty (bool empty);
429                 public void set_room_number (string room_number);
430                 public void set_shell (string shell);
431                 public void set_uid (long uid);
432                 public void set_work_phone_number (string phone_number);
433                 public bool active { get; }
434                 public bool encrypted_home { get; set; }
435                 public string full_name { get; set; }
436                 public string home_directory { get; set; }
437                 [NoAccessorMethod]
438                 public Oobs.UserHomeFlags home_flags { get; set; }
439                 [NoAccessorMethod]
440                 public string home_phone { owned get; set; }
441                 public string locale { get; set; }
442                 [NoAccessorMethod]
443                 public string name { owned get; construct; }
444                 public string other_data { get; set; }
445                 [NoAccessorMethod]
446                 public string password { owned get; set; }
447                 public bool password_disabled { get; set; }
448                 public bool password_empty { get; set; }
449                 public string room_number { get; set; }
450                 public string shell { get; set; }
451                 public uint uid { get; set; }
452                 [NoAccessorMethod]
453                 public string work_phone { owned get; set; }
454         }
455         [CCode (cheader_filename = "oobs/oobs.h")]
456         public class UsersConfig : Oobs.Object {
457                 [CCode (has_construct_function = false)]
458                 protected UsersConfig ();
459                 public Oobs.Result add_user (Oobs.User user);
460                 public Oobs.Result delete_user (Oobs.User user);
461                 public long find_free_uid (long uid_min, long uid_max);
462                 public static unowned Oobs.Object @get ();
463                 public unowned GLib.List get_available_locales ();
464                 public unowned GLib.List get_available_shells ();
465                 public unowned Oobs.Group get_default_group ();
466                 public unowned string get_default_home_dir ();
467                 public unowned string get_default_shell ();
468                 public bool get_encrypted_home_support ();
469                 public unowned Oobs.User get_from_login (string login);
470                 public unowned Oobs.User get_from_uid (long uid);
471                 public long get_maximum_users_uid ();
472                 public long get_minimum_users_uid ();
473                 public unowned Oobs.List get_users ();
474                 public bool is_login_used (string login);
475                 public bool is_uid_used (long uid);
476                 public void set_default_home_dir (string home_dir);
477                 public void set_default_shell (string shell);
478                 public void set_maximum_users_uid (long uid);
479                 public void set_minimum_users_uid (long uid);
480                 public Oobs.Group default_group { get; }
481                 [NoAccessorMethod]
482                 public string default_home { owned get; set; }
483                 public string default_shell { get; set; }
484                 [NoAccessorMethod]
485                 public bool encrypted_home { get; }
486                 [NoAccessorMethod]
487                 public uint maximum_uid { get; set; }
488                 [NoAccessorMethod]
489                 public uint minimum_uid { get; set; }
490         }
491         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_DIAL_TYPE_")]
492         public enum DialType {
493                 TONES,
494                 PULSES
495         }
496         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_ERROR_AUTHENTICATION_")]
497         public enum Error {
498                 FAILED,
499                 CANCELLED
500         }
501         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_IFACE_TYPE_")]
502         public enum IfaceType {
503                 ETHERNET,
504                 WIRELESS,
505                 IRLAN,
506                 PLIP,
507                 PPP
508         }
509         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_MODEM_VOLUME_")]
510         public enum ModemVolume {
511                 SILENT,
512                 LOW,
513                 MEDIUM,
514                 LOUD
515         }
516         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_RESULT_")]
517         public enum Result {
518                 OK,
519                 ACCESS_DENIED,
520                 NO_PLATFORM,
521                 MALFORMED_DATA,
522                 ERROR
523         }
524         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_RUNLEVEL_")]
525         public enum RunlevelRole {
526                 HALT,
527                 REBOOT,
528                 MONOUSER,
529                 MULTIUSER
530         }
531         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_SERVICE_")]
532         public enum ServiceStatus {
533                 START,
534                 STOP,
535                 IGNORE
536         }
537         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_SHARE_SMB_")]
538         [Flags]
539         public enum ShareSMBFlags {
540                 ENABLED,
541                 BROWSABLE,
542                 PUBLIC,
543                 WRITABLE
544         }
545         [CCode (cheader_filename = "oobs/oobs.h", cprefix = "OOBS_USER_")]
546         [Flags]
547         public enum UserHomeFlags {
548                 REMOVE_HOME,
549                 CHOWN_HOME
550         }
551         [CCode (cheader_filename = "oobs/oobs.h")]
552         public delegate void ObjectAsyncFunc (Oobs.Object object, Oobs.Result result);
553         [CCode (cheader_filename = "oobs/oobs.h")]
554         public static GLib.Quark error_quark ();