1 /* conic.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "ConIc", lower_case_cprefix = "con_ic_")]
5 [CCode (cheader_filename = "conic.h")]
6 public class Connection : GLib.Object {
7 [CCode (has_construct_function = false)]
9 public bool connect (ConIc.ConnectFlags flags);
10 public bool connect_by_id (string id, ConIc.ConnectFlags flags);
11 public bool disconnect ();
12 public bool disconnect_by_id (string id);
13 public GLib.SList get_all_iaps ();
14 public ConIc.Iap get_iap (string id);
15 public unowned string get_proxy_autoconfig_url ();
16 public unowned string get_proxy_host (ConIc.ProxyProtocol protocol);
17 public GLib.SList get_proxy_ignore_hosts ();
18 public ConIc.ProxyMode get_proxy_mode ();
19 public int get_proxy_port (ConIc.ProxyProtocol protocol);
21 public bool automatic_connection_events { get; set construct; }
22 public virtual signal void connection_event (ConIc.ConnectionEvent p0);
23 public virtual signal void statistics (ConIc.StatisticsEvent p0);
25 [CCode (cheader_filename = "conic.h")]
26 public class ConnectionEvent : ConIc.Event {
27 public ConIc.ConnectionError get_error ();
28 public ConIc.ConnectionStatus get_status ();
30 [CCode (cheader_filename = "conic.h")]
31 public class Event : GLib.Object {
32 public unowned string get_bearer_type ();
33 public unowned string get_iap_id ();
35 [CCode (cheader_filename = "conic.h")]
36 public class Iap : GLib.Object {
37 public unowned string get_bearer_type ();
38 public unowned string get_id ();
39 public unowned string get_name ();
41 [CCode (cheader_filename = "conic.h")]
42 public class StatisticsEvent : ConIc.Event {
43 public uint64 get_rx_bytes ();
44 public uint64 get_rx_packets ();
45 public uint get_signal_strength ();
46 public uint get_time_active ();
47 public uint64 get_tx_bytes ();
48 public uint64 get_tx_packets ();
50 [CCode (cprefix = "CON_IC_CONNECT_FLAG_", has_type_id = "0", cheader_filename = "conic.h")]
51 public enum ConnectFlags {
53 AUTOMATICALLY_TRIGGERED,
56 [CCode (cprefix = "CON_IC_CONNECTION_ERROR_", has_type_id = "0", cheader_filename = "conic.h")]
57 public enum ConnectionError {
63 [CCode (cprefix = "CON_IC_STATUS_", has_type_id = "0", cheader_filename = "conic.h")]
64 public enum ConnectionStatus {
70 [CCode (cprefix = "CON_IC_PROXY_MODE_", has_type_id = "0", cheader_filename = "conic.h")]
71 public enum ProxyMode {
76 [CCode (cprefix = "CON_IC_PROXY_PROTOCOL_", has_type_id = "0", cheader_filename = "conic.h")]
77 public enum ProxyProtocol {
84 [CCode (cheader_filename = "conic.h")]
85 public const string CON_IC_BEARER_DUN_GSM_CS;
86 [CCode (cheader_filename = "conic.h")]
87 public const string CON_IC_BEARER_DUN_GSM_PS;
88 [CCode (cheader_filename = "conic.h")]
89 public const string CON_IC_BEARER_WLAN_ADHOC;
90 [CCode (cheader_filename = "conic.h")]
91 public const string CON_IC_BEARER_WLAN_INFRA;