QNetworkInterface Class Reference

#include <qnetworkinterface.h>

Class Description

Definition at line 87 of file qnetworkinterface.h.

Public Types

enum  InterfaceFlag {
  IsUp = 0x1, IsRunning = 0x2, CanBroadcast = 0x4, IsLoopBack = 0x8,
  IsPointToPoint = 0x10, CanMulticast = 0x20
}
 

Public Member Functions

 QNetworkInterface ()
 
 QNetworkInterface (const QNetworkInterface &other)
 
QNetworkInterfaceoperator= (const QNetworkInterface &other)
 
 ~QNetworkInterface ()
 
bool isValid () const
 
int index () const
 
QString name () const
 
QString humanReadableName () const
 
InterfaceFlags flags () const
 
QString hardwareAddress () const
 
QList< QNetworkAddressEntryaddressEntries () const
 

Static Public Member Functions

static QNetworkInterface interfaceFromName (const QString &name)
 
static QNetworkInterface interfaceFromIndex (int index)
 
static QList< QNetworkInterfaceallInterfaces ()
 
static QList< QHostAddressallAddresses ()
 

Friends

class QNetworkInterfacePrivate
 

Member Enumeration Documentation

Enumerator
IsUp 
IsRunning 
CanBroadcast 
IsLoopBack 
IsPointToPoint 
CanMulticast 

Definition at line 90 of file qnetworkinterface.h.

Constructor & Destructor Documentation

Member Function Documentation

QNetworkInterface& operator= ( const QNetworkInterface other)
bool isValid ( ) const
int index ( ) const
QString name ( ) const
QString humanReadableName ( ) const
InterfaceFlags flags ( ) const
QString hardwareAddress ( ) const
QList<QNetworkAddressEntry> addressEntries ( ) const
static QNetworkInterface interfaceFromName ( const QString name)
static
static QNetworkInterface interfaceFromIndex ( int  index)
static
static QList<QNetworkInterface> allInterfaces ( )
static
static QList<QHostAddress> allAddresses ( )
static

Friends And Related Function Documentation

friend class QNetworkInterfacePrivate
friend

Definition at line 120 of file qnetworkinterface.h.


The documentation for this class was generated from the following file: