Client
Object Hierarchy:
NM.Client
NM.Client
NM.Client
NM.Object
NM.Object
NM.Object->NM.Client
GLib.Object
GLib.Object
GLib.Object->NM.Object
GLib.AsyncInitable
GLib.AsyncInitable
GLib.AsyncInitable->NM.Client
GLib.AsyncInitable->NM.Object
GLib.Initable
GLib.Initable
GLib.Initable->NM.Client
GLib.Initable->NM.Object
Description:
[
CCode ( type_id =
"nm_client_get_type ()" ) ]
public class Client :
Object ,
AsyncInitable ,
Initable
Content:
Constants:
Properties:
Static methods:
Creation methods:
public Client ()
Creates a new Client .
Methods:
public void activate_connection (Connection ? connection, Device ? device, string ? specific_object, ClientActivateFn ? callback)
Starts a connection to a particular network using the configuration
settings from connection
and the network device device
.
public void add_and_activate_connection (Connection ? @partial, Device device, string ? specific_object, ClientAddActivateFn ? callback)
Adds a new connection using the given details (if any) as a template,
automatically filling in missing settings with the capabilities of the given device and specific object.
public ConnectivityState check_connectivity (Cancellable ? cancellable = null ) throws Error
Updates the network connectivity state and returns the (new) current
state.
public async ConnectivityState check_connectivity_async (Cancellable ? cancellable) throws Error
Asynchronously updates the network connectivity state and invokes
callback
when complete.
public void deactivate_connection (ActiveConnection active)
public unowned ActiveConnection get_activating_connection ()
public unowned GenericArray <ActiveConnection > get_active_connections ()
Gets the active connections.
public unowned GenericArray <Device > get_all_devices ()
Gets both real devices and device placeholders (eg, software devices
which do not currently exist, but could be created automatically by NetworkManager if one of their NMDevice::ActivatableConnections
was activated).
public ConnectivityState get_connectivity ()
Gets the current network connectivity state.
public unowned Device get_device_by_iface (string iface)
public unowned Device get_device_by_path (string object_path)
public unowned GenericArray <Device > get_devices ()
Gets all the known network devices.
public bool get_logging (string ? level, string ? domains) throws Error
Gets NetworkManager current logging level and domains.
public bool get_manager_running ()
Determines whether the daemon is running.
public ClientPermissionResult get_permission_result (ClientPermission permission)
Requests the result of a specific permission, which indicates whether
the client can or cannot perform the action the permission represents
public unowned ActiveConnection get_primary_connection ()
public bool get_startup ()
Tests whether the daemon is still in the process of activating
connections at startup.
public State get_state ()
Gets the current daemon state.
public unowned string get_version ()
Gets NetworkManager version.
public bool networking_get_enabled ()
Whether networking is enabled or disabled.
public void networking_set_enabled (bool enabled)
Enables or disables networking.
public bool set_logging (string ? level, string ? domains) throws Error
Sets NetworkManager logging level and/or domains.
public void sleep (bool sleep_)
public bool wimax_get_enabled ()
Determines whether WiMAX is enabled.
public bool wimax_hardware_get_enabled ()
Determines whether the WiMAX hardware is enabled.
public void wimax_set_enabled (bool enabled)
Enables or disables WiMAX devices.
public bool wireless_get_enabled ()
Determines whether the wireless is enabled.
public bool wireless_hardware_get_enabled ()
Determines whether the wireless hardware is enabled.
public void wireless_set_enabled (bool enabled)
Enables or disables wireless devices.
public bool wwan_get_enabled ()
Determines whether WWAN is enabled.
public bool wwan_hardware_get_enabled ()
Determines whether the WWAN hardware is enabled.
public void wwan_set_enabled (bool enabled)
Enables or disables WWAN devices.
Signals:
Inherited Members:
All known members inherited from class NM.Object
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.Initable