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.WifiP2PPeer
Description
No description available in the introspection data.
Since: 1.16
Synopsis
- newtype WifiP2PPeer = WifiP2PPeer (ManagedPtr WifiP2PPeer)
- class (GObject o, IsDescendantOf WifiP2PPeer o) => IsWifiP2PPeer o
- toWifiP2PPeer :: (MonadIO m, IsWifiP2PPeer o) => o -> m WifiP2PPeer
- wifiP2PPeerConnectionValid :: (HasCallStack, MonadIO m, IsWifiP2PPeer a, IsConnection b) => a -> b -> m Bool
- wifiP2PPeerFilterConnections :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> [Connection] -> m [Connection]
- wifiP2PPeerGetFlags :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m [NM80211ApFlags]
- wifiP2PPeerGetHwAddress :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Text
- wifiP2PPeerGetLastSeen :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Int32
- wifiP2PPeerGetManufacturer :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Text
- wifiP2PPeerGetModel :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Text
- wifiP2PPeerGetModelNumber :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Text
- wifiP2PPeerGetName :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Text
- wifiP2PPeerGetSerial :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Text
- wifiP2PPeerGetStrength :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Word8
- wifiP2PPeerGetWfdIes :: (HasCallStack, MonadIO m, IsWifiP2PPeer a) => a -> m Bytes
- getWifiP2PPeerFlags :: (MonadIO m, IsWifiP2PPeer o) => o -> m [NM80211ApFlags]
- getWifiP2PPeerHwAddress :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text
- getWifiP2PPeerLastSeen :: (MonadIO m, IsWifiP2PPeer o) => o -> m Int32
- getWifiP2PPeerManufacturer :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text
- getWifiP2PPeerModel :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text
- getWifiP2PPeerModelNumber :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text
- getWifiP2PPeerName :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text
- getWifiP2PPeerSerial :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text
- getWifiP2PPeerWfdIes :: (MonadIO m, IsWifiP2PPeer o) => o -> m Bytes
Exported types
newtype WifiP2PPeer Source #
Memory-managed wrapper type.
Constructors
WifiP2PPeer (ManagedPtr WifiP2PPeer) |
Instances
Eq WifiP2PPeer Source # | |
Defined in GI.NM.Objects.WifiP2PPeer | |
GObject WifiP2PPeer Source # | |
Defined in GI.NM.Objects.WifiP2PPeer | |
ManagedPtrNewtype WifiP2PPeer Source # | |
Defined in GI.NM.Objects.WifiP2PPeer Methods | |
TypedObject WifiP2PPeer Source # | |
Defined in GI.NM.Objects.WifiP2PPeer | |
HasParentTypes WifiP2PPeer Source # | |
Defined in GI.NM.Objects.WifiP2PPeer | |
IsGValue (Maybe WifiP2PPeer) Source # | Convert |
Defined in GI.NM.Objects.WifiP2PPeer Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe WifiP2PPeer -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe WifiP2PPeer) # | |
type ParentTypes WifiP2PPeer Source # | |
Defined in GI.NM.Objects.WifiP2PPeer |
class (GObject o, IsDescendantOf WifiP2PPeer o) => IsWifiP2PPeer o Source #
Type class for types which can be safely cast to WifiP2PPeer
, for instance with toWifiP2PPeer
.
Instances
(GObject o, IsDescendantOf WifiP2PPeer o) => IsWifiP2PPeer o Source # | |
Defined in GI.NM.Objects.WifiP2PPeer |
toWifiP2PPeer :: (MonadIO m, IsWifiP2PPeer o) => o -> m WifiP2PPeer Source #
Cast to WifiP2PPeer
, 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
getClient, getData, getFlags, getHwAddress, getLastSeen, getManufacturer, getModel, getModelNumber, getName, getPath, getProperty, getQdata, getSerial, getStrength, getWfdIes.
Setters
connectionValid
wifiP2PPeerConnectionValid Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a, IsConnection b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Validates a given connection against a given Wi-Fi P2P peer to ensure that
the connection may be activated with that peer. The connection must match the
peer
's address and in the future possibly other attributes.
Since: 1.16
filterConnections
wifiP2PPeerFilterConnections Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> [Connection] |
|
-> m [Connection] | Returns: an array of
|
Filters a given array of connections for a given WifiP2PPeer
object and
returns connections which may be activated with the P2P peer. Any
returned connections will match the peers
's HW address and in the future
possibly other attributes.
To obtain the list of connections that are compatible with this P2P peer,
use clientGetConnections
and then filter the returned list for a given
Device
using deviceFilterConnections
and finally filter that list
with this function.
Since: 1.16
getFlags
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m [NM80211ApFlags] | Returns: the flags |
Gets the flags of the P2P peer.
Since: 1.16
getHwAddress
wifiP2PPeerGetHwAddress Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Text | Returns: the hardware address |
Gets the hardware address of the P2P peer.
Since: 1.16
getLastSeen
wifiP2PPeerGetLastSeen Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Int32 | Returns: the last seen time in seconds |
Returns the timestamp (in CLOCK_BOOTTIME seconds) for the last time the P2P peer was seen. A value of -1 means the P2P peer has never been seen.
Since: 1.16
getManufacturer
wifiP2PPeerGetManufacturer Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Text | Returns: the manufacturer |
Gets the manufacturer of the P2P peer.
Since: 1.16
getModel
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Text | Returns: the model |
Gets the model of the P2P peer.
Since: 1.16
getModelNumber
wifiP2PPeerGetModelNumber Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Text | Returns: the model number |
Gets the model number of the P2P peer.
Since: 1.16
getName
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Text | Returns: the name |
Gets the name of the P2P peer.
Since: 1.16
getSerial
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Text | Returns: the serial number |
Gets the serial number of the P2P peer.
Since: 1.16
getStrength
wifiP2PPeerGetStrength Source #
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Word8 | Returns: the signal strength (0 to 100) |
Gets the current signal strength of the P2P peer as a percentage.
Since: 1.16
getWfdIes
Arguments
:: (HasCallStack, MonadIO m, IsWifiP2PPeer a) | |
=> a |
|
-> m Bytes |
Gets the WFD information elements of the P2P peer.
Since: 1.16
Properties
flags
The flags of the P2P peer.
Since: 1.16
getWifiP2PPeerFlags :: (MonadIO m, IsWifiP2PPeer o) => o -> m [NM80211ApFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #flags
hwAddress
The hardware address of the P2P peer.
Since: 1.16
getWifiP2PPeerHwAddress :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text Source #
Get the value of the “hw-address
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #hwAddress
lastSeen
The timestamp (in CLOCK_BOOTTIME seconds) for the last time the P2P peer was found. A value of -1 means the peer has never been seen.
Since: 1.16
getWifiP2PPeerLastSeen :: (MonadIO m, IsWifiP2PPeer o) => o -> m Int32 Source #
Get the value of the “last-seen
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #lastSeen
manufacturer
The manufacturer of the P2P peer.
Since: 1.16
getWifiP2PPeerManufacturer :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text Source #
Get the value of the “manufacturer
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #manufacturer
model
The model of the P2P peer.
Since: 1.16
getWifiP2PPeerModel :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text Source #
Get the value of the “model
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #model
modelNumber
The hardware address of the P2P peer.
Since: 1.16
getWifiP2PPeerModelNumber :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text Source #
Get the value of the “model-number
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #modelNumber
name
The name of the P2P peer.
Since: 1.16
getWifiP2PPeerName :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #name
serial
The serial number of the P2P peer.
Since: 1.16
getWifiP2PPeerSerial :: (MonadIO m, IsWifiP2PPeer o) => o -> m Text Source #
Get the value of the “serial
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #serial
strength
wfdIes
The WFD information elements of the P2P peer.
Since: 1.16
getWifiP2PPeerWfdIes :: (MonadIO m, IsWifiP2PPeer o) => o -> m Bytes Source #
Get the value of the “wfd-ies
” property.
When overloading is enabled, this is equivalent to
get
wifiP2PPeer #wfdIes