/* conic.vapi generated by lt-vapigen, do not modify. */ [CCode (cprefix = "ConIc", lower_case_cprefix = "con_ic_")] namespace ConIc { [CCode (cheader_filename = "conic.h")] public class Connection : GLib.Object { [CCode (has_construct_function = false)] public Connection (); public bool connect (ConIc.ConnectFlags flags); public bool connect_by_id (string id, ConIc.ConnectFlags flags); public bool disconnect (); public bool disconnect_by_id (string id); public GLib.SList get_all_iaps (); public ConIc.Iap get_iap (string id); public unowned string get_proxy_autoconfig_url (); public unowned string get_proxy_host (ConIc.ProxyProtocol protocol); public GLib.SList get_proxy_ignore_hosts (); public ConIc.ProxyMode get_proxy_mode (); public int get_proxy_port (ConIc.ProxyProtocol protocol); [NoAccessorMethod] public bool automatic_connection_events { get; set construct; } public virtual signal void connection_event (ConIc.ConnectionEvent p0); public virtual signal void statistics (ConIc.StatisticsEvent p0); } [CCode (cheader_filename = "conic.h")] public class ConnectionEvent : ConIc.Event { public ConIc.ConnectionError get_error (); public ConIc.ConnectionStatus get_status (); } [CCode (cheader_filename = "conic.h")] public class Event : GLib.Object { public unowned string get_bearer_type (); public unowned string get_iap_id (); } [CCode (cheader_filename = "conic.h")] public class Iap : GLib.Object { public unowned string get_bearer_type (); public unowned string get_id (); public unowned string get_name (); } [CCode (cheader_filename = "conic.h")] public class StatisticsEvent : ConIc.Event { public uint64 get_rx_bytes (); public uint64 get_rx_packets (); public uint get_signal_strength (); public uint get_time_active (); public uint64 get_tx_bytes (); public uint64 get_tx_packets (); } [CCode (cprefix = "CON_IC_CONNECT_FLAG_", has_type_id = "0", cheader_filename = "conic.h")] public enum ConnectFlags { NONE, AUTOMATICALLY_TRIGGERED, UNMANAGED } [CCode (cprefix = "CON_IC_CONNECTION_ERROR_", has_type_id = "0", cheader_filename = "conic.h")] public enum ConnectionError { NONE, INVALID_IAP, CONNECTION_FAILED, USER_CANCELED } [CCode (cprefix = "CON_IC_STATUS_", has_type_id = "0", cheader_filename = "conic.h")] public enum ConnectionStatus { CONNECTED, DISCONNECTED, DISCONNECTING, NETWORK_UP } [CCode (cprefix = "CON_IC_PROXY_MODE_", has_type_id = "0", cheader_filename = "conic.h")] public enum ProxyMode { NONE, MANUAL, AUTO } [CCode (cprefix = "CON_IC_PROXY_PROTOCOL_", has_type_id = "0", cheader_filename = "conic.h")] public enum ProxyProtocol { HTTP, HTTPS, FTP, SOCKS, RTSP } [CCode (cheader_filename = "conic.h")] public const string CON_IC_BEARER_DUN_GSM_CS; [CCode (cheader_filename = "conic.h")] public const string CON_IC_BEARER_DUN_GSM_PS; [CCode (cheader_filename = "conic.h")] public const string CON_IC_BEARER_WLAN_ADHOC; [CCode (cheader_filename = "conic.h")] public const string CON_IC_BEARER_WLAN_INFRA; }