NM.DeviceWifiP2P¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Notifies that a |
|
Notifies that a |
Fields¶
- Inherited:
Class Details¶
- class NM.DeviceWifiP2P(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.16.
- get_peer_by_path(path)¶
- Parameters:
path (
str) – the object path of the peer- Returns:
the peer or
Noneif none is found.- Return type:
Gets a
NM.WifiP2PPeerby path.New in version 1.42.
- get_peers()¶
- Returns:
a
GLib.PtrArraycontaining all the foundNM.WifiP2PPeers. The returned array is owned by the client and should not be modified.- Return type:
Gets all the found peers of the
NM.DeviceWifiP2P.New in version 1.16.
- start_find(options, cancellable, callback, *user_data)¶
- Parameters:
options (
GLib.VariantorNone) – optional options passed to StartFind.cancellable (
Gio.CancellableorNone) – aGio.Cancellable, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallback, orNone
Request NM to search for Wi-Fi P2P peers on self. Note that the call returns immediately after requesting the find, and it may take some time after that for peers to be found.
The find operation will run for 30s by default. You can stop it earlier using nm_device_p2p_wifi_stop_find().
New in version 1.16.
- start_find_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – theGio.AsyncResult- Raises:
- Returns:
Trueif the call was successful- Return type:
Finish an operation started by
NM.DeviceWifiP2P.start_find().New in version 1.16.
- stop_find(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.Cancellable, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallback, orNone
Request NM to stop any ongoing find operation for Wi-Fi P2P peers on self.
New in version 1.16.
- stop_find_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – theGio.AsyncResult- Raises:
- Returns:
Trueif the call was successful- Return type:
Finish an operation started by
NM.DeviceWifiP2P.stop_find().New in version 1.16.
Signal Details¶
- NM.DeviceWifiP2P.signals.peer_added(device_wifi_p2_p, peer)¶
- Signal Name:
peer-added- Flags:
- Parameters:
device_wifi_p2_p (
NM.DeviceWifiP2P) – The object which received the signalpeer (
GObject.Object) – the new access point
Notifies that a
NM.WifiP2PPeeris added to the Wi-Fi P2P device.New in version 1.16.
- NM.DeviceWifiP2P.signals.peer_removed(device_wifi_p2_p, peer)¶
- Signal Name:
peer-removed- Flags:
- Parameters:
device_wifi_p2_p (
NM.DeviceWifiP2P) – The object which received the signalpeer (
GObject.Object) – the removed access point
Notifies that a
NM.WifiP2PPeeris removed from the Wi-Fi P2P device.New in version 1.16.
Property Details¶
- NM.DeviceWifiP2P.props.peers¶
- Name:
peers- Type:
- Default Value:
- Flags:
List of all Wi-Fi P2P peers the device can see.
New in version 1.16.