File indexing completed on 2024-06-09 04:00:36
0001 /* 0002 SPDX-FileCopyrightText: 2006 Davide Bettio <davide.bettio@kdemail.net> 0003 SPDX-FileCopyrightText: 2007 Jeff Mitchell <kde-dev@emailgoeshere.com> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #include "fakeportablemediaplayer.h" 0009 0010 #include <QStringList> 0011 0012 using namespace Solid::Backends::Fake; 0013 0014 FakePortableMediaPlayer::FakePortableMediaPlayer(FakeDevice *device) 0015 : FakeDeviceInterface(device) 0016 { 0017 } 0018 0019 FakePortableMediaPlayer::~FakePortableMediaPlayer() 0020 { 0021 } 0022 0023 QStringList FakePortableMediaPlayer::supportedProtocols() const 0024 { 0025 return fakeDevice()->property("supportedProtocols").toString().simplified().split(','); 0026 } 0027 0028 QStringList FakePortableMediaPlayer::supportedDrivers(QString protocol) const 0029 { 0030 Q_UNUSED(protocol); 0031 return fakeDevice()->property("supportedDrivers").toString().simplified().split(','); 0032 } 0033 0034 QVariant Solid::Backends::Fake::FakePortableMediaPlayer::driverHandle(const QString &driver) const 0035 { 0036 Q_UNUSED(driver); 0037 return QVariant(); 0038 } 0039 0040 #include "moc_fakeportablemediaplayer.cpp"