Solid::PortableMediaPlayer Class

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

Public Functions

virtual ~PortableMediaPlayer() override
QVariant driverHandle(const QString &driver) const
QStringList supportedDrivers(QString protocol = QString()) const
QStringList supportedProtocols() const

Static Public Members

Solid::DeviceInterface::Type deviceInterfaceType()

Detailed Description

@class Solid::PortableMediaPlayer portablemediaplayer.h <Solid/PortableMediaPlayer>

This class implements Portable Media Player device interface and represents a portable media player attached to the system. A portable media player is a portable device able to play multimedia files. Some of them have even recording capabilities. @author Davide Bettio <davide.bettio@kdemail.net>

Member Function Documentation

[override virtual noexcept] PortableMediaPlayer::~PortableMediaPlayer()

Destroys a portable media player object.

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

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

@return the PortableMediaPlayer device interface type @see Solid::DeviceInterface::Type

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

Retrieves a driver specific string allowing to access the device.

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

@return the driver specific data

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

Retrieves known installed device drivers that claim to handle this device using the requested protocol. If protocol is blank, returns a list of all drivers supporting the device.

@param protocol The protocol to get drivers for. @return a list of installed drivers meeting the criteria

Note: Getter function for property supportedDrivers.

QStringList PortableMediaPlayer::supportedProtocols() const

Retrieves known protocols this device can speak. This list may be dependent on installed device driver libraries.

@return a list of known protocols this device can speak

Note: Getter function for property supportedProtocols.