1/*
2 SPDX-FileCopyrightText: 2006 Davide Bettio <davide.bettio@kdemail.net>
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_FAKEHW_FAKEOPTICALDISC_H
8#define SOLID_BACKENDS_FAKEHW_FAKEOPTICALDISC_H
9
10#include "fakevolume.h"
11#include <solid/devices/ifaces/opticaldisc.h>
12
13namespace Solid
14{
15namespace Backends
16{
17namespace Fake
18{
19class FakeOpticalDisc : public FakeVolume, virtual public Solid::Ifaces::OpticalDisc
20{
21 Q_OBJECT
22 Q_INTERFACES(Solid::Ifaces::OpticalDisc)
23
24public:
25 explicit FakeOpticalDisc(FakeDevice *device);
26 ~FakeOpticalDisc() override;
27
28public Q_SLOTS:
29 Solid::OpticalDisc::ContentTypes availableContent() const override;
30 Solid::OpticalDisc::DiscType discType() const override;
31 bool isAppendable() const override;
32 bool isBlank() const override;
33 bool isRewritable() const override;
34 qulonglong capacity() const override;
35};
36}
37}
38}
39
40#endif // SOLID_BACKENDS_FAKEHW_FAKEOPTICALDISC_H
41

source code of solid/src/solid/devices/backends/fakehw/fakeopticaldisc.h