OobsIfaceISDN

OobsIfaceISDN — Object that represents an individual ISDN interface.

Synopsis




                    OobsIfaceISDN;
void                oobs_iface_isdn_set_login           (OobsIfaceISDN *iface,
                                                         const gchar *login);
const gchar*        oobs_iface_isdn_get_login           (OobsIfaceISDN *iface);
void                oobs_iface_isdn_set_password        (OobsIfaceISDN *iface,
                                                         const gchar *password);
void                oobs_iface_isdn_set_phone_number    (OobsIfaceISDN *iface,
                                                         const gchar *phone_number);
const gchar*        oobs_iface_isdn_get_phone_number    (OobsIfaceISDN *iface);
void                oobs_iface_isdn_set_phone_prefix    (OobsIfaceISDN *iface,
                                                         const gchar *phone_prefix);
const gchar*        oobs_iface_isdn_get_phone_prefix    (OobsIfaceISDN *iface);
void                oobs_iface_isdn_set_default_gateway (OobsIfaceISDN *iface,
                                                         gboolean default_gw);
gboolean            oobs_iface_isdn_get_default_gateway (OobsIfaceISDN *iface);
void                oobs_iface_isdn_set_use_peer_dns    (OobsIfaceISDN *iface,
                                                         gboolean use_peer_dns);
gboolean            oobs_iface_isdn_get_use_peer_dns    (OobsIfaceISDN *iface);
void                oobs_iface_isdn_set_persistent      (OobsIfaceISDN *iface,
                                                         gboolean persistent);
gboolean            oobs_iface_isdn_get_persistent      (OobsIfaceISDN *iface);
void                oobs_iface_isdn_set_peer_noauth     (OobsIfaceISDN *iface,
                                                         gboolean use_peer_dns);
gboolean            oobs_iface_isdn_get_peer_noauth     (OobsIfaceISDN *iface);

Object Hierarchy


  GObject
   +----OobsIface
         +----OobsIfaceISDN
               +----OobsIfaceModem

Properties


  "default-gw"               gboolean              : Read / Write
  "iface-section"            gchararray            : Read / Write
  "login"                    gchararray            : Read / Write
  "password"                 gchararray            : Read / Write
  "peer-dns"                 gboolean              : Read / Write
  "peer-noauth"              gboolean              : Read / Write
  "persistent"               gboolean              : Read / Write
  "phone-number"             gchararray            : Read / Write
  "phone-prefix"             gchararray            : Read / Write

Description

Details

OobsIfaceISDN

typedef struct _OobsIfaceISDN OobsIfaceISDN;


oobs_iface_isdn_set_login ()

void                oobs_iface_isdn_set_login           (OobsIfaceISDN *iface,
                                                         const gchar *login);

Sets a new login for the ISDN connection, overwriting the previous one.

iface : An OobsIfaceISDN.
login : a new login for the ISDN connection.

oobs_iface_isdn_get_login ()

const gchar*        oobs_iface_isdn_get_login           (OobsIfaceISDN *iface);

Returns the login used for this ISDN connection.

iface : An OobsIfaceISDN.
Returns : A pointer to the login. This string must not be freed, modified or stored.

oobs_iface_isdn_set_password ()

void                oobs_iface_isdn_set_password        (OobsIfaceISDN *iface,
                                                         const gchar *password);

Sets a new password for the ISDN connection, overwriting the previous one.

iface : An OobsIfaceISDN.
password : a new password for the ISDN connection.

oobs_iface_isdn_set_phone_number ()

void                oobs_iface_isdn_set_phone_number    (OobsIfaceISDN *iface,
                                                         const gchar *phone_number);

Sets a new phone number for the ISDN connection, overwriting the previous one.

iface : An OobsIfaceISDN.
phone_number : a new phone number for the ISDN connection.

oobs_iface_isdn_get_phone_number ()

const gchar*        oobs_iface_isdn_get_phone_number    (OobsIfaceISDN *iface);

Returns the phone number used for this ISDN connection.

iface : An OobsIfaceISDN.
Returns : A pointer to the phone number. This string must not be freed, modified or stored.

oobs_iface_isdn_set_phone_prefix ()

void                oobs_iface_isdn_set_phone_prefix    (OobsIfaceISDN *iface,
                                                         const gchar *phone_prefix);

