QIviMediaDevice Class

QIviMediaDevice is the base class for all Media Devices More...

Header: #include <QIviMediaDevice>
qmake: QT += ivimedia
Instantiated By: MediaDevice
Inherits: QIviServiceObject
Inherited By:

QIviMediaUsbDevice

Properties

  • name : const QString
  • type : const QString

Public Functions

QIviMediaDevice(QObject *parent = nullptr)
virtual QString name() const = 0
virtual QString type() const = 0

Signals

void nameChanged(QString name)

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

QIviMediaDevice is the base class for all Media Devices

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 QIviMediaDeviceDiscoveryModel, which asks the backend which devices it knows of that are currently connected to the IVI system.

Supported Media Devices

The following media devices are supported by the QIviMedia module:

QIviMediaUsbDevice

Represents a USB device connected to the system

Property Documentation

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)

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

Member Function Documentation

QIviMediaDevice::QIviMediaDevice(QObject *parent = nullptr)

Default constructs an instance of QIviMediaDevice.

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