NMSettingGsm

NMSettingGsm

Synopsis

#define             NM_SETTING_GSM_SETTING_NAME
enum                NMSettingGsmError;
#define             NM_TYPE_SETTING_GSM_ERROR
#define             NM_SETTING_GSM_ERROR
GQuark              nm_setting_gsm_error_quark          (void);
#define             NM_SETTING_GSM_NUMBER
#define             NM_SETTING_GSM_USERNAME
#define             NM_SETTING_GSM_PASSWORD
#define             NM_SETTING_GSM_APN
#define             NM_SETTING_GSM_NETWORK_ID
#define             NM_SETTING_GSM_NETWORK_TYPE
#define             NM_SETTING_GSM_ALLOWED_BANDS
#define             NM_SETTING_GSM_PIN
#define             NM_SETTING_GSM_PUK
#define             NM_SETTING_GSM_BAND
#define             NM_GSM_NETWORK_ANY
#define             NM_GSM_NETWORK_UMTS_HSPA
#define             NM_GSM_NETWORK_GPRS_EDGE
#define             NM_GSM_NETWORK_PREFER_UMTS_HSPA
#define             NM_GSM_NETWORK_PREFER_GPRS_EDGE
enum                NMSettingGsmNetworkType;
enum                NMSettingGsmNetworkBand;
                    NMSettingGsm;
GType               nm_setting_gsm_get_type             (void);
NMSetting *         nm_setting_gsm_new                  (void);
const char *        nm_setting_gsm_get_number           (NMSettingGsm *setting);
const char *        nm_setting_gsm_get_username         (NMSettingGsm *setting);
const char *        nm_setting_gsm_get_password         (NMSettingGsm *setting);
const char *        nm_setting_gsm_get_apn              (NMSettingGsm *setting);
const char *        nm_setting_gsm_get_network_id       (NMSettingGsm *setting);
int                 nm_setting_gsm_get_network_type     (NMSettingGsm *setting);
guint32             nm_setting_gsm_get_allowed_bands    (NMSettingGsm *setting);
const char *        nm_setting_gsm_get_pin              (NMSettingGsm *setting);
const char *        nm_setting_gsm_get_puk              (NMSettingGsm *setting);
int                 nm_setting_gsm_get_band             (NMSettingGsm *setting);

Object Hierarchy

  GObject
   +----NMSetting
         +----NMSettingGsm

Properties

  "allowed-bands"            guint                 : Read / Write / Construct
  "apn"                      gchar*                : Read / Write
  "band"                     gint                  : Read / Write / Construct
  "network-id"               gchar*                : Read / Write
  "network-type"             gint                  : Read / Write / Construct
  "number"                   gchar*                : Read / Write
  "password"                 gchar*                : Read / Write
  "pin"                      gchar*                : Read / Write
  "puk"                      gchar*                : Read / Write
  "username"                 gchar*                : Read / Write

Description

Details

NM_SETTING_GSM_SETTING_NAME

#define NM_SETTING_GSM_SETTING_NAME "gsm"


enum NMSettingGsmError

typedef enum
{
	NM_SETTING_GSM_ERROR_UNKNOWN = 0,
	NM_SETTING_GSM_ERROR_INVALID_PROPERTY,
	NM_SETTING_GSM_ERROR_MISSING_PROPERTY,
	NM_SETTING_GSM_ERROR_MISSING_SERIAL_SETTING
} NMSettingGsmError;


NM_TYPE_SETTING_GSM_ERROR

#define NM_TYPE_SETTING_GSM_ERROR (nm_setting_gsm_error_get_type ()) 


NM_SETTING_GSM_ERROR

#define NM_SETTING_GSM_ERROR nm_setting_gsm_error_quark ()


nm_setting_gsm_error_quark ()

GQuark              nm_setting_gsm_error_quark          (void);

Returns :


NM_SETTING_GSM_NUMBER

#define NM_SETTING_GSM_NUMBER        "number"


NM_SETTING_GSM_USERNAME

#define NM_SETTING_GSM_USERNAME      "username"


NM_SETTING_GSM_PASSWORD

#define NM_SETTING_GSM_PASSWORD      "password"


NM_SETTING_GSM_APN

#define NM_SETTING_GSM_APN           "apn"


NM_SETTING_GSM_NETWORK_ID

#define NM_SETTING_GSM_NETWORK_ID    "network-id"


NM_SETTING_GSM_NETWORK_TYPE

#define NM_SETTING_GSM_NETWORK_TYPE  "network-type"


NM_SETTING_GSM_ALLOWED_BANDS

#define NM_SETTING_GSM_ALLOWED_BANDS "allowed-bands"


NM_SETTING_GSM_PIN

#define NM_SETTING_GSM_PIN           "pin"


NM_SETTING_GSM_PUK

#define NM_SETTING_GSM_PUK           "puk"


NM_SETTING_GSM_BAND

#define NM_SETTING_GSM_BAND          "band"


NM_GSM_NETWORK_ANY

#define NM_GSM_NETWORK_ANY              NM_SETTING_GSM_NETWORK_TYPE_ANY


NM_GSM_NETWORK_UMTS_HSPA

#define NM_GSM_NETWORK_UMTS_HSPA        NM_SETTING_GSM_NETWORK_TYPE_UMTS_HSPA


NM_GSM_NETWORK_GPRS_EDGE

