Solid

udevportablemediaplayer.h
1/*
2 SPDX-FileCopyrightText: 2010 Rafael Fernández López <ereslibre@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_UDEV_PORTABLEMEDIAPLAYER_H
8#define SOLID_BACKENDS_UDEV_PORTABLEMEDIAPLAYER_H
9
10#include "udevdeviceinterface.h"
11#include <solid/devices/ifaces/portablemediaplayer.h>
12
13#include <QStringList>
14
15namespace Solid
16{
17namespace Backends
18{
19namespace UDev
20{
21class UDevDevice;
22
23class PortableMediaPlayer : public DeviceInterface, virtual public Solid::Ifaces::PortableMediaPlayer
24{
27
28public:
29 PortableMediaPlayer(UDevDevice *device);
30 ~PortableMediaPlayer() override;
31
32 QStringList supportedProtocols() const override;
33 QStringList supportedDrivers(QString protocol = QString()) const override;
34 QVariant driverHandle(const QString &driver) const override;
35
36private:
37 /**
38 * Return full absolute path to media-player-info .mpi file, based on ID_MEDIA_PLAYER
39 * udev property. Does not check for existence. Returns empty string in case no reasonable
40 * file path could be determined.
41 */
42 QString mediaPlayerInfoFilePath() const;
43};
44}
45}
46}
47
48#endif // SOLID_BACKENDS_UDEV_PORTABLEMEDIAPLAYER_H
This class implements Portable Media Player device interface and represents a portable media player a...
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.