Solid

iokitopticaldrive.h
1/*
2 SPDX-FileCopyrightText: 2017 René J.V. Bertin <rjvbertin@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef SOLID_BACKENDS_IOKIT_OPTICALDRIVE_H
8#define SOLID_BACKENDS_IOKIT_OPTICALDRIVE_H
9
10#include "iokitstorage.h"
11#include <solid/devices/ifaces/opticaldrive.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace IOKit
18{
19class IOKitOpticalDrive : public IOKitStorage, virtual public Solid::Ifaces::OpticalDrive
20{
23
24public:
25 explicit IOKitOpticalDrive(IOKitDevice *device);
26 virtual ~IOKitOpticalDrive();
27
28public Q_SLOTS:
29 Solid::OpticalDrive::MediumTypes supportedMedia() const override;
30 int readSpeed() const override;
31 int writeSpeed() const override;
32 QList<int> writeSpeeds() const override;
33 bool eject() override;
34
36 void ejectPressed(const QString &udi) override;
37 void ejectDone(Solid::ErrorType error, QVariant errorData, const QString &udi) override;
38 void ejectRequested(const QString &udi);
39
40private:
41 class Private;
42 Private *d;
43};
44}
45}
46}
47
48#endif // SOLID_BACKENDS_IOKIT_OPTICALDRIVE_H
This device interface is available on CD-ROM drives.
The single responsibility of this class is to create arguments valid for logind Inhibit call.
Definition fakebattery.h:16
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:56:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.