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

QUsbSerialGadget Class Reference
[QtBaseModule]

The QUsbSerialGadget class is used to enable serial communication class of USB gadgets. More...

    #include <QUsbSerialGadget>

Inherits QUsbGadget.

Inherited by QUsbSerialGadgetProvider.

Public Functions

Public Slots

Additional Inherited Members


Detailed Description

The QUsbSerialGadget class is used to enable serial communication class of USB gadgets.

The QUsbSerialGadget class is used to configure the USB gadget hardware as a serial communication class device.

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

See also QUsbManager and UsbGadgetTask.


Member Function Documentation

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

Constructs a new QUsbSerialGadget 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.

bool QUsbSerialGadget::cdcAcm () const

Returns true if the USB gadget uses the CDC ACM protocol.

See also setCdcAcm().

void QUsbSerialGadget::setCdcAcm ( bool acmMode )   [virtual slot]

Set the serial gadget to use the CDC ACM protocol if acmMode is true.

See also cdcAcm().

bool QUsbSerialGadget::supportsCdcAcm () const

Returns true if the USB gadget supports settings whether CDC ACM mode is used.

QByteArray QUsbSerialGadget::tty () const

Returns the name of the tty device.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3