• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.30 API Reference
  • KDE Home
  • Contact Us
 

Solid

  • Solid
  • OpticalDisc
Public Types | Public Member Functions | Static Public Member Functions | Properties | List of all members
Solid::OpticalDisc Class Reference

#include <opticaldisc.h>

Inheritance diagram for Solid::OpticalDisc:
Solid::StorageVolume Solid::DeviceInterface QObject

Public Types

enum  ContentType {
  NoContent = 0x00, Audio = 0x01, Data = 0x02, VideoCd = 0x04,
  SuperVideoCd = 0x08, VideoDvd = 0x10, VideoBluRay = 0x20
}
 
enum  DiscType {
  UnknownDiscType = -1, CdRom, CdRecordable, CdRewritable,
  DvdRom, DvdRam, DvdRecordable, DvdRewritable,
  DvdPlusRecordable, DvdPlusRewritable, DvdPlusRecordableDuallayer, DvdPlusRewritableDuallayer,
  BluRayRom, BluRayRecordable, BluRayRewritable, HdDvdRom,
  HdDvdRecordable, HdDvdRewritable
}
 
- Public Types inherited from Solid::StorageVolume
enum  UsageType {
  Other = 0, Unused = 1, FileSystem = 2, PartitionTable = 3,
  Raid = 4, Encrypted = 5
}
 
- Public Types inherited from Solid::DeviceInterface
enum  Type {
  Unknown = 0, GenericInterface = 1, Processor = 2, Block = 3,
  StorageAccess = 4, StorageDrive = 5, OpticalDrive = 6, StorageVolume = 7,
  OpticalDisc = 8, Camera = 9, PortableMediaPlayer = 10, NetworkInterface = 11,
  AcAdapter = 12, Battery = 13, Button = 14, AudioInterface = 15,
  DvbInterface = 16, Video = 17, SerialInterface = 18, SmartCardReader = 19,
  InternetGateway = 20, NetworkShare = 21, Last = 0xffff
}
 

Public Member Functions

virtual ~OpticalDisc ()
 
ContentTypes availableContent () const
 
qulonglong capacity () const
 
DiscType discType () const
 
bool isAppendable () const
 
bool isBlank () const
 
bool isRewritable () const
 
- Public Member Functions inherited from Solid::StorageVolume
virtual ~StorageVolume ()
 
Device encryptedContainer () const
 
QString fsType () const
 
bool isIgnored () const
 
QString label () const
 
qulonglong size () const
 
UsageType usage () const
 
QString uuid () const
 
- Public Member Functions inherited from Solid::DeviceInterface
virtual ~DeviceInterface ()
 
bool isValid () const
 

Static Public Member Functions

static Type deviceInterfaceType ()
 
- Static Public Member Functions inherited from Solid::StorageVolume
static Type deviceInterfaceType ()
 
- Static Public Member Functions inherited from Solid::DeviceInterface
static Type stringToType (const QString &type)
 
static QString typeDescription (Type type)
 
static QString typeToString (Type type)
 

Properties

bool appendable
 
ContentTypes availableContent
 
bool blank
 
qulonglong capacity
 
DiscType discType
 
bool rewritable
 
- Properties inherited from Solid::StorageVolume
QString fsType
 
bool ignored
 
QString label
 
qulonglong size
 
UsageType usage
 
QString uuid
 

Additional Inherited Members

- Protected Member Functions inherited from Solid::StorageVolume
 StorageVolume (StorageVolumePrivate &dd, QObject *backendObject)
 
- Protected Member Functions inherited from Solid::DeviceInterface
 DeviceInterface (DeviceInterfacePrivate &dd, QObject *backendObject)
 
- Protected Attributes inherited from Solid::DeviceInterface
DeviceInterfacePrivate * d_ptr
 

Detailed Description

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.

Definition at line 38 of file opticaldisc.h.

Member Enumeration Documentation

◆ ContentType

