Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QNetworkConnectionManager Class Reference
[QtBaseModule]

The QNetworkConnectionManager class allows applications to receive notifications when network connections are added and/or removed from Qtopia. More...

    #include <QNetworkConnectionManager>

Inherits QObject.

Public Functions

Signals

Static Public Members

Additional Inherited Members


Detailed Description

The QNetworkConnectionManager class allows applications to receive notifications when network connections are added and/or removed from Qtopia.

The QNetworkConnectionManager acts as a factory for new QNetworkConnection::Identity object. These object can then be used to construct QNetworkConnection objects.

The connectionAdded() and connectionRemoved() signals are emitted when the user adds or removes network connections. New connections are usually added by configuring new network interfaces or adding access point parameter to an already existing WLAN device.

    QNetworkConnectionManager* manager = new QNetworkConnectionManager();
    connect( manager, SIGNAL(connectionAdded()),
                this, SLOT(newConnection()) );

See also QNetworkConnection.


Member Function Documentation

QNetworkConnectionManager::QNetworkConnectionManager ( QObject * parent = 0 )

Constructs a new QNetworkConnectionManager with the specified parent.

QNetworkConnectionManager::~QNetworkConnectionManager ()

Destroys the QNetworkConnectionManager instance.

void QNetworkConnectionManager::connectionAdded ()   [signal]

Emitted whenever a new network connection is added to Qtopia. The most likely reason for a new connection is a new network configuration created by the user.

void QNetworkConnectionManager::connectionRemoved ()   [signal]

Emitted whenever an existing network connection was removed. This is usually caused by the user who deleted a network configuration. Any QNetworkConnection object which was based on the deleted configuration becomes invalid.

QNetworkConnection::Identities QNetworkConnectionManager::connections ()   [static]

Returns a list of all network connection identities known to Qtopia. These identities can be used to create QNetworkConnection instances.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3