Solid

frontend/opticaldisc.cpp
1/*
2 SPDX-FileCopyrightText: 2006-2007 Kevin Ottens <ervin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "opticaldisc.h"
8#include "opticaldisc_p.h"
9
10#include "soliddefs_p.h"
11#include <solid/devices/ifaces/opticaldisc.h>
12
13Solid::OpticalDisc::OpticalDisc(QObject *backendObject)
14 : StorageVolume(*new OpticalDiscPrivate(), backendObject)
15{
16}
17
21
22Solid::OpticalDisc::ContentTypes Solid::OpticalDisc::availableContent() const
23{
24 Q_D(const OpticalDisc);
25 return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), ContentTypes(), availableContent());
26}
27
28Solid::OpticalDisc::DiscType Solid::OpticalDisc::discType() const
29{
30 Q_D(const OpticalDisc);
31 return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), UnknownDiscType, discType());
32}
33
35{
36 Q_D(const OpticalDisc);
37 return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), false, isAppendable());
38}
39
41{
42 Q_D(const OpticalDisc);
43 return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), false, isBlank());
44}
45
47{
48 Q_D(const OpticalDisc);
49 return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), false, isRewritable());
50}
51
52qulonglong Solid::OpticalDisc::capacity() const
53{
54 Q_D(const OpticalDisc);
55 return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), 0, capacity());
56}
57
58#include "moc_opticaldisc.cpp"
This device interface is available on optical discs.
This device interface is available on optical discs.
bool isAppendable() const
Indicates if it's possible to write additional data to the disc.
DiscType
This enum type defines the type of optical disc it can be.
~OpticalDisc() override
Destroys an OpticalDisc object.
bool isBlank() const
Indicates if the disc is blank.
bool isRewritable() const
Indicates if the disc is rewritable.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.