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.AccessPoint
Description
No description available in the introspection data.
Synopsis
- newtype AccessPoint = AccessPoint (ManagedPtr AccessPoint)
- class (GObject o, IsDescendantOf AccessPoint o) => IsAccessPoint o
- toAccessPoint :: (MonadIO m, IsAccessPoint o) => o -> m AccessPoint
- accessPointConnectionValid :: (HasCallStack, MonadIO m, IsAccessPoint a, IsConnection b) => a -> b -> m Bool
- accessPointFilterConnections :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> [Connection] -> m [Connection]
- accessPointGetBandwidth :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Word32
- accessPointGetBssid :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Text
- accessPointGetFlags :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m [NM80211ApFlags]
- accessPointGetFrequency :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Word32
- accessPointGetLastSeen :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Int32
- accessPointGetMaxBitrate :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Word32
- accessPointGetMode :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m NM80211Mode
- accessPointGetRsnFlags :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m [NM80211ApSecurityFlags]
- accessPointGetSsid :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Bytes
- accessPointGetStrength :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m Word8
- accessPointGetWpaFlags :: (HasCallStack, MonadIO m, IsAccessPoint a) => a -> m [NM80211ApSecurityFlags]
- getAccessPointBandwidth :: (MonadIO m, IsAccessPoint o) => o -> m Word32
- getAccessPointBssid :: (MonadIO m, IsAccessPoint o) => o -> m Text
- getAccessPointFlags :: (MonadIO m, IsAccessPoint o) => o -> m [NM80211ApFlags]
- getAccessPointFrequency :: (MonadIO m, IsAccessPoint o) => o -> m Word32
- getAccessPointHwAddress :: (MonadIO m, IsAccessPoint o) => o -> m (Maybe Text)
- getAccessPointLastSeen :: (MonadIO m, IsAccessPoint o) => o -> m Int32
- getAccessPointMaxBitrate :: (MonadIO m, IsAccessPoint o) => o -> m Word32
- getAccessPointMode :: (MonadIO m, IsAccessPoint o) => o -> m NM80211Mode
- getAccessPointRsnFlags :: (MonadIO m, IsAccessPoint o) => o -> m [NM80211ApSecurityFlags]
- getAccessPointSsid :: (MonadIO m, IsAccessPoint o) => o -> m Bytes
- getAccessPointWpaFlags :: (MonadIO m, IsAccessPoint o) => o -> m [NM80211ApSecurityFlags]
Exported types
newtype AccessPoint Source #
Memory-managed wrapper type.
Constructors
AccessPoint (ManagedPtr AccessPoint) |
Instances
Eq AccessPoint Source # | |
Defined in GI.NM.Objects.AccessPoint | |
GObject AccessPoint Source # | |
Defined in GI.NM.Objects.AccessPoint | |
ManagedPtrNewtype AccessPoint Source # | |
Defined in GI.NM.Objects.AccessPoint Methods | |
TypedObject AccessPoint Source # | |
Defined in GI.NM.Objects.AccessPoint | |
HasParentTypes AccessPoint Source # | |
Defined in GI.NM.Objects.AccessPoint | |
IsGValue (Maybe AccessPoint) Source # | Convert |
Defined in GI.NM.Objects.AccessPoint Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe AccessPoint -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe AccessPoint) # | |
type ParentTypes AccessPoint Source # | |
Defined in GI.NM.Objects.AccessPoint |
class (GObject o, IsDescendantOf AccessPoint o) => IsAccessPoint o Source #
Type class for types which can be safely cast to AccessPoint
, for instance with toAccessPoint
.
Instances
(GObject o, IsDescendantOf AccessPoint o) => IsAccessPoint o Source # | |
Defined in GI.NM.Objects.AccessPoint |
toAccessPoint :: (MonadIO m, IsAccessPoint o) => o -> m AccessPoint Source #
Cast to AccessPoint
, 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, connectionValid, filterConnections, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBandwidth, getBssid, getClient, getData, getFlags, getFrequency, getLastSeen, getMaxBitrate, getMode, getPath, getProperty, getQdata, getRsnFlags, getSsid, getStrength, getWpaFlags.
Setters
connectionValid
accessPointConnectionValid Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a, IsConnection b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Validates a given connection against a given Wi-Fi access point to ensure that
the connection may be activated with that AP. The connection must match the
ap
's SSID, (if given) BSSID, and other attributes like security settings,
channel, band, etc.
filterConnections
accessPointFilterConnections Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> [Connection] |
|
-> m [Connection] | Returns: an array of
WARNING: the transfer annotation for this function may not work correctly
with bindings. See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/305.
You can filter the list yourself with |
Filters a given array of connections for a given AccessPoint
object and
returns connections which may be activated with the access point. Any
returned connections will match the ap
's SSID and (if given) BSSID and
other attributes like security settings, channel, etc.
To obtain the list of connections that are compatible with this access point,
use clientGetConnections
and then filter the returned list for a given
Device
using deviceFilterConnections
and finally filter that list
with this function.
getBandwidth
accessPointGetBandwidth Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Word32 | Returns: the advertised bandwidth (MHz) |
Gets the bandwidth advertised by the access point in MHz.
Since: 1.46
getBssid
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Text | Returns: the BSSID of the access point. This is an internal string and must not be modified or freed. |
Gets the Basic Service Set ID (BSSID) of the Wi-Fi access point.
getFlags
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m [NM80211ApFlags] | Returns: the flags |
Gets the flags of the access point.
getFrequency
accessPointGetFrequency Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Word32 | Returns: the frequency in MHz |
Gets the frequency of the access point in MHz.
getLastSeen
accessPointGetLastSeen Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Int32 | Returns: the last seen time in seconds |
Returns the timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results. A value of -1 means the access point has not been found in a scan.
Since: 1.2
getMaxBitrate
accessPointGetMaxBitrate Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Word32 | Returns: the maximum bit rate (kbit/s) |
Gets the maximum bit rate of the access point in kbit/s.
getMode
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m NM80211Mode | Returns: the mode |
Gets the mode of the access point.
getRsnFlags
accessPointGetRsnFlags Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m [NM80211ApSecurityFlags] | Returns: the RSN flags |
Gets the RSN (Robust Secure Network, ie WPA version 2) flags of the access point.
getSsid
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Bytes | Returns: the |
Gets the SSID of the access point.
getStrength
accessPointGetStrength Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m Word8 | Returns: the signal strength (0 to 100) |
Gets the current signal strength of the access point as a percentage.
getWpaFlags
accessPointGetWpaFlags Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccessPoint a) | |
=> a |
|
-> m [NM80211ApSecurityFlags] | Returns: the WPA flags |
Gets the WPA (version 1) flags of the access point.
Properties
bandwidth
The channel bandwidth announced by the AP in MHz.
Since: 1.46
getAccessPointBandwidth :: (MonadIO m, IsAccessPoint o) => o -> m Word32 Source #
Get the value of the “bandwidth
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #bandwidth
bssid
The BSSID of the access point.
getAccessPointBssid :: (MonadIO m, IsAccessPoint o) => o -> m Text Source #
Get the value of the “bssid
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #bssid
flags
The flags of the access point.
getAccessPointFlags :: (MonadIO m, IsAccessPoint o) => o -> m [NM80211ApFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #flags
frequency
The frequency of the access point.
getAccessPointFrequency :: (MonadIO m, IsAccessPoint o) => o -> m Word32 Source #
Get the value of the “frequency
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #frequency
hwAddress
Alias for AccessPoint:bssid.
getAccessPointHwAddress :: (MonadIO m, IsAccessPoint o) => o -> m (Maybe Text) Source #
Get the value of the “hw-address
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #hwAddress
lastSeen
The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results. A value of -1 means the access point has not been found in a scan.
Since: 1.2
getAccessPointLastSeen :: (MonadIO m, IsAccessPoint o) => o -> m Int32 Source #
Get the value of the “last-seen
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #lastSeen
maxBitrate
The maximum bit rate of the access point in kbit/s.
getAccessPointMaxBitrate :: (MonadIO m, IsAccessPoint o) => o -> m Word32 Source #
Get the value of the “max-bitrate
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #maxBitrate
mode
The mode of the access point; either "infrastructure" (a central coordinator of the wireless network allowing clients to connect) or "ad-hoc" (a network with no central controller).
getAccessPointMode :: (MonadIO m, IsAccessPoint o) => o -> m NM80211Mode Source #
Get the value of the “mode
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #mode
rsnFlags
The RSN flags of the access point.
getAccessPointRsnFlags :: (MonadIO m, IsAccessPoint o) => o -> m [NM80211ApSecurityFlags] Source #
Get the value of the “rsn-flags
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #rsnFlags
ssid
The SSID of the access point, or Nothing
if it is not known.
getAccessPointSsid :: (MonadIO m, IsAccessPoint o) => o -> m Bytes Source #
Get the value of the “ssid
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #ssid
strength
wpaFlags
The WPA flags of the access point.
getAccessPointWpaFlags :: (MonadIO m, IsAccessPoint o) => o -> m [NM80211ApSecurityFlags] Source #
Get the value of the “wpa-flags
” property.
When overloading is enabled, this is equivalent to
get
accessPoint #wpaFlags