• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Solid

Solid::OpticalDisc

Solid::OpticalDisc Class Reference

This device interface is available on optical discs. More...

#include <opticaldisc.h>

Inheritance diagram for Solid::OpticalDisc:

Inheritance graph
[legend]

List of all members.


Public Types

enum  ContentType {
  Audio = 0x01, Data = 0x02, VideoCd = 0x04, SuperVideoCd = 0x08,
  VideoDvd = 0x10
}
enum  DiscType {
  UnknownDiscType = -1, CdRom, CdRecordable, CdRewritable,
  DvdRom, DvdRam, DvdRecordable, DvdRewritable,
  DvdPlusRecordable, DvdPlusRewritable, DvdPlusRecordableDuallayer, DvdPlusRewritableDuallayer,
  BluRayRom, BluRayRecordable, BluRayRewritable, HdDvdRom,
  HdDvdRecordable, HdDvdRewritable
}

Public Member Functions

ContentTypes availableContent () const
qulonglong capacity () const
DiscType discType () const
bool isAppendable () const
bool isBlank () const
bool isRewritable () const
virtual ~OpticalDisc ()

Static Public Member Functions

static Type deviceInterfaceType ()

Properties

bool appendable
ContentTypes availableContent
bool blank
qulonglong capacity
DiscType discType
bool rewritable

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 37 of file opticaldisc.h.


Member Enumeration Documentation

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:
Audio 
Data 
VideoCd 
SuperVideoCd 
VideoDvd 

Definition at line 61 of file opticaldisc.h.

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 90 of file opticaldisc.h.


Constructor & Destructor Documentation

Solid::OpticalDisc::~OpticalDisc (  )  [virtual]

Destroys an OpticalDisc object.

Definition at line 31 of file opticaldisc.cpp.


Member Function Documentation

ContentTypes Solid::OpticalDisc::availableContent (  )  const

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

..).

Returns:
the flag set indicating the available contents

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

static Type Solid::OpticalDisc::deviceInterfaceType (  )  [inline, static]

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

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

Reimplemented from Solid::StorageVolume.

Definition at line 123 of file opticaldisc.h.

DiscType Solid::OpticalDisc::discType (  )  const

Retrieves the disc type (cdr, cdrw.

..).

Returns:
the disc type

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 48 of file opticaldisc.cpp.

bool Solid::OpticalDisc::isBlank (  )  const

Indicates if the disc is blank.

Returns:
true if the disc is blank, false otherwise

Definition at line 54 of file opticaldisc.cpp.

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 60 of file opticaldisc.cpp.


Property Documentation

bool Solid::OpticalDisc::appendable [read]

Definition at line 44 of file opticaldisc.h.

Solid::OpticalDisc::ContentTypes Solid::OpticalDisc::availableContent [read]

Definition at line 42 of file opticaldisc.h.

bool Solid::OpticalDisc::blank [read]

Definition at line 45 of file opticaldisc.h.

qulonglong Solid::OpticalDisc::capacity [read]

Definition at line 47 of file opticaldisc.h.

Solid::OpticalDisc::DiscType Solid::OpticalDisc::discType [read]

Definition at line 43 of file opticaldisc.h.

bool Solid::OpticalDisc::rewritable [read]

Definition at line 46 of file opticaldisc.h.


The documentation for this class was generated from the following files:
  • opticaldisc.h
  • opticaldisc.cpp

Solid

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal