libnm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
Synopsis
enum NMDeviceAdslError; #define NM_DEVICE_ADSL_ERROR GQuark nm_device_adsl_error_quark (void
); #define NM_DEVICE_ADSL_CARRIER NMDeviceAdsl; NMDeviceAdslClass; GObject * nm_device_adsl_new (DBusGConnection *connection
,const char *path
); gboolean nm_device_adsl_get_carrier (NMDeviceAdsl *device
);
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_quark ()
GQuark nm_device_adsl_error_quark (void
);
Registers an error quark for NMDeviceAdsl if necessary.
Returns : |
the error quark used for NMDeviceAdsl errors. |
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.
|
the DBusGConnection |
|
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.
|
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