gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.DeviceWifiP2P

Description

No description available in the introspection data.

Since: 1.16

Synopsis

Exported types

class (GObject o, IsDescendantOf DeviceWifiP2P o) => IsDeviceWifiP2P o Source #

Type class for types which can be safely cast to DeviceWifiP2P, for instance with toDeviceWifiP2P.

Instances

Instances details
(GObject o, IsDescendantOf DeviceWifiP2P o) => IsDeviceWifiP2P o Source # 
Instance details

Defined in GI.NM.Objects.DeviceWifiP2P

toDeviceWifiP2P :: (MonadIO m, IsDeviceWifiP2P o) => o -> m DeviceWifiP2P Source #

Cast to DeviceWifiP2P, for types for which this is known to be safe. For general casts, use castTo.

Methods

getPeerByPath

deviceWifiP2PGetPeerByPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a) 
=> a

device: a DeviceWifiP2P

-> Text

path: the object path of the peer

-> m WifiP2PPeer

Returns: the peer or Nothing if none is found.

Gets a WifiP2PPeer by path.

Since: 1.42

getPeers

deviceWifiP2PGetPeers Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a) 
=> a

device: a DeviceWifiP2P

-> m [WifiP2PPeer]

Returns: a PtrArray containing all the found NMWifiP2PPeers. The returned array is owned by the client and should not be modified.

Gets all the found peers of the DeviceWifiP2P.

Since: 1.16

startFind

deviceWifiP2PStartFind Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsCancellable b) 
=> a

device: a DeviceWifiP2P

-> Maybe GVariant

options: optional options passed to StartFind.

-> Maybe b

cancellable: a Cancellable, or Nothing

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback, or Nothing

-> m () 

Request NM to search for Wi-Fi P2P peers on device. 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().

Since: 1.16

startFindFinish

deviceWifiP2PStartFindFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsAsyncResult b) 
=> a

device: a DeviceWifiP2P

-> b

result: the AsyncResult

-> m ()

(Can throw GError)

Finish an operation started by deviceWifiP2PStartFind.

Since: 1.16

stopFind

deviceWifiP2PStopFind Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsCancellable b) 
=> a

device: a DeviceWifiP2P

-> Maybe b

cancellable: a Cancellable, or Nothing

-> Maybe AsyncReadyCallback

callback: a AsyncReadyCallback, or Nothing

-> m () 

Request NM to stop any ongoing find operation for Wi-Fi P2P peers on device.

Since: 1.16

stopFindFinish

deviceWifiP2PStopFindFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsAsyncResult b) 
=> a

device: a DeviceWifiP2P

-> b

result: the AsyncResult

-> m ()

(Can throw GError)

Finish an operation started by deviceWifiP2PStopFind.

Since: 1.16

Properties

peers

Signals

peerAdded

type DeviceWifiP2PPeerAddedCallback Source #

Arguments

 = Object

peer: the new access point

-> IO () 

Notifies that a WifiP2PPeer is added to the Wi-Fi P2P device.

Since: 1.16

afterDeviceWifiP2PPeerAdded :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerAddedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the peerAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after deviceWifiP2P #peerAdded callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onDeviceWifiP2PPeerAdded :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerAddedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the peerAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on deviceWifiP2P #peerAdded callback

peerRemoved

type DeviceWifiP2PPeerRemovedCallback Source #

Arguments

 = Object

peer: the removed access point

-> IO () 

Notifies that a WifiP2PPeer is removed from the Wi-Fi P2P device.

Since: 1.16

afterDeviceWifiP2PPeerRemoved :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerRemovedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the peerRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after deviceWifiP2P #peerRemoved callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onDeviceWifiP2PPeerRemoved :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerRemovedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the peerRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on deviceWifiP2P #peerRemoved callback