Solid

iokitopticaldisc.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_OPTICALDISC_H
8#define SOLID_BACKENDS_IOKIT_OPTICALDISC_H
9
10#include "iokitvolume.h"
11#include <solid/devices/ifaces/opticaldisc.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace IOKit
18{
19class IOKitOpticalDisc : public IOKitVolume, virtual public Solid::Ifaces::OpticalDisc
20{
23
24public:
25 IOKitOpticalDisc(IOKitDevice *device);
26 IOKitOpticalDisc(const IOKitDevice *device);
27 virtual ~IOKitOpticalDisc();
28
29 // overridden from IOKit::Block because optical discs must
30 // be accessed through the raw device.
31 QString device() const override;
32
33 Solid::OpticalDisc::ContentTypes availableContent() const override;
34 Solid::OpticalDisc::DiscType discType() const override;
35 bool isAppendable() const override;
36 bool isBlank() const override;
37 bool isRewritable() const override;
38 qulonglong capacity() const override;
39};
40}
41}
42}
43
44#endif // SOLID_BACKENDS_IOKIT_OPTICALDISC_H
This device interface is available on optical discs.
DiscType
This enum type defines the type of optical disc it can be.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.