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.WifiP2PPeer

Description

No description available in the introspection data.

Since: 1.16

Synopsis

Exported types

newtype WifiP2PPeer Source #

Memory-managed wrapper type.

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

Instances details
(GObject o, IsDescendantOf WifiP2PPeer o) => IsWifiP2PPeer o Source # 
Instance details

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

connectionValid

wifiP2PPeerConnectionValid Source #

Arguments

:: (HasCallStack, MonadIO m, IsWifiP2PPeer a, IsConnection b) 
=> a

peer: an WifiP2PPeer to validate connection against

-> b

connection: an Connection to validate against peer

-> m Bool

Returns: True if the connection may be activated with this Wi-Fi P2P Peer, False if it cannot be.

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

peer: an WifiP2PPeer to filter connections for

-> [Connection]

connections: an array of NMConnections to filter

-> m [Connection]

Returns: an array of NMConnections that could be activated with the given peer. The array should be freed with g_ptr_array_unref() when it is no longer required.

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

wifiP2PPeerGetFlags Source #

Arguments

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

peer: a WifiP2PPeer

-> 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

peer: a WifiP2PPeer

-> 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

peer: a WifiP2PPeer

-> 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

peer: a WifiP2PPeer

-> m Text

Returns: the manufacturer

Gets the manufacturer of the P2P peer.

Since: 1.16

getModel

wifiP2PPeerGetModel Source #

Arguments

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

peer: a WifiP2PPeer

-> 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

peer: a WifiP2PPeer

-> m Text

Returns: the model number

Gets the model number of the P2P peer.

Since: 1.16

getName

wifiP2PPeerGetName Source #

Arguments

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

peer: a WifiP2PPeer

-> m Text

Returns: the name

Gets the name of the P2P peer.

Since: 1.16

getSerial

wifiP2PPeerGetSerial Source #

Arguments

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

peer: a WifiP2PPeer

-> 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

peer: a WifiP2PPeer

-> 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

wifiP2PPeerGetWfdIes Source #

Arguments

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

peer: a WifiP2PPeer

-> m Bytes

Returns: the Bytes containing the WFD IEs, or Nothing.

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