Sets a new phone number prefix for the ISDN connection, overwriting the previous one.

iface : An OobsIfaceISDN.
phone_prefix : a new phone number prefix for the ISDN connection.

oobs_iface_isdn_get_phone_prefix ()

const gchar*        oobs_iface_isdn_get_phone_prefix    (OobsIfaceISDN *iface);

Returns the phone number prefix used for this ISDN connection.

iface : An OobsIfaceISDN.
Returns : A pointer to the phone number prefix. This string must not be freed, modified or stored.

oobs_iface_isdn_set_default_gateway ()

void                oobs_iface_isdn_set_default_gateway (OobsIfaceISDN *iface,
                                                         gboolean default_gw);

Sets whether the interface is the default gateway to internet.

iface : An OobsIfaceISDN.
default_gw : TRUE to make this interface the default gateway to Internet.

oobs_iface_isdn_get_default_gateway ()

gboolean            oobs_iface_isdn_get_default_gateway (OobsIfaceISDN *iface);

Returns whether the interface is the default gateway to Internet.

iface : An OobsIfaceISDN.
Returns : TRUE if the interface is the default gateway.

oobs_iface_isdn_set_use_peer_dns ()

void                oobs_iface_isdn_set_use_peer_dns    (OobsIfaceISDN *iface,
                                                         gboolean use_peer_dns);

Sets whether to use the DNS servers that the ISP specifies.

iface : An OobsIfaceISDN.
use_peer_dns : TRUE to use DNS servers specified by the ISP.

oobs_iface_isdn_get_use_peer_dns ()

gboolean            oobs_iface_isdn_get_use_peer_dns    (OobsIfaceISDN *iface);

Returns whether the DNS servers specified by the ISP will be used.

iface : An OobsIfaceISDN.
Returns : TRUE if the DNS servers will be used.

oobs_iface_isdn_set_persistent ()

void                oobs_iface_isdn_set_persistent      (OobsIfaceISDN *iface,
                                                         gboolean persistent);

Sets whether the interface will try to reconnect if the connection fails.

iface : An OobsIfaceISDN.
persistent : TRUE to try to reconnect if the connection fails.

oobs_iface_isdn_get_persistent ()

gboolean            oobs_iface_isdn_get_persistent      (OobsIfaceISDN *iface);

Returns whether the interface will try to reconnect if the connection fails.

iface : An OobsIfaceISDN.
Returns : TRUE if the interface will try to reconnect.

oobs_iface_isdn_set_peer_noauth ()

void                oobs_iface_isdn_set_peer_noauth     (OobsIfaceISDN *iface,
                                                         gboolean use_peer_dns);

Sets whether the peer has to authenticate itself.

iface : An OobsIfaceISDN.
use_peer_dns : TRUE if the peer has to authenticate itself.

oobs_iface_isdn_get_peer_noauth ()

gboolean            oobs_iface_isdn_get_peer_noauth     (OobsIfaceISDN *iface);

Returns whether the peer is required to authenticate itself.

iface : An OobsIfaceISDN.
Returns : TRUE if the peer is required to authenticate itself.

Property Details

The "default-gw" property

  "default-gw"               gboolean              : Read / Write

Whether to use the iface as the default gateway.

Default value: TRUE


The "iface-section" property

  "iface-section"            gchararray            : Read / Write

Name of the wvdial section or the provider name.

Default value: NULL


The "login" property

  "login"                    gchararray            : Read / Write

Login for the connection.

Default value: NULL


The "password" property

  "password"                 gchararray            : Read / Write

Password for the connection.

Default value: NULL


The "peer-dns" property

  "peer-dns"                 gboolean              : Read / Write

Whether to use the ISP DNS.

Default value: TRUE


The "peer-noauth" property

  "peer-noauth"              gboolean              : Read / Write

Whether the ISP has to authenticate itself or not.

Default value: TRUE


The "persistent" property

  "persistent"               gboolean              : Read / Write

Whether to persist if the connection fails.

Default value: FALSE


The "phone-number" property

  "phone-number"             gchararray            : Read / Write

Phone number for the connection.

Default value: NULL


The "phone-prefix" property

  "phone-prefix"             gchararray            : Read / Write

Phone prefix for the connection.

Default value: NULL