Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.DeviceWifiP2P
Description
No description available in the introspection data.
Since: 1.16
Synopsis
- newtype DeviceWifiP2P = DeviceWifiP2P (ManagedPtr DeviceWifiP2P)
- class (GObject o, IsDescendantOf DeviceWifiP2P o) => IsDeviceWifiP2P o
- toDeviceWifiP2P :: (MonadIO m, IsDeviceWifiP2P o) => o -> m DeviceWifiP2P
- deviceWifiP2PGetPeerByPath :: (HasCallStack, MonadIO m, IsDeviceWifiP2P a) => a -> Text -> m WifiP2PPeer
- deviceWifiP2PGetPeers :: (HasCallStack, MonadIO m, IsDeviceWifiP2P a) => a -> m [WifiP2PPeer]
- deviceWifiP2PStartFind :: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsCancellable b) => a -> Maybe GVariant -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- deviceWifiP2PStartFindFinish :: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsAsyncResult b) => a -> b -> m ()
- deviceWifiP2PStopFind :: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- deviceWifiP2PStopFindFinish :: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsAsyncResult b) => a -> b -> m ()
- type DeviceWifiP2PPeerAddedCallback = Object -> IO ()
- afterDeviceWifiP2PPeerAdded :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerAddedCallback) -> m SignalHandlerId
- onDeviceWifiP2PPeerAdded :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerAddedCallback) -> m SignalHandlerId
- type DeviceWifiP2PPeerRemovedCallback = Object -> IO ()
- afterDeviceWifiP2PPeerRemoved :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerRemovedCallback) -> m SignalHandlerId
- onDeviceWifiP2PPeerRemoved :: (IsDeviceWifiP2P a, MonadIO m) => a -> ((?self :: a) => DeviceWifiP2PPeerRemovedCallback) -> m SignalHandlerId
Exported types
newtype DeviceWifiP2P Source #
Memory-managed wrapper type.
Constructors
DeviceWifiP2P (ManagedPtr DeviceWifiP2P) |
Instances
Eq DeviceWifiP2P Source # | |
Defined in GI.NM.Objects.DeviceWifiP2P Methods (==) :: DeviceWifiP2P -> DeviceWifiP2P -> Bool # (/=) :: DeviceWifiP2P -> DeviceWifiP2P -> Bool # | |
GObject DeviceWifiP2P Source # | |
Defined in GI.NM.Objects.DeviceWifiP2P | |
ManagedPtrNewtype DeviceWifiP2P Source # | |
Defined in GI.NM.Objects.DeviceWifiP2P Methods | |
TypedObject DeviceWifiP2P Source # | |
Defined in GI.NM.Objects.DeviceWifiP2P | |
HasParentTypes DeviceWifiP2P Source # | |
Defined in GI.NM.Objects.DeviceWifiP2P | |
IsGValue (Maybe DeviceWifiP2P) Source # | Convert |
Defined in GI.NM.Objects.DeviceWifiP2P Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DeviceWifiP2P -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceWifiP2P) # | |
type ParentTypes DeviceWifiP2P Source # | |
Defined in GI.NM.Objects.DeviceWifiP2P |
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
(GObject o, IsDescendantOf DeviceWifiP2P o) => IsDeviceWifiP2P o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, connectionCompatible, connectionValid, delete, deleteAsync, deleteFinish, disconnect, disconnectAsync, disconnectFinish, filterConnections, forceFloating, freezeNotify, getv, isFloating, isReal, isSoftware, notify, notifyByPspec, reapply, reapplyAsync, reapplyFinish, ref, refSink, runDispose, startFind, startFindFinish, stealData, stealQdata, stopFind, stopFindFinish, thawNotify, unref, watchClosure.
Getters
getActiveConnection, getAppliedConnection, getAppliedConnectionAsync, getAppliedConnectionFinish, getAutoconnect, getAvailableConnections, getCapabilities, getClient, getConnectivity, getData, getDescription, getDeviceType, getDhcp4Config, getDhcp6Config, getDriver, getDriverVersion, getFirmwareMissing, getFirmwareVersion, getHwAddress, getIface, getInterfaceFlags, getIp4Config, getIp6Config, getIpIface, getLldpNeighbors, getManaged, getMetered, getMtu, getNmPluginMissing, getPath, getPeerByPath, getPeers, getPhysicalPortId, getPorts, getProduct, getProperty, getQdata, getSettingType, getState, getStateReason, getTypeDescription, getUdi, getVendor.
Setters
setAutoconnect, setData, setDataFull, setManaged, setProperty.
getPeerByPath
deviceWifiP2PGetPeerByPath Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a) | |
=> a |
|
-> Text |
|
-> m WifiP2PPeer | Returns: the peer or |
Gets a WifiP2PPeer
by path.
Since: 1.42
getPeers
deviceWifiP2PGetPeers Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a) | |
=> a |
|
-> m [WifiP2PPeer] | Returns: a |
Gets all the found peers of the DeviceWifiP2P
.
Since: 1.16
startFind
deviceWifiP2PStartFind Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsCancellable b) | |
=> a |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 |
|
-> b |
|
-> m () | (Can throw |
Finish an operation started by deviceWifiP2PStartFind
.
Since: 1.16
stopFind
deviceWifiP2PStopFind Source #
Arguments
:: (HasCallStack, MonadIO m, IsDeviceWifiP2P a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> 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 |
|
-> b |
|
-> m () | (Can throw |
Finish an operation started by deviceWifiP2PStopFind
.
Since: 1.16
Properties
peers
Signals
peerAdded
type DeviceWifiP2PPeerAddedCallback Source #
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 #
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