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

Description

No description available in the introspection data.

Synopsis

Exported types

newtype DeviceModem Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf DeviceModem o) => IsDeviceModem o Source #

Type class for types which can be safely cast to DeviceModem, for instance with toDeviceModem.

Instances

Instances details
(GObject o, IsDescendantOf DeviceModem o) => IsDeviceModem o Source # 
Instance details

Defined in GI.NM.Objects.DeviceModem

toDeviceModem :: (MonadIO m, IsDeviceModem o) => o -> m DeviceModem Source #

Cast to DeviceModem, for types for which this is known to be safe. For general casts, use castTo.

Methods

getApn

deviceModemGetApn Source #

Arguments

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

self: a DeviceModem

-> m Text

Returns: the APN name or Nothing if disconnected

The access point name the modem is connected to.

Since: 1.20

getCurrentCapabilities

deviceModemGetCurrentCapabilities Source #

Arguments

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

self: a DeviceModem

-> m [DeviceModemCapabilities]

Returns: the generic access technology families the modem supports without a firmware reload or other reinitialization

Returns a bitfield of the generic access technology families the modem supports without a firmware reload or reinitialization. This value represents the network types the modem can immediately connect to.

getDeviceId

deviceModemGetDeviceId Source #

Arguments

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

self: a DeviceModem

-> m Text

Returns: a device-id string

An identifier used by the modem backend (ModemManager) that aims to uniquely identify the a device. Can be used to match a connection to a particular device.

Since: 1.20

getModemCapabilities

deviceModemGetModemCapabilities Source #

Arguments

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

self: a DeviceModem

-> m [DeviceModemCapabilities]

Returns: the generic access technology families the modem supports

Returns a bitfield of the generic access technology families the modem supports. Not all capabilities are available concurrently however; some may require a firmware reload or reinitialization.

getOperatorCode

deviceModemGetOperatorCode Source #

Arguments

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

self: a DeviceModem

-> m Text

Returns: the operator code or Nothing if disconnected or not a 3GPP modem.

The MCC and MNC (concatenated) of the network the modem is connected to.

Since: 1.20

Properties

apn

No description available in the introspection data.

Since: 1.20

getDeviceModemApn :: (MonadIO m, IsDeviceModem o) => o -> m Text Source #

Get the value of the “apn” property. When overloading is enabled, this is equivalent to

get deviceModem #apn

currentCapabilities

The generic family of access technologies the modem currently supports without a firmware reload or reinitialization.

getDeviceModemCurrentCapabilities :: (MonadIO m, IsDeviceModem o) => o -> m [DeviceModemCapabilities] Source #

Get the value of the “current-capabilities” property. When overloading is enabled, this is equivalent to

get deviceModem #currentCapabilities

deviceId

No description available in the introspection data.

Since: 1.20

getDeviceModemDeviceId :: (MonadIO m, IsDeviceModem o) => o -> m Text Source #

Get the value of the “device-id” property. When overloading is enabled, this is equivalent to

get deviceModem #deviceId

modemCapabilities

The generic family of access technologies the modem supports. Not all capabilities are available at the same time however; some modems require a firmware reload or other reinitialization to switch between eg CDMA/EVDO and GSM/UMTS.

getDeviceModemModemCapabilities :: (MonadIO m, IsDeviceModem o) => o -> m [DeviceModemCapabilities] Source #

Get the value of the “modem-capabilities” property. When overloading is enabled, this is equivalent to

get deviceModem #modemCapabilities

operatorCode

No description available in the introspection data.

Since: 1.20

getDeviceModemOperatorCode :: (MonadIO m, IsDeviceModem o) => o -> m Text Source #

Get the value of the “operator-code” property. When overloading is enabled, this is equivalent to

get deviceModem #operatorCode