Solid

ifaces/portablemediaplayer.h
1 /*
2  SPDX-FileCopyrightText: 2006 Davide Bettio <[email protected]>
3  SPDX-FileCopyrightText: 2007 Jeff Mitchell <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #ifndef SOLID_IFACES_PORTABLEMEDIAPLAYER_H
9 #define SOLID_IFACES_PORTABLEMEDIAPLAYER_H
10 
11 #include <solid/devices/ifaces/deviceinterface.h>
12 #include <solid/portablemediaplayer.h>
13 
14 namespace Solid
15 {
16 namespace Ifaces
17 {
25 class PortableMediaPlayer : virtual public DeviceInterface
26 {
27 public:
31  virtual ~PortableMediaPlayer();
32 
47  virtual QStringList supportedProtocols() const = 0;
48 
63  virtual QStringList supportedDrivers(QString protocol = QString()) const = 0;
64 
73  virtual QVariant driverHandle(const QString &driver) const = 0;
74 };
75 }
76 }
77 
78 Q_DECLARE_INTERFACE(Solid::Ifaces::PortableMediaPlayer, "org.kde.Solid.Ifaces.PortableMediaPlayer/0.1")
79 
80 #endif
Base interface of all the device interfaces.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
virtual QStringList supportedProtocols() const =0
Retrieves known protocols this device can speak.
virtual QVariant driverHandle(const QString &driver) const =0
Retrieves a driver specific string allowing to access the device.
virtual ~PortableMediaPlayer()
Destroys a portable media player object.
virtual QStringList supportedDrivers(QString protocol=QString()) const =0
Retrieves known installed device drivers that claim to handle this device using the requested protoco...
This class implements Portable Media Player device interface and represents a portable media player a...
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.