Pages
API Documentation
On this page

Solid::PortableMediaPlayer Class

This class implements Portable Media Player device interface and represents a portable media player attached to the system. More...

  • Header: #include <Solid/PortableMediaPlayer>
  • CMake: find_package(KF6 REQUIRED COMPONENTS Solid)
    target_link_libraries(mytarget PRIVATE KF6::Solid)
  • Inherits: Solid::DeviceInterface

List of all members, including inherited members

Properties

Public Functions

Static Public Members

Detailed Description

A portable media player is a portable device able to play multimedia files.

Some of them have recording capabilities.

Property Documentation

[read-only] supportedDrivers : QStringList

Access functions:

[read-only] supportedProtocols : QStringList

Access functions:

Member Function Documentation

[static] Solid::DeviceInterface::Type PortableMediaPlayer::deviceInterfaceType()

Returns the Solid::DeviceInterface::Type of the PortableMediaPlayer device interface.

See also Solid::DeviceInterface::Type

QVariant PortableMediaPlayer::driverHandle(const QString &driver) const

Returns a driver specific string allowing to access the device.

For example for the "mtp" driver it will return the serial number of the device.

QStringList PortableMediaPlayer::supportedDrivers(QString protocol = QString()) const

Returns known installed device drivers that claim to handle this device using the requested protocol.

If protocol is omitted, returns a list of all drivers supporting the device.

Note: Getter function for property supportedDrivers.

QStringList PortableMediaPlayer::supportedProtocols() const

Returns known protocols this device supports.

This list may be dependent on installed device driver libraries.

Note: Getter function for property supportedProtocols.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.