/usr/include/KF5/Solid/solid/opticaldisc.h is in libkf5solid-dev 5.44.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | /*
Copyright 2006-2007 Kevin Ottens <ervin@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SOLID_OPTICALDISC_H
#define SOLID_OPTICALDISC_H
#include <solid/solid_export.h>
#include <solid/storagevolume.h>
namespace Solid
{
class OpticalDiscPrivate;
class Device;
/**
* This device interface is available on optical discs.
*
* An optical disc is a volume that can be inserted in CD-R*,DVD*,Blu-Ray,HD-DVD drives.
*/
class SOLID_EXPORT OpticalDisc : public StorageVolume
{
Q_OBJECT
Q_PROPERTY(ContentTypes availableContent READ availableContent)
Q_PROPERTY(DiscType discType READ discType)
Q_PROPERTY(bool appendable READ isAppendable)
Q_PROPERTY(bool blank READ isBlank)
Q_PROPERTY(bool rewritable READ isRewritable)
Q_PROPERTY(qulonglong capacity READ capacity)
Q_DECLARE_PRIVATE(OpticalDisc)
friend class Device;
public:
/**
* This enum type defines the type of content available in an optical disc.
*
* - Audio : A disc containing audio
* - Data : A disc containing data
* - VideoCd : A Video Compact Disc (VCD)
* - SuperVideoCd : A Super Video Compact Disc (SVCD)
* - VideoDvd : A Video Digital Versatile Disc (DVD-Video)
*/
enum ContentType {
NoContent = 0x00,
Audio = 0x01,
Data = 0x02,
VideoCd = 0x04,
SuperVideoCd = 0x08,
VideoDvd = 0x10,
VideoBluRay = 0x20
};
Q_ENUM(ContentType)
/**
* This type stores an OR combination of ContentType values.
*/
Q_DECLARE_FLAGS(ContentTypes, ContentType)
Q_FLAG(ContentTypes)
/**
* This enum type defines the type of optical disc it can be.
*
* - UnknownDiscType : An undetermined disc type
* - CdRom : A Compact Disc Read-Only Memory (CD-ROM)
* - CdRecordable : A Compact Disc Recordable (CD-R)
* - CdRewritable : A Compact Disc ReWritable (CD-RW)
* - DvdRom : A Digital Versatile Disc Read-Only Memory (DVD-ROM)
* - DvdRam : A Digital Versatile Disc Random Access Memory (DVD-RAM)
* - DvdRecordable : A Digital Versatile Disc Recordable (DVD-R)
* - DvdRewritable : A Digital Versatile Disc ReWritable (DVD-RW)
* - DvdPlusRecordable : A Digital Versatile Disc Recordable (DVD+R)
* - DvdPlusRewritable : A Digital Versatile Disc ReWritable (DVD+RW)
* - DvdPlusRecordableDuallayer : A Digital Versatile Disc Recordable Dual-Layer (DVD+R DL)
* - DvdPlusRewritableDuallayer : A Digital Versatile Disc ReWritable Dual-Layer (DVD+RW DL)
* - BluRayRom : A Blu-ray Disc (BD)
* - BluRayRecordable : A Blu-ray Disc Recordable (BD-R)
* - BluRayRewritable : A Blu-ray Disc (BD-RE)
* - HdDvdRom: A High Density Digital Versatile Disc (HD DVD)
* - HdDvdRecordable : A High Density Digital Versatile Disc Recordable (HD DVD-R)
* - HdDvdRewritable : A High Density Digital Versatile Disc ReWritable (HD DVD-RW)
*/
enum DiscType { UnknownDiscType = -1,
CdRom, CdRecordable, CdRewritable, DvdRom, DvdRam,
DvdRecordable, DvdRewritable,
DvdPlusRecordable, DvdPlusRewritable,
DvdPlusRecordableDuallayer, DvdPlusRewritableDuallayer,
BluRayRom, BluRayRecordable, BluRayRewritable,
HdDvdRom, HdDvdRecordable, HdDvdRewritable
};
Q_ENUM(DiscType)
private:
/**
* Creates a new OpticalDisc object.
* You generally won't need this. It's created when necessary using
* Device::as().
*
* @param backendObject the device interface object provided by the backend
* @see Solid::Device::as()
*/
explicit OpticalDisc(QObject *backendObject);
public:
/**
* Destroys an OpticalDisc object.
*/
virtual ~OpticalDisc();
/**
* Get the Solid::DeviceInterface::Type of the OpticalDisc device interface.
*
* @return the OpticalDisc device interface type
* @see Solid::Ifaces::Enums::DeviceInterface::Type
*/
static Type deviceInterfaceType()
{
return DeviceInterface::OpticalDisc;
}
/**
* Retrieves the content types this disc contains (audio, video,
* data...).
*
* @return the flag set indicating the available contents
* @see Solid::OpticalDisc::ContentType
*/
ContentTypes availableContent() const;
/**
* Retrieves the disc type (cdr, cdrw...).
*
* @return the disc type
*/
DiscType discType() const;
/**
* Indicates if it's possible to write additional data to the disc.
*
* @return true if the disc is appendable, false otherwise
*/
bool isAppendable() const;
/**
* Indicates if the disc is blank.
*
* @return true if the disc is blank, false otherwise
*/
bool isBlank() const;
/**
* Indicates if the disc is rewritable.
*
* A disc is rewritable if you can write on it several times.
*
* @return true if the disc is rewritable, false otherwise
*/
bool isRewritable() const;
/**
* Retrieves the disc capacity (that is the maximum size of a
* volume could have on this disc).
*
* @return the capacity of the disc in bytes
*/
qulonglong capacity() const;
};
}
Q_DECLARE_OPERATORS_FOR_FLAGS(Solid::OpticalDisc::ContentTypes)
#endif
|