Home · All Classes · Annotated · Functions

QNetworkState Class Reference

The QNetworkState class provides information about the connectivity state of the Qtopia device. More...

#include <QNetworkState>

Inherits QObject.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QNetworkState class provides information about the connectivity state of the Qtopia device.


Member Function Documentation

QNetworkState::QNetworkState ( QObject * parent = 0 )

Constructs a QNetworkState object with the specified parent.

QNetworkState::~QNetworkState ()   [virtual]

Destructs the QNetworkState object.

QHostAddress QNetworkState::address ( const QString & iface ) const

Returns the host address associated to iface. If the network device represented by iface is not online or doesn't have an IP address this function returns a default constructed QHostAddress object.

void QNetworkState::connected ()   [signal]

This signal is send when the device state changes from offline to online.

void QNetworkState::defaultGatewayChanged ( QString iface, QHostAddress localAddress )   [signal]

This signal is emitted whenever a new default gateway has been set for internet connections. iface is the new interface which is used as gateway and localAddress contains the IP address associated to iface.

QString QNetworkState::defaultWapAccount () const

Returns the default WAP account. If no default account has been set this function returns an empty string.

void QNetworkState::disconnected ()   [signal]

This signal is send when the device state changes from online to offline.

QString QNetworkState::gateway () const

Returns the network interface that is currently used as default gateway for network packages. If the network is offline the function returns an empty string.

QStringList QNetworkState::interfaces () const

This function returns the list of all existing interfaces independent of their connectivity state.

QStringList QNetworkState::interfacesOnline () const

This function returns the list of all interfaces which are online at the time of the function call.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7