SettingConnection
Object Hierarchy:
Description:
The NMSettingConnection struct contains only private data.
It should only be accessed through the functions described below.
Namespace: NM
Package: libnm-util
Content:
Constants:
- public const string AUTOCONNECT
- public const string GATEWAY_PING_TIMEOUT
- public const string ID
- public const string INTERFACE_NAME
- public const string MASTER
- public const string PERMISSIONS
- public const string READ_ONLY
- public const string SECONDARIES
- public const string SETTING_NAME
- public const string SLAVE_TYPE
- public const string TIMESTAMP
- public const string TYPE
- public const string UUID
- public const string ZONE
Properties:
- public bool autoconnect { get; set construct; }
Whether or not the connection should be automatically connected by NetworkManager when the resources for the connection are available.
- public uint gateway_ping_timeout { get; set construct; }
If greater than zero, delay success of IP addressing until either the timeout is reached, or an IP gateway replies to a ping.
- public string id { owned get; set; }
A human readable unique identifier for the connection, like "Work Wi-Fi" or "T-Mobile 3G".
- public string interface_name { owned get; set; }
The name of the network interface this connection is bound to.
- public string master { owned get; set; }
Interface name of the master device or UUID of the master connection.
- public bool read_only { get; set construct; }
false
if the connection can be modified using the provided settings service's D-Bus interface with the right privileges, ortrue
if the connection is read-only and cannot be modified. - public string slave_type { owned get; set; }
Setting name of the device type of this slave's master connection (eg, SETTING_NAME), or
null
if this connection is not a slave. - public uint64 timestamp { get; set construct; }
The time, in seconds since the Unix Epoch, that the connection was last _successfully_ fully activated.
- public string type { owned get; set; }
Base type of the connection.
- public string uuid { owned get; set; }
A universally unique identifier for the connection, for example generated with libuuid.
- public string zone { owned get; set construct; }
The trust level of a the connection.
Creation methods:
- public SettingConnection ()
Creates a new SettingConnection object with default values.
Methods:
- public bool add_permission (string ptype, string pitem, string? detail)
Adds a permission to the connection's permission list.
- public bool add_secondary (string sec_uuid)
Adds a new secondary connection UUID to the setting.
- public bool get_autoconnect ()
Returns the autoconnect property of the connection.
- public unowned string get_connection_type ()
Returns the type property of the connection.
- public uint32 get_gateway_ping_timeout ()
- public unowned string get_id ()
Returns the id property of the connection.
- public unowned string get_interface_name ()
Returns the interface_name property of the connection.
- public unowned string get_master ()
Returns the master property of the connection.
- public uint32 get_num_permissions ()
Returns the number of entries in the
NMSettingConnection:permissions
s property of this setting. - public uint32 get_num_secondaries ()
- public bool get_permission (uint32 idx, string out_ptype, string out_pitem, string out_detail)
Retrieve one of the entries of the
NMSettingConnection:permissions
s property of this setting. - public bool get_read_only ()
Returns the read_only property of the connection.
- public unowned string get_secondary (uint32 idx)
- public unowned string get_slave_type ()
Returns the slave_type property of the connection.
- public uint64 get_timestamp ()
Returns the timestamp property of the connection.
- public unowned string get_uuid ()
Returns the uuid property of the connection.
- public unowned string get_zone ()
Returns the zone property of the connection.
- public bool is_slave_type (string type)
- public bool permissions_user_allowed (string uname)
Checks whether the given username is allowed to view/access this connection.
- public void remove_permission (uint32 idx)
Removes the permission at index
idx
from the connection. - public bool remove_permission_by_value (string ptype, string pitem, string? detail)
Removes the permission from the connection.
- public void remove_secondary (uint32 idx)
Removes the secondary coonnection UUID at index
idx
. - public bool remove_secondary_by_value (string sec_uuid)
Removes the secondary coonnection UUID
sec_uuid
.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object