Bearer
Object Hierarchy:
Description:
[
CCode ( type_id =
"mm_bearer_get_type ()" ) ]
public class Bearer :
GdbusBearerProxy,
AsyncInitable,
DBusInterface,
Initable,
GdbusBearer
The Bearer structure contains private data and should only be accessed using the provided API.
Content:
Creation methods:
Methods:
- public async bool connect (Cancellable? cancellable) throws Error
Asynchronously requests activation of a packet data connection with
the network using this Bearer properties.
- public bool connect_sync (Cancellable? cancellable = null) throws Error
Synchronously requests activation of a packet data connection with the
network using this Bearer properties.
- public async bool disconnect (Cancellable? cancellable) throws Error
Synchronously requests disconnection and deactivation of the packet
data connection.
- public bool disconnect_sync (Cancellable? cancellable = null) throws Error
Synchronously requests disconnection and deactivation of the packet
data connection.
- public string dup_interface ()
Gets a copy of the operating system name for the network data
interface that provides packet data using this Bearer.
- public string dup_path ()
Gets a copy of the DBus path of the Bearer
object.
- public BearerType get_bearer_type ()
Gets the type of bearer.
- public bool get_connected ()
Checks whether or not the Bearer is
connected and thus whether packet data communication is possible.
- public Error get_connection_error ()
Gets a Error specifying the connection
error details, if any.
- public unowned string get_interface ()
Gets the operating system name for the network data interface that
provides packet data using this Bearer.
- public uint get_ip_timeout ()
Gets the maximum time to wait for the bearer to retrieve a valid IP
address.
- public BearerIpConfig get_ipv4_config ()
Gets a BearerIpConfig
object specifying the IPv4 configuration to use in the bearer.
- public BearerIpConfig get_ipv6_config ()
Gets a BearerIpConfig
object specifying the IPv6 configuration to use in the bearer.
- public bool get_multiplexed ()
Checks whether or not the Bearer is
connected through a multiplexed network likn.
- public unowned string get_path ()
Gets the DBus path of the Bearer object.
- public int get_profile_id ()
Gets profile ID associated to the bearer connection, if known.
- public BearerProperties get_properties ()
Gets a
BearerProperties object specifying the properties which were used to create the bearer.
- public bool get_reload_stats_supported ()
Checks whether or not the Bearer supporting
stats reload (to have RX and TX bytes of the ongoing connection).
- public BearerStats get_stats ()
Gets a BearerStats
object specifying the statistics of the current bearer connection.
- public bool get_suspended ()
Checks whether or not the Bearer is
suspended (but not deactivated) while the device is handling other communications, like a voice call.
- public unowned Error peek_connection_error ()
Gets a Error specifying the connection
error details, if any.
- public unowned BearerIpConfig peek_ipv4_config ()
Gets a BearerIpConfig
object specifying the IPv4 configuration to use in the bearer.
- public unowned BearerIpConfig peek_ipv6_config ()
Gets a BearerIpConfig
object specifying the IPv6 configuration to use in the bearer.
- public unowned BearerProperties peek_properties ()
Gets a
BearerProperties object specifying the properties which were used to create the bearer.
- public unowned BearerStats peek_stats ()
Gets a BearerStats
object specifying the statistics of the current bearer connection.
Inherited Members:
All known members inherited from class GLib.DBusProxy
- @new
- call
- call_sync
- call_with_unix_fd_list
- call_with_unix_fd_list_sync
- create_for_bus
- g_bus_type
- g_connection
- g_default_timeout
- g_flags
- g_interface_info
- g_interface_name
- g_name
- g_name_owner
- g_object_path
- g_properties_changed
- g_signal
- get_cached_property
- get_cached_property_names
- get_connection
- get_default_timeout
- get_flags
- get_interface_info
- get_interface_name
- get_name
- get_name_owner
- get_object_path
- set_cached_property
- set_default_timeout
- set_interface_info
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.DBusInterface
All known members inherited from interface GLib.Initable
All known members inherited from interface MM.GdbusBearer