enum Solid::OpticalDisc::ContentType

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)
Enumerator
NoContent 
Audio 
Data 
VideoCd 
SuperVideoCd 
VideoDvd 
VideoBluRay 

Definition at line 62 of file opticaldisc.h.

◆ DiscType

enum Solid::OpticalDisc::DiscType

This type stores an OR combination of ContentType values.

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)
Enumerator
UnknownDiscType 
CdRom 
CdRecordable 
CdRewritable 
DvdRom 
DvdRam 
DvdRecordable 
DvdRewritable 
DvdPlusRecordable 
DvdPlusRewritable 
DvdPlusRecordableDuallayer 
DvdPlusRewritableDuallayer 
BluRayRom 
BluRayRecordable 
BluRayRewritable 
HdDvdRom 
HdDvdRecordable 
HdDvdRewritable 

Definition at line 99 of file opticaldisc.h.

Constructor & Destructor Documentation

◆ ~OpticalDisc()

Solid::OpticalDisc::~OpticalDisc ( )
virtual

Destroys an OpticalDisc object.

Definition at line 32 of file opticaldisc.cpp.

Member Function Documentation

◆ availableContent()

ContentTypes Solid::OpticalDisc::availableContent ( ) const

Retrieves the content types this disc contains (audio, video, data...).

Returns
the flag set indicating the available contents
See also
Solid::OpticalDisc::ContentType

◆ capacity()

qulonglong Solid::OpticalDisc::capacity ( ) const

Retrieves the disc capacity (that is the maximum size of a volume could have on this disc).

Returns
the capacity of the disc in bytes

◆ deviceInterfaceType()

static Type Solid::OpticalDisc::deviceInterfaceType ( )
inlinestatic

Get the Solid::DeviceInterface::Type of the OpticalDisc device interface.

Returns
the OpticalDisc device interface type
See also
Solid::Ifaces::Enums::DeviceInterface::Type

Definition at line 132 of file opticaldisc.h.

◆ discType()

DiscType Solid::OpticalDisc::discType ( ) const

Retrieves the disc type (cdr, cdrw...).

Returns
the disc type

◆ isAppendable()

bool Solid::OpticalDisc::isAppendable ( ) const

Indicates if it's possible to write additional data to the disc.

Returns
true if the disc is appendable, false otherwise

Definition at line 49 of file opticaldisc.cpp.

◆ isBlank()

bool Solid::OpticalDisc::isBlank ( ) const

Indicates if the disc is blank.

Returns
true if the disc is blank, false otherwise

Definition at line 55 of file opticaldisc.cpp.

◆ isRewritable()

bool Solid::OpticalDisc::isRewritable ( ) const

Indicates if the disc is rewritable.

A disc is rewritable if you can write on it several times.

Returns
true if the disc is rewritable, false otherwise

Definition at line 61 of file opticaldisc.cpp.

Property Documentation

◆ appendable

bool Solid::OpticalDisc::appendable
read

Definition at line 45 of file opticaldisc.h.

◆ availableContent

Solid::OpticalDisc::ContentTypes Solid::OpticalDisc::availableContent
read

Definition at line 43 of file opticaldisc.h.

◆ blank

bool Solid::OpticalDisc::blank
read

Definition at line 46 of file opticaldisc.h.

◆ capacity

qulonglong Solid::OpticalDisc::capacity
read

Definition at line 48 of file opticaldisc.h.

◆ discType

Solid::OpticalDisc::DiscType Solid::OpticalDisc::discType
read

Definition at line 44 of file opticaldisc.h.

◆ rewritable

bool Solid::OpticalDisc::rewritable
read

Definition at line 47 of file opticaldisc.h.


The documentation for this class was generated from the following files:
  • opticaldisc.h
  • opticaldisc.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Wed May 10 2017 10:41:40 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Solid

Skip menu "Solid"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.30 API Reference

Skip menu "kdelibs-4.14.30 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal