| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2006 Davide Bettio <davide.bettio@kdemail.net> |
| 3 | SPDX-FileCopyrightText: 2007 Jeff Mitchell <kde-dev@emailgoeshere.com> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
| 6 | */ |
| 7 | |
| 8 | #ifndef SOLID_BACKENDS_FAKEHW_FAKEPORTABLEMEDIAPLAYER_H |
| 9 | #define SOLID_BACKENDS_FAKEHW_FAKEPORTABLEMEDIAPLAYER_H |
| 10 | |
| 11 | #include "fakedeviceinterface.h" |
| 12 | #include <solid/devices/ifaces/portablemediaplayer.h> |
| 13 | |
| 14 | namespace Solid |
| 15 | { |
| 16 | namespace Backends |
| 17 | { |
| 18 | namespace Fake |
| 19 | { |
| 20 | class FakePortableMediaPlayer : public FakeDeviceInterface, virtual public Solid::Ifaces::PortableMediaPlayer |
| 21 | { |
| 22 | Q_OBJECT |
| 23 | Q_INTERFACES(Solid::Ifaces::PortableMediaPlayer) |
| 24 | |
| 25 | public: |
| 26 | explicit FakePortableMediaPlayer(FakeDevice *device); |
| 27 | ~FakePortableMediaPlayer() override; |
| 28 | |
| 29 | public Q_SLOTS: |
| 30 | QStringList supportedProtocols() const override; |
| 31 | QStringList supportedDrivers(QString protocol) const override; |
| 32 | QVariant driverHandle(const QString &driver) const override; |
| 33 | }; |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #endif // SOLID_BACKENDS_FAKEHW_FAKEPORTABLEMEDIAPLAYER_H |
| 39 | |