NMDeviceAdsl

NMDeviceAdsl

Object Hierarchy

  GObject
   +----NMObject
         +----NMDevice
               +----NMDeviceAdsl

Implemented Interfaces

NMDeviceAdsl implements GInitable and GAsyncInitable.

Properties

  "carrier"                  gboolean              : Read

Description

Details

enum NMDeviceAdslError

typedef enum {
	NM_DEVICE_ADSL_ERROR_UNKNOWN = 0,             /*< nick=UnknownError >*/
	NM_DEVICE_ADSL_ERROR_NOT_ADSL_CONNECTION,     /*< nick=NotAdslConnection >*/
	NM_DEVICE_ADSL_ERROR_INVALID_ADSL_CONNECTION, /*< nick=InvalidAdslConnection >*/
} NMDeviceAdslError;

NM_DEVICE_ADSL_ERROR_UNKNOWN

unknown or unclassified error

NM_DEVICE_ADSL_ERROR_NOT_ADSL_CONNECTION

the connection was not of ADSL type

NM_DEVICE_ADSL_ERROR_INVALID_ADSL_CONNECTION

the ADSL connection was invalid

NM_DEVICE_ADSL_ERROR

#define NM_DEVICE_ADSL_ERROR nm_device_adsl_error_quark ()


nm_device_adsl_error_quark ()

GQuark              nm_device_adsl_error_quark          (void);

Registers an error quark for NMDeviceAdsl if necessary.

Returns :

the error quark used for NMDeviceAdsl errors.

NM_DEVICE_ADSL_CARRIER

#define NM_DEVICE_ADSL_CARRIER "carrier"


NMDeviceAdsl

typedef struct _NMDeviceAdsl NMDeviceAdsl;


NMDeviceAdslClass

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);
} NMDeviceAdslClass;


nm_device_adsl_new ()

GObject *           nm_device_adsl_new                  (DBusGConnection *connection,
                                                         const char *path);

Creates a new NMDeviceAdsl.

connection :

the DBusGConnection

path :

the DBus object path of the device

Returns :

a new device. [transfer full]

nm_device_adsl_get_carrier ()

gboolean            nm_device_adsl_get_carrier          (NMDeviceAdsl *device);

Whether the device has carrier.

device :

a NMDeviceAdsl

Returns :

TRUE if the device has carrier

Property Details

The "carrier" property

  "carrier"                  gboolean              : Read

Whether the device has carrier.

Default value: FALSE