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

QUsbEthernetGadget Class Reference
[QtBaseModule]

The QUsbEthernetGadget class is used to enable ethernet communication class of USB gadgets. More...

    #include <QUsbEthernetGadget>

Inherits QUsbGadget.

Inherited by QUsbEthernetGadgetProvider.

Public Functions

Public Slots

Additional Inherited Members


Detailed Description

The QUsbEthernetGadget class is used to enable ethernet communication class of USB gadgets.

The QUsbEthernetGadget class is used to configure the USB gadget hardware as an ethernet communication class device.

    QUsbEthernetGadget *gadget = new QUsbEthernetGadget;
    if (gadget->available()) {
        connect(gadget, SIGNAL(activated()), this, SLOT(ethernetActivated()));
        gadget->activate();
    }

See also QUsbManager and UsbGadgetTask.


Member Function Documentation

QUsbEthernetGadget::QUsbEthernetGadget ( const QString & group = QString(), QObject * parent = 0, QAbstractIpcInterface::Mode mode = Client )

Constructs a new QUsbEthernetGadget object in group and attach it to parent. If mode is Client, then the object is constructed in client mode and group may be empty to indicate that the default group should be used.

QByteArray QUsbEthernetGadget::interface () const

Returns the name of the network interface. A null bytearray is returned if the gadget is not active().

QByteArray QUsbEthernetGadget::localMac () const

Returns the local MAC address.

See also setLocalMac().

QByteArray QUsbEthernetGadget::remoteMac () const

Returns the remote MAC address.

See also setRemoteMac().

void QUsbEthernetGadget::setLocalMac ( const QByteArray & mac )   [virtual slot]

Sets the local MAC address to mac.

See also localMac().

void QUsbEthernetGadget::setRemoteMac ( const QByteArray & mac )   [virtual slot]

Sets the remote MAC address to mac.

See also remoteMac().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3