RemoteConnection
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_remote_connection_get_type ()" ) ]
public sealed class RemoteConnection : Object, Connection
public sealed class RemoteConnection : Object, Connection
Namespace: NM
Package: libnm
Content:
Constants:
- public const string DBUS_CONNECTION
- public const string FILENAME
- public const string FLAGS
- public const string PATH
- public const string UNSAVED
- public const string VERSION_ID
- public const string VISIBLE
Properties:
- public string filename { get; }
File that stores the connection in case the connection is file-backed.
- public uint flags { get; }
The flags of the connection as unsigned integer.
- public bool unsaved { get; }
true if the remote connection contains changes that have not been saved to disk, false if the connection is the same as its on-disk representation.
- public uint64 version_id { get; }
The version ID of the profile that is incremented when the profile gets modified.
- public bool visible { get; }
true if the remote connection is visible to the current user, false if not.
Creation methods:
- protected RemoteConnection ()
Methods:
- public bool @delete (Cancellable? cancellable = null) throws Error
Deletes the connection.
- public bool commit_changes (bool save_to_disk, Cancellable? cancellable = null) throws Error
Send any local changes to the settings and properties of this to NetworkManager.
- public async bool commit_changes_async (bool save_to_disk, Cancellable? cancellable) throws Error
Asynchronously sends any local changes to the settings and properties of this to NetworkManager.
- public async bool delete_async (Cancellable? cancellable) throws Error
Asynchronously deletes the connection.
- public unowned string get_filename ()
- public SettingsConnectionFlags get_flags ()
- public Variant get_secrets (string setting_name, Cancellable? cancellable = null) throws Error
Request the connection's secrets.
- public async Variant get_secrets_async (string setting_name, Cancellable? cancellable) throws Error
Asynchronously requests the connection's secrets.
- public bool get_unsaved ()
- public uint64 get_version_id ()
- public bool get_visible ()
Checks if the connection is visible to the current user.
- public bool save (Cancellable? cancellable = null) throws Error
Saves the connection to disk if the connection has changes that have not yet been written to disk, or if the connection has never been saved.
- public async bool save_async (Cancellable? cancellable) throws Error
Saves the connection to disk if the connection has changes that have not yet been written to disk, or if the connection has never been saved.
- public async Variant update2 (Variant? settings, SettingsUpdate2Flags flags, Variant? args, Cancellable? cancellable) throws Error
Asynchronously calls the
Update2
D-Bus method.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface NM.Connection
- CHANGED
- NORMALIZE_PARAM_IP4_CONFIG_METHOD
- NORMALIZE_PARAM_IP6_CONFIG_METHOD
- SECRETS_CLEARED
- SECRETS_UPDATED
- add_setting
- changed
- clear_secrets
- clear_secrets_with_flags
- clear_settings
- compare
- dump
- error_quark
- for_each_setting_value
- get_connection_type
- get_id
- get_interface_name
- get_path
- get_setting
- get_setting_802_1x
- get_setting_adsl
- get_setting_bluetooth
- get_setting_bond
- get_setting_bridge
- get_setting_bridge_port
- get_setting_by_name
- get_setting_cdma
- get_setting_connection
- get_setting_dcb
- get_setting_dummy
- get_setting_generic
- get_setting_gsm
- get_setting_infiniband
- get_setting_ip4_config
- get_setting_ip6_config
- get_setting_ip_tunnel
- get_setting_macsec
- get_setting_macvlan
- get_setting_olpc_mesh
- get_setting_ovs_bridge
- get_setting_ovs_interface
- get_setting_ovs_patch
- get_setting_ovs_port
- get_setting_ppp
- get_setting_pppoe
- get_setting_proxy
- get_setting_serial
- get_setting_tc_config
- get_setting_team
- get_setting_team_port
- get_setting_tun
- get_setting_vlan
- get_setting_vpn
- get_setting_vxlan
- get_setting_wimax
- get_setting_wired
- get_setting_wireless
- get_setting_wireless_security
- get_settings
- get_uuid
- get_virtual_device_description
- is_type
- is_virtual
- need_secrets
- normalize
- remove_setting
- replace_settings
- replace_settings_from_connection
- secrets_cleared
- secrets_updated
- set_path
- to_dbus
- update_secrets
- verify
- verify_secrets