#define NM_GSM_NETWORK_GPRS_EDGE        NM_SETTING_GSM_NETWORK_TYPE_GPRS_EDGE


NM_GSM_NETWORK_PREFER_UMTS_HSPA

#define NM_GSM_NETWORK_PREFER_UMTS_HSPA NM_SETTING_GSM_NETWORK_TYPE_PREFER_UMTS_HSPA


NM_GSM_NETWORK_PREFER_GPRS_EDGE

#define NM_GSM_NETWORK_PREFER_GPRS_EDGE NM_SETTING_GSM_NETWORK_TYPE_PREFER_GPRS_EDGE


enum NMSettingGsmNetworkType

typedef enum {
	NM_SETTING_GSM_NETWORK_TYPE_ANY = -1,
	NM_SETTING_GSM_NETWORK_TYPE_UMTS_HSPA = 0,
	NM_SETTING_GSM_NETWORK_TYPE_GPRS_EDGE = 1,
	NM_SETTING_GSM_NETWORK_TYPE_PREFER_UMTS_HSPA = 2,
	NM_SETTING_GSM_NETWORK_TYPE_PREFER_GPRS_EDGE = 3
} NMSettingGsmNetworkType;


enum NMSettingGsmNetworkBand

typedef enum {
	NM_SETTING_GSM_BAND_UNKNOWN      = 0x00000000,
	NM_SETTING_GSM_BAND_ANY          = 0x00000001,
	NM_SETTING_GSM_BAND_EGSM         = 0x00000002, /*  900 MHz */
	NM_SETTING_GSM_BAND_DCS          = 0x00000004, /* 1800 MHz */
	NM_SETTING_GSM_BAND_PCS          = 0x00000008, /* 1900 MHz */
	NM_SETTING_GSM_BAND_G850         = 0x00000010, /*  850 MHz */
	NM_SETTING_GSM_BAND_U2100        = 0x00000020, /* WCDMA 3GPP UMTS 2100 MHz     (Class I) */
	NM_SETTING_GSM_BAND_U1800        = 0x00000040, /* WCDMA 3GPP UMTS 1800 MHz     (Class III) */
	NM_SETTING_GSM_BAND_U17IV        = 0x00000080, /* WCDMA 3GPP AWS 1700/2100 MHz (Class IV) */
	NM_SETTING_GSM_BAND_U800         = 0x00000100, /* WCDMA 3GPP UMTS 800 MHz      (Class VI) */
	NM_SETTING_GSM_BAND_U850         = 0x00000200, /* WCDMA 3GPP UMTS 850 MHz      (Class V) */
	NM_SETTING_GSM_BAND_U900         = 0x00000400, /* WCDMA 3GPP UMTS 900 MHz      (Class VIII) */
	NM_SETTING_GSM_BAND_U17IX        = 0x00000800, /* WCDMA 3GPP UMTS 1700 MHz     (Class IX) */
} NMSettingGsmNetworkBand;


NMSettingGsm

typedef struct _NMSettingGsm NMSettingGsm;


nm_setting_gsm_get_type ()

GType               nm_setting_gsm_get_type             (void);

Returns :


nm_setting_gsm_new ()

NMSetting *         nm_setting_gsm_new                  (void);

Returns :


nm_setting_gsm_get_number ()

const char *        nm_setting_gsm_get_number           (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_username ()

const char *        nm_setting_gsm_get_username         (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_password ()

const char *        nm_setting_gsm_get_password         (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_apn ()

const char *        nm_setting_gsm_get_apn              (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_network_id ()

const char *        nm_setting_gsm_get_network_id       (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_network_type ()

int                 nm_setting_gsm_get_network_type     (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_allowed_bands ()

guint32             nm_setting_gsm_get_allowed_bands    (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_pin ()

const char *        nm_setting_gsm_get_pin              (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_puk ()

const char *        nm_setting_gsm_get_puk              (NMSettingGsm *setting);

setting :

Returns :


nm_setting_gsm_get_band ()

int                 nm_setting_gsm_get_band             (NMSettingGsm *setting);

setting :

Returns :

Property Details

The "allowed-bands" property

  "allowed-bands"            guint                 : Read / Write / Construct

Bitfield of allowed frequency bands.

Allowed values: <= 1

Default value: 1


The "apn" property

  "apn"                      gchar*                : Read / Write

APN.

Default value: NULL


The "band" property

  "band"                     gint                  : Read / Write / Construct

Band (DEPRECATED and UNUSED).

Allowed values: [G_MAXULONG,5]

Default value: -1


The "network-id" property

  "network-id"               gchar*                : Read / Write

Network ID (GSM LAI format).

Default value: NULL


The "network-type" property

  "network-type"             gint                  : Read / Write / Construct

Network type.

Allowed values: [G_MAXULONG,3]

Default value: -1


The "number" property

  "number"                   gchar*                : Read / Write

Number.

Default value: NULL


The "password" property

  "password"                 gchar*                : Read / Write

Password.

Default value: NULL


The "pin" property

  "pin"                      gchar*                : Read / Write

PIN.

Default value: NULL


The "puk" property

  "puk"                      gchar*                : Read / Write

PUK (DEPRECATED and UNUSED).

Default value: NULL


The "username" property

  "username"                 gchar*                : Read / Write

Username.

Default value: NULL