File indexing completed on 2024-05-12 04:01:51

0001 /*
0002     SPDX-FileCopyrightText: 2006-2007 Kevin Ottens <ervin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "opticaldisc.h"
0008 #include "opticaldisc_p.h"
0009 
0010 #include "soliddefs_p.h"
0011 #include <solid/devices/ifaces/opticaldisc.h>
0012 
0013 Solid::OpticalDisc::OpticalDisc(QObject *backendObject)
0014     : StorageVolume(*new OpticalDiscPrivate(), backendObject)
0015 {
0016 }
0017 
0018 Solid::OpticalDisc::~OpticalDisc()
0019 {
0020 }
0021 
0022 Solid::OpticalDisc::ContentTypes Solid::OpticalDisc::availableContent() const
0023 {
0024     Q_D(const OpticalDisc);
0025     return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), ContentTypes(), availableContent());
0026 }
0027 
0028 Solid::OpticalDisc::DiscType Solid::OpticalDisc::discType() const
0029 {
0030     Q_D(const OpticalDisc);
0031     return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), UnknownDiscType, discType());
0032 }
0033 
0034 bool Solid::OpticalDisc::isAppendable() const
0035 {
0036     Q_D(const OpticalDisc);
0037     return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), false, isAppendable());
0038 }
0039 
0040 bool Solid::OpticalDisc::isBlank() const
0041 {
0042     Q_D(const OpticalDisc);
0043     return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), false, isBlank());
0044 }
0045 
0046 bool Solid::OpticalDisc::isRewritable() const
0047 {
0048     Q_D(const OpticalDisc);
0049     return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), false, isRewritable());
0050 }
0051 
0052 qulonglong Solid::OpticalDisc::capacity() const
0053 {
0054     Q_D(const OpticalDisc);
0055     return_SOLID_CALL(Ifaces::OpticalDisc *, d->backendObject(), 0, capacity());
0056 }
0057 
0058 #include "moc_opticaldisc.cpp"