Solid

frontend/portablemediaplayer.h
1 /*
2  SPDX-FileCopyrightText: 2006 Davide Bettio <[email protected]>
3  SPDX-FileCopyrightText: 2007 Kevin Ottens <[email protected]>
4  SPDX-FileCopyrightText: 2007 Jeff Mitchell <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef SOLID_PORTABLEMEDIAPLAYER_H
10 #define SOLID_PORTABLEMEDIAPLAYER_H
11 
12 #include <QStringList>
13 #include <QVariant>
14 
15 #include <solid/solid_export.h>
16 
17 #include <solid/deviceinterface.h>
18 
19 namespace Solid
20 {
21 class PortableMediaPlayerPrivate;
22 class Device;
23 
31 class SOLID_EXPORT PortableMediaPlayer : public DeviceInterface
32 {
33  Q_OBJECT
34  Q_PROPERTY(QStringList supportedProtocols READ supportedProtocols)
35  Q_PROPERTY(QStringList supportedDrivers READ supportedDrivers)
36  Q_DECLARE_PRIVATE(PortableMediaPlayer)
37  friend class Device;
38 
39 public:
40 
41 private:
50  explicit PortableMediaPlayer(QObject *backendObject);
51 
52 public:
56  virtual ~PortableMediaPlayer();
57 
65  {
66  return DeviceInterface::PortableMediaPlayer;
67  }
68 
75  QStringList supportedProtocols() const;
76 
85  QStringList supportedDrivers(QString protocol = QString()) const;
86 
95  QVariant driverHandle(const QString &driver) const;
96 };
97 }
98 
99 #endif
This class implements Portable Media Player device interface and represents a portable media player a...
This class allows applications to deal with devices available in the underlying system.
Base class of all the device interfaces.
static Type deviceInterfaceType()
Get the Solid::DeviceInterface::Type of the PortableMediaPlayer device interface. ...
Type
This enum type defines the type of device interface that a Device can have.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 22:50:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.