Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QUsbGadget class is the base class of all USB gadget classes. More...
#include <QUsbGadget>
Inherits QAbstractIpcInterface.
Inherited by QUsbEthernetGadget, QUsbSerialGadget, and QUsbStorageGadget.
The QUsbGadget class is the base class of all USB gadget classes.
QUsbGadget and derived classes provides information on the supported USB device classes and an API for controlling the USB gadget hardware. The USB gadget API is split into two sets of classes: the provider classes and the client classes. Both sets are subclasses of QUsbGadget.
The client classes provide an API for querying and controlling the USB gadget hardware. Client classes are created with the QAbstractIpcInterface::Client mode.
The provider classes implement the backend functionality that interfaces with the USB hardware. Provider classes are created with the QAbstractIpcInterface::Server mode. Qt Extended comes with an implementation for the standard Linux USB gadget stack. Support for custom USB gadget drivers is achieved by creating addition subclasses of QUsbGadget. Support for alternative USB gadget stacks is achieved by implementing alternative provider classes.
See also QUsbManager and UsbGadgetTask.
Constructs a new QUsbGadget object for the interface called interfaceName, on group and attach it to parent. If mode is Server then the object is constructed in server mode and register with QUsbManager. 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. o
Activates the USB gadget. Deactivating other gadgets if necessary.
The activated() signal will be emitted to indicate that the USB gadget has been activated and is ready for use. On failure the deactivated() signal is emitted.
Signal which is emitted when the activation of this USB gadget fails.
Signal which is emitted when this USB gadget activates.
Returns true if the USB gadget is active.
Deactivates the USB gadget.
The deactivated() signal will be emitted to indicate that the USB gadget has been deactivated. On failure the activated() signal is emitted.
Signal which is emitted when the deactivation of this USB gadget fails.
Signal which is emitted when this USB gadget deactivates.
Returns the name of the gadget. The value that is returned is the same as the Usb.conf settings group associated with this gadget.
Returns the product string. Returns a null bytearray if supportsProduct() returns false.
See also setProduct().
Returns the product id. Returns 0 if supportsProductId() returns false.
See also setProductId().
Saves the settings to the Trolltech/Usb.conf configuration file.
Sets the product string to product.
See also product().
Sets the product id to id.
See also productId().
Sets the vendor string to vendor.
See also vendor().
Sets the vendor id to id.
See also vendorId().
Returns true if the USB gadget supports setting and getting the product string.
Returns true if the USB gadget supports setting and getting the product id.
Returns true if the USB gadget supports setting and getting the vendor string.
Returns true if the USB gadget supports setting and getting the vendor id.
Returns the vendor string. Returns a null bytearray if supportsVendor() returns false.
See also setVendor().
Returns the vendor id. Returns 0 if supportsVendorId() returns false.
See also setVendorId().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |