NM.Object¶
- Subclasses:
NM.AccessPoint
,NM.ActiveConnection
,NM.Checkpoint
,NM.Device
,NM.DhcpConfig
,NM.IPConfig
,NM.RemoteConnection
,NM.WifiP2PPeer
,NM.WimaxNsp
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.Object(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_client()¶
- Returns:
the
NM.Client
cache in which the object can be found, orNone
if the object is no longer cached.- Return type:
Returns the
NM.Client
instance in which object is cached. Also, if the object got removed from the client cached, this returnsNone
. 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, checkNM.Object.get_client
().- Return type:
Gets the DBus path of the
NM.Object
.
Property Details¶
- NM.Object.props.client¶
-
The
NM.Client
instance as returned byNM.Object.get_client
().When an
NM.Object
gets removed from theNM.Client
cache, theNM.Object
:path
property stays unchanged, but this client instance gets reset toNone
. You can use this property to track removal of the object from the cache.New in version 1.34.