QIfMediaDevice Class

QIfMediaDevice is the base class for all media devices. More...

Header: #include <QIfMediaDevice>
qmake: QT += ifmedia
In QML: MediaDevice
Inherits: QIfServiceObject
Inherited By:

QIfMediaUsbDevice

Properties

  • name : const QString
  • type : const QString

Public Functions

virtual QString name() const = 0
virtual QString type() const = 0

Signals

void nameChanged(QString name)

Detailed Description

A Media Device is an externally or internally connected device on which media is stored. It can be a physical medium like a USB thumbdrive or a CD/DVD, but it could also be a DLNA Media Server running on a different machine e.g. on the rear seat entertainment system.

Media Devices can be retrieved by using the QIfMediaDeviceDiscoveryModel, which asks the backend which devices it knows of that are currently connected to the Interface Framework system.

Supported Media Devices

The following media devices are supported by the QIfMedia module:

QIfMediaUsbDevice

Represents a USB device connected to the system

Property Documentation

[read-only] name : const QString

The name of the media device. E.g. the CD-name or the name of the thumbdrive.

Access functions:

virtual QString name() const = 0

Notifier signal:

void nameChanged(QString name)

[read-only] type : const QString

The type of the media device. E.g. "usb", "CD". See SupportedMediaDevices for the supported Devices.

Access functions:

virtual QString type() const = 0

© 2024 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.