1 /*
2 SPDX-FileCopyrightText: 2006 Davide Bettio <davide.bettio@kdemail.net>
3 SPDX-FileCopyrightText: 2007 Kevin Ottens <ervin@kde.org>
4 SPDX-FileCopyrightText: 2007 Jeff Mitchell <kde-dev@emailgoeshere.com>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9 #include "portablemediaplayer.h"
10 #include "portablemediaplayer_p.h"
11
12 #include "soliddefs_p.h"
13 #include <solid/devices/ifaces/portablemediaplayer.h>
14
PortableMediaPlayer(QObject * backendObject)15 Solid::PortableMediaPlayer::PortableMediaPlayer(QObject *backendObject)
16 : DeviceInterface(*new PortableMediaPlayerPrivate(), backendObject)
17 {
18 }
19
~PortableMediaPlayer()20 Solid::PortableMediaPlayer::~PortableMediaPlayer()
21 {
22 }
23
supportedProtocols() const24 QStringList Solid::PortableMediaPlayer::supportedProtocols() const
25 {
26 Q_D(const PortableMediaPlayer);
27 return_SOLID_CALL(Ifaces::PortableMediaPlayer *, d->backendObject(), QStringList(), supportedProtocols());
28 }
29
supportedDrivers(QString protocol) const30 QStringList Solid::PortableMediaPlayer::supportedDrivers(QString protocol) const
31 {
32 Q_D(const PortableMediaPlayer);
33 return_SOLID_CALL(Ifaces::PortableMediaPlayer *, d->backendObject(), QStringList(), supportedDrivers(protocol));
34 }
35
driverHandle(const QString & driver) const36 QVariant Solid::PortableMediaPlayer::driverHandle(const QString &driver) const
37 {
38 Q_D(const PortableMediaPlayer);
39 return_SOLID_CALL(Ifaces::PortableMediaPlayer *, d->backendObject(), QVariant(), driverHandle(driver));
40 }
41