Solid

fakeportablemediaplayer.cpp
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#include "fakeportablemediaplayer.h"
9
10#include <QStringList>
11
12using namespace Solid::Backends::Fake;
13
14FakePortableMediaPlayer::FakePortableMediaPlayer(FakeDevice *device)
15 : FakeDeviceInterface(device)
16{
17}
18
19FakePortableMediaPlayer::~FakePortableMediaPlayer()
20{
21}
22
23QStringList FakePortableMediaPlayer::supportedProtocols() const
24{
25 return fakeDevice()->property(QStringLiteral("supportedProtocols")).toString().simplified().split(QLatin1Char(','));
26}
27
28QStringList FakePortableMediaPlayer::supportedDrivers(QString protocol) const
29{
30 Q_UNUSED(protocol);
31 return fakeDevice()->property(QStringLiteral("supportedDrivers")).toString().simplified().split(QLatin1Char(','));
32}
33
34QVariant Solid::Backends::Fake::FakePortableMediaPlayer::driverHandle(const QString &driver) const
35{
36 Q_UNUSED(driver);
37 return QVariant();
38}
39
40#include "moc_fakeportablemediaplayer.cpp"
QString simplified() const const
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
QString toString() const const
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.