## NMDeviceModem

NMDeviceModem

## Synopsis

    enum                NMDeviceModemError;
    #define             NM_DEVICE_MODEM_ERROR
    GQuark              nm_device_modem_error_quark         (void);
    #define             NM_DEVICE_MODEM_MODEM_CAPABILITIES
    #define             NM_DEVICE_MODEM_CURRENT_CAPABILITIES
                        NMDeviceModem;
                        NMDeviceModemClass;
    NMDeviceModemCapabilities nm_device_modem_get_modem_capabilities
                                                            (NMDeviceModem *self);
    NMDeviceModemCapabilities nm_device_modem_get_current_capabilities
                                                            (NMDeviceModem *self);

## Object Hierarchy

      GObject
       +----NMObject
             +----NMDevice
                   +----NMDeviceModem

## Implemented Interfaces

NMDeviceModem implements GInitable and GAsyncInitable.

## Properties

      "current-capabilities"     guint                 : Read
      "modem-capabilities"       guint                 : Read

## Description

## Details

### enum NMDeviceModemError

    typedef enum {
    	NM_DEVICE_MODEM_ERROR_UNKNOWN = 0,              /*< nick=UnknownError >*/
    	NM_DEVICE_MODEM_ERROR_NOT_MODEM_CONNECTION,     /*< nick=NotModemConnection >*/
    	NM_DEVICE_MODEM_ERROR_INVALID_MODEM_CONNECTION, /*< nick=InvalidModemConnection >*/
    	NM_DEVICE_MODEM_ERROR_MISSING_DEVICE_CAPS,      /*< nick=MissingDeviceCaps >*/
    } NMDeviceModemError;

`NM_DEVICE_MODEM_ERROR_UNKNOWN` | unknown or unclassified error
`NM_DEVICE_MODEM_ERROR_NOT_MODEM_CONNECTION` | the connection was not of modem type
`NM_DEVICE_MODEM_ERROR_INVALID_MODEM_CONNECTION` | the modem connection was invalid
`NM_DEVICE_MODEM_ERROR_MISSING_DEVICE_CAPS` | the device missed required capabilities

### NM_DEVICE_MODEM_ERROR

    #define NM_DEVICE_MODEM_ERROR nm_device_modem_error_quark ()

### nm_device_modem_error_quark ()

    GQuark              nm_device_modem_error_quark         (void);

Registers an error quark for NMDeviceModem if necessary.

Returns : | the error quark used for NMDeviceModem errors.

### NM_DEVICE_MODEM_MODEM_CAPABILITIES

    #define NM_DEVICE_MODEM_MODEM_CAPABILITIES   "modem-capabilities"

### NM_DEVICE_MODEM_CURRENT_CAPABILITIES

    #define NM_DEVICE_MODEM_CURRENT_CAPABILITIES "current-capabilities"

### NMDeviceModem

    typedef struct _NMDeviceModem NMDeviceModem;

### NMDeviceModemClass

    typedef struct {
    	NMDeviceClass parent;

    	/* Padding for future expansion */
    	void (*_reserved1) (void);
    	void (*_reserved2) (void);
    	void (*_reserved3) (void);
    	void (*_reserved4) (void);
    	void (*_reserved5) (void);
    	void (*_reserved6) (void);
    } NMDeviceModemClass;

### nm_device_modem_get_modem_capabilities ()

    NMDeviceModemCapabilities nm_device_modem_get_modem_capabilities
                                                            (NMDeviceModem *self);

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.

`self` : | a NMDeviceModem
Returns : | the generic access technology families the modem supports

### nm_device_modem_get_current_capabilities ()

    NMDeviceModemCapabilities nm_device_modem_get_current_capabilities
                                                            (NMDeviceModem *self);

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.

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

## Property Details

### The `"current-capabilities"` property

      "current-capabilities"     guint                 : Read

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

Default value: 0

### The `"modem-capabilities"` property

      "modem-capabilities"       guint                 : Read

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.

Default value: 0