| 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.DeviceWifi
Description
No description available in the introspection data.
Synopsis
- newtype DeviceWifi = DeviceWifi (ManagedPtr DeviceWifi)
- class (GObject o, IsDescendantOf DeviceWifi o) => IsDeviceWifi o
- toDeviceWifi :: (MonadIO m, IsDeviceWifi o) => o -> m DeviceWifi
- deviceWifiGetAccessPointByPath :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> Text -> m AccessPoint
- deviceWifiGetAccessPoints :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m [AccessPoint]
- deviceWifiGetActiveAccessPoint :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m AccessPoint
- deviceWifiGetBitrate :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m Word32
- deviceWifiGetCapabilities :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m [DeviceWifiCapabilities]
- deviceWifiGetLastScan :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m Int64
- deviceWifiGetMode :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m NM80211Mode
- deviceWifiGetPermanentHwAddress :: (HasCallStack, MonadIO m, IsDeviceWifi a) => a -> m Text
- deviceWifiRequestScan :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) => a -> Maybe b -> m ()
- deviceWifiRequestScanAsync :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- deviceWifiRequestScanFinish :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsAsyncResult b) => a -> b -> m ()
- deviceWifiRequestScanOptions :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) => a -> GVariant -> Maybe b -> m ()
- deviceWifiRequestScanOptionsAsync :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) => a -> GVariant -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- getDeviceWifiActiveAccessPoint :: (MonadIO m, IsDeviceWifi o) => o -> m AccessPoint
- getDeviceWifiBitrate :: (MonadIO m, IsDeviceWifi o) => o -> m Word32
- getDeviceWifiLastScan :: (MonadIO m, IsDeviceWifi o) => o -> m Int64
- getDeviceWifiMode :: (MonadIO m, IsDeviceWifi o) => o -> m NM80211Mode
- getDeviceWifiPermHwAddress :: (MonadIO m, IsDeviceWifi o) => o -> m (Maybe Text)
- getDeviceWifiWirelessCapabilities :: (MonadIO m, IsDeviceWifi o) => o -> m [DeviceWifiCapabilities]
- type DeviceWifiAccessPointAddedCallback = Object -> IO ()
- afterDeviceWifiAccessPointAdded :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointAddedCallback) -> m SignalHandlerId
- onDeviceWifiAccessPointAdded :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointAddedCallback) -> m SignalHandlerId
- type DeviceWifiAccessPointRemovedCallback = Object -> IO ()
- afterDeviceWifiAccessPointRemoved :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointRemovedCallback) -> m SignalHandlerId
- onDeviceWifiAccessPointRemoved :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointRemovedCallback) -> m SignalHandlerId
Exported types
newtype DeviceWifi Source #
Memory-managed wrapper type.
Constructors
| DeviceWifi (ManagedPtr DeviceWifi) |
Instances
| Eq DeviceWifi Source # | |
Defined in GI.NM.Objects.DeviceWifi | |
| GObject DeviceWifi Source # | |
Defined in GI.NM.Objects.DeviceWifi | |
| ManagedPtrNewtype DeviceWifi Source # | |
Defined in GI.NM.Objects.DeviceWifi Methods | |
| TypedObject DeviceWifi Source # | |
Defined in GI.NM.Objects.DeviceWifi | |
| HasParentTypes DeviceWifi Source # | |
Defined in GI.NM.Objects.DeviceWifi | |
| IsGValue (Maybe DeviceWifi) Source # | Convert |
Defined in GI.NM.Objects.DeviceWifi Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DeviceWifi -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceWifi) # | |
| type ParentTypes DeviceWifi Source # | |
Defined in GI.NM.Objects.DeviceWifi | |
class (GObject o, IsDescendantOf DeviceWifi o) => IsDeviceWifi o Source #
Type class for types which can be safely cast to DeviceWifi, for instance with toDeviceWifi.
Instances
| (GObject o, IsDescendantOf DeviceWifi o) => IsDeviceWifi o Source # | |
Defined in GI.NM.Objects.DeviceWifi | |
toDeviceWifi :: (MonadIO m, IsDeviceWifi o) => o -> m DeviceWifi Source #
Cast to DeviceWifi, 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, requestScan, requestScanAsync, requestScanFinish, requestScanOptions, requestScanOptionsAsync, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAccessPointByPath, getAccessPoints, getActiveAccessPoint, getActiveConnection, getAppliedConnection, getAppliedConnectionAsync, getAppliedConnectionFinish, getAutoconnect, getAvailableConnections, getBitrate, getCapabilities, getClient, getConnectivity, getData, getDescription, getDeviceType, getDhcp4Config, getDhcp6Config, getDriver, getDriverVersion, getFirmwareMissing, getFirmwareVersion, getHwAddress, getIface, getInterfaceFlags, getIp4Config, getIp6Config, getIpIface, getLastScan, getLldpNeighbors, getManaged, getMetered, getMode, getMtu, getNmPluginMissing, getPath, getPermanentHwAddress, getPhysicalPortId, getPorts, getProduct, getProperty, getQdata, getSettingType, getState, getStateReason, getTypeDescription, getUdi, getVendor.
Setters
setAutoconnect, setData, setDataFull, setManaged, setProperty.
getAccessPointByPath
deviceWifiGetAccessPointByPath Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> Text |
|
| -> m AccessPoint | Returns: the access point or |
Gets a AccessPoint by path.
getAccessPoints
deviceWifiGetAccessPoints Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m [AccessPoint] | Returns: a |
Gets all the scanned access points of the DeviceWifi.
getActiveAccessPoint
deviceWifiGetActiveAccessPoint Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m AccessPoint | Returns: the access point or |
Gets the active AccessPoint.
getBitrate
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m Word32 | Returns: the bit rate (kbit/s) |
Gets the bit rate of the DeviceWifi in kbit/s.
getCapabilities
deviceWifiGetCapabilities Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m [DeviceWifiCapabilities] | Returns: the capabilities |
Gets the Wi-Fi capabilities of the DeviceWifi.
getLastScan
deviceWifiGetLastScan Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m Int64 | Returns: the last scan time in milliseconds (in clock_gettime(CLOCK_BOOTTIME) scale). |
Returns the timestamp (in CLOCK_BOOTTIME milliseconds) for the last finished network scan. A value of -1 means the device never scanned for access points.
Use utilsGetTimestampMsec to obtain current time value suitable for
comparing to this value.
Since: 1.12
getMode
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m NM80211Mode | Returns: the mode |
Gets the DeviceWifi mode.
getPermanentHwAddress
deviceWifiGetPermanentHwAddress Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a) | |
| => a |
|
| -> m Text | Returns: the permanent hardware address. This is the internal string used by the device, and must not be modified. |
Gets the permanent hardware (MAC) address of the DeviceWifi
requestScan
deviceWifiRequestScan Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) | |
| => a |
|
| -> Maybe b |
|
| -> m () | (Can throw |
Deprecated: (Since version 1.22)Use deviceWifiRequestScanAsync or GDBusConnection.
Request NM to scan for access points on device. Note that the function
returns immediately after requesting the scan, and it may take some time
after that for the scan to complete.
requestScanAsync
deviceWifiRequestScanAsync Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) | |
| => a |
|
| -> Maybe b |
|
| -> Maybe AsyncReadyCallback |
|
| -> m () |
Request NM to scan for access points on device. Note that callback will be
called immediately after requesting the scan, and it may take some time after
that for the scan to complete.
requestScanFinish
deviceWifiRequestScanFinish Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsAsyncResult b) | |
| => a |
|
| -> b |
|
| -> m () | (Can throw |
Gets the result of a call to deviceWifiRequestScanAsync and
deviceWifiRequestScanOptionsAsync.
requestScanOptions
deviceWifiRequestScanOptions Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) | |
| => a |
|
| -> GVariant |
|
| -> Maybe b |
|
| -> m () | (Can throw |
Deprecated: (Since version 1.22)Use deviceWifiRequestScanOptionsAsync or GDBusConnection.
Request NM to scan for access points on device. Note that the function
returns immediately after requesting the scan, and it may take some time
after that for the scan to complete.
This is the same as nmDeviceWifiRequestScan except it accepts options
for the scanning. The argument is the dictionary passed to RequestScan()
D-Bus call. Valid options inside the dictionary are:
'ssids' => array of SSIDs (saay)
Since: 1.2
requestScanOptionsAsync
deviceWifiRequestScanOptionsAsync Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceWifi a, IsCancellable b) | |
| => a |
|
| -> GVariant |
|
| -> Maybe b |
|
| -> Maybe AsyncReadyCallback |
|
| -> m () |
Request NM to scan for access points on device. Note that callback will be
called immediately after requesting the scan, and it may take some time after
that for the scan to complete.
This is the same as nmDeviceWifiRequestScanAsync except it accepts options
for the scanning. The argument is the dictionary passed to RequestScan()
D-Bus call. Valid options inside the dictionary are:
'ssids' => array of SSIDs (saay)
To complete the request call deviceWifiRequestScanFinish.
Since: 1.2
Properties
accessPoints
activeAccessPoint
The active AccessPoint of the device.
getDeviceWifiActiveAccessPoint :: (MonadIO m, IsDeviceWifi o) => o -> m AccessPoint Source #
Get the value of the “active-access-point” property.
When overloading is enabled, this is equivalent to
get deviceWifi #activeAccessPoint
bitrate
The bit rate of the device in kbit/s.
getDeviceWifiBitrate :: (MonadIO m, IsDeviceWifi o) => o -> m Word32 Source #
Get the value of the “bitrate” property.
When overloading is enabled, this is equivalent to
get deviceWifi #bitrate
lastScan
The timestamp (in CLOCK_BOOTTIME seconds) for the last finished network scan. A value of -1 means the device never scanned for access points.
Since: 1.12
getDeviceWifiLastScan :: (MonadIO m, IsDeviceWifi o) => o -> m Int64 Source #
Get the value of the “last-scan” property.
When overloading is enabled, this is equivalent to
get deviceWifi #lastScan
mode
The mode of the device.
getDeviceWifiMode :: (MonadIO m, IsDeviceWifi o) => o -> m NM80211Mode Source #
Get the value of the “mode” property.
When overloading is enabled, this is equivalent to
get deviceWifi #mode
permHwAddress
The hardware (MAC) address of the device.
getDeviceWifiPermHwAddress :: (MonadIO m, IsDeviceWifi o) => o -> m (Maybe Text) Source #
Get the value of the “perm-hw-address” property.
When overloading is enabled, this is equivalent to
get deviceWifi #permHwAddress
wirelessCapabilities
The wireless capabilities of the device.
getDeviceWifiWirelessCapabilities :: (MonadIO m, IsDeviceWifi o) => o -> m [DeviceWifiCapabilities] Source #
Get the value of the “wireless-capabilities” property.
When overloading is enabled, this is equivalent to
get deviceWifi #wirelessCapabilities
Signals
accessPointAdded
type DeviceWifiAccessPointAddedCallback Source #
Notifies that a AccessPoint is added to the Wi-Fi device.
afterDeviceWifiAccessPointAdded :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the accessPointAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after deviceWifi #accessPointAdded 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.
onDeviceWifiAccessPointAdded :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the accessPointAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on deviceWifi #accessPointAdded callback
accessPointRemoved
type DeviceWifiAccessPointRemovedCallback Source #
Notifies that a AccessPoint is removed from the Wi-Fi device.
afterDeviceWifiAccessPointRemoved :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the accessPointRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after deviceWifi #accessPointRemoved 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.
onDeviceWifiAccessPointRemoved :: (IsDeviceWifi a, MonadIO m) => a -> ((?self :: a) => DeviceWifiAccessPointRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the accessPointRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on deviceWifi #accessPointRemoved callback