QIviMediaUsbDevice Class

QIviMediaUsbDevice represents a USB device connected to the system. More...

Header: #include <QIviMediaUsbDevice>
qmake: QT += ivimedia
Instantiated By: MediaUsbDevice
Inherits: QIviMediaDevice

Public Functions

QIviMediaUsbDevice(QObject *parent = nullptr)

Reimplemented Public Functions

virtual QString type() const override

Public Slots

virtual void eject() = 0
  • 1 public slot inherited from QObject

Additional Inherited Members

Detailed Description

QIviMediaUsbDevice represents a USB device connected to the system.

This device instance can be used as a serviceObject for other Features e.g. the QIviSearchAndBrowseModel to browse through the content. Whether a feature is supported by this device is decided by the backend implementing it.

Note: The type of this device is "usb"

Member Function Documentation

QIviMediaUsbDevice::QIviMediaUsbDevice(QObject *parent = nullptr)

Default constructs an instance of QIviMediaUsbDevice.

[pure virtual slot] void QIviMediaUsbDevice::eject()

Ejects the USB media device and makes sure all data is written to the thumb-drive so it can safely be removed.

[override virtual] QString QIviMediaUsbDevice::type() const

Reimplemented from QIviMediaDevice::type().

Returns "usb".

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.