NM.Object

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object

Subclasses:

NM.AccessPoint, NM.ActiveConnection, NM.Checkpoint, NM.Device, NM.DhcpConfig, NM.IPConfig, NM.RemoteConnection, NM.WifiP2PPeer, NM.WimaxNsp

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_client ()

get_path ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

client

NM.Client

r

path

str

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.Object(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

NM.ObjectClass

get_client()
Returns:

the NM.Client cache in which the object can be found, or None if the object is no longer cached.

Return type:

object or None

Returns the NM.Client instance in which object is cached. Also, if the object got removed from the client cached, this returns None. So it can be used to check whether the object is still alive.

New in version 1.24.

get_path()
Returns:

the object’s path. This is the internal string used by the object, and must not be modified.

Note that the D-Bus path of an NM.Object never changes, even if the instance gets removed from the cache. To find out whether the object is still alive/cached, check NM.Object.get_client().

Return type:

str

Gets the DBus path of the NM.Object.

Property Details

NM.Object.props.client
Name:

client

Type:

NM.Client

Default Value:

None

Flags:

READABLE

The NM.Client instance as returned by NM.Object.get_client().

When an NM.Object gets removed from the NM.Client cache, the NM.Object :path property stays unchanged, but this client instance gets reset to None. You can use this property to track removal of the object from the cache.

New in version 1.34.

NM.Object.props.path
Name:

path

Type:

str

Default Value:

None

Flags:

READABLE

The D-Bus object path.

The D-Bus path of an object instance never changes, even if the object gets removed from the cache. To see whether the object is still in the cache, check NM.Object :client.