Qt 4.8
Public Functions | Static Public Functions | Public Variables | Private Functions | List of all members
QNetworkInterfacePrivate Class Reference

#include <qnetworkinterface_p.h>

Inheritance diagram for QNetworkInterfacePrivate:
QSharedData

Public Functions

 QNetworkInterfacePrivate ()
 
 ~QNetworkInterfacePrivate ()
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Static Public Functions

static QString makeHwAddress (int len, uchar *data)
 

Public Variables

QList< QNetworkAddressEntryaddressEntries
 
QNetworkInterface::InterfaceFlags flags
 
QString friendlyName
 
QString hardwareAddress
 
int index
 
QString name
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 

Private Functions

QNetworkInterfacePrivateoperator= (const QNetworkInterfacePrivate &other)
 
 QNetworkInterfacePrivate (const QNetworkInterfacePrivate &other)
 

Detailed Description

Definition at line 76 of file qnetworkinterface_p.h.

Constructors and Destructors

◆ QNetworkInterfacePrivate() [1/2]

QNetworkInterfacePrivate::QNetworkInterfacePrivate ( )
inline

Definition at line 79 of file qnetworkinterface_p.h.

79  : index(0), flags(0)
80  { }
QNetworkInterface::InterfaceFlags flags

◆ ~QNetworkInterfacePrivate()

QNetworkInterfacePrivate::~QNetworkInterfacePrivate ( )
inline

Definition at line 81 of file qnetworkinterface_p.h.

82  { }

◆ QNetworkInterfacePrivate() [2/2]

QNetworkInterfacePrivate::QNetworkInterfacePrivate ( const QNetworkInterfacePrivate other)
private

Functions

◆ makeHwAddress()

QString QNetworkInterfacePrivate::makeHwAddress ( int  len,
uchar data 
)
static

Definition at line 125 of file qnetworkinterface.cpp.

Referenced by interfaceListingWin2k().

126 {
127  QString result;
128  for (int i = 0; i < len; ++i) {
129  if (i)
130  result += QLatin1Char(':');
131 
132  char buf[3];
133 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) && defined(_MSC_VER) && _MSC_VER >= 1400
134  sprintf_s(buf, 3, "%02hX", ushort(data[i]));
135 #else
136  sprintf(buf, "%02hX", ushort(data[i]));
137 #endif
138  result += QLatin1String(buf);
139  }
140  return result;
141 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
static const char * data(const QByteArray &arr)
unsigned short ushort
Definition: qglobal.h:995
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

◆ operator=()

QNetworkInterfacePrivate& QNetworkInterfacePrivate::operator= ( const QNetworkInterfacePrivate other)
private

Properties

◆ addressEntries

QList<QNetworkAddressEntry> QNetworkInterfacePrivate::addressEntries

◆ flags

QNetworkInterface::InterfaceFlags QNetworkInterfacePrivate::flags

Definition at line 85 of file qnetworkinterface_p.h.

Referenced by QNetworkInterface::flags(), and interfaceListing().

◆ friendlyName

QString QNetworkInterfacePrivate::friendlyName

Definition at line 88 of file qnetworkinterface_p.h.

Referenced by QNetworkInterface::humanReadableName().

◆ hardwareAddress

QString QNetworkInterfacePrivate::hardwareAddress

Definition at line 89 of file qnetworkinterface_p.h.

Referenced by QNetworkInterface::hardwareAddress().

◆ index

int QNetworkInterfacePrivate::index

◆ name

QString QNetworkInterfacePrivate::name

Definition at line 87 of file qnetworkinterface_p.h.

Referenced by QNetworkInterface::name().


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