KDE 4.4 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

OpticalDisc Class Reference

from PyKDE4.solid import *

Inherits: Solid.StorageVolume → Solid.DeviceInterface → QObject
Namespace: Solid.OpticalDisc

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.


Enumerations

ContentType { Audio, Data, VideoCd, SuperVideoCd, VideoDvd }
DiscType { UnknownDiscType, CdRom, CdRecordable, CdRewritable, DvdRom, DvdRam, DvdRecordable, DvdRewritable, DvdPlusRecordable, DvdPlusRewritable, DvdPlusRecordableDuallayer, DvdPlusRewritableDuallayer, BluRayRom, BluRayRecordable, BluRayRewritable, HdDvdRom, HdDvdRecordable, HdDvdRewritable }

Methods

 __init__ (self, QObject backendObject)
Solid.OpticalDisc.ContentTypes availableContent (self)
long capacity (self)
Solid.DeviceInterface.Type deviceInterfaceType (self)
Solid.OpticalDisc.DiscType discType (self)
bool isAppendable (self)
bool isBlank (self)
bool isRewritable (self)

Method Documentation

__init__ (  self,
QObject  backendObject
)
Solid.OpticalDisc.ContentTypes availableContent (   self )

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

Returns:
the flag set indicating the available contents

long capacity (   self )

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

Solid.DeviceInterface.Type deviceInterfaceType (   self )

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

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

Solid.OpticalDisc.DiscType discType (   self )

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

Returns:
the disc type

bool isAppendable (   self )

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

Returns:
true if the disc is appendable, false otherwise

bool isBlank (   self )

Indicates if the disc is blank.

Returns:
true if the disc is blank, false otherwise

bool isRewritable (   self )

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


Enumeration Documentation

ContentType
Enumerator:

DiscType
Enumerator:

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal