dragonCdToc QML Value Type

The table of contents of an audio CD. More...

Import Statement: import org.kde.dragonmediabackend
In C++: DragonCdToc

Properties

Detailed Description

dragonCdToc values are delivered by the DragonCdTocReader.tocReady signal:

 DragonCdTocReader {
     id: cdReader
     onTocReady: (toc) => {
         discLabel.text = i18n("%1 tracks, %2",
                               toc.tracks.length,
                               toc.discDuration.formatted())
         player.source = toc.tracks[0].url
     }
     onFailed: (message) => errorLabel.text = message
 }

Property Documentation

device : string [read-only]

The device this TOC was read from.


discDuration : dragonDuration [read-only]

The total playable duration of the disc.


leadOutFrame : int [read-only]

The lead-out position of the disc in audio frames (also called sectors), the end of the program portion of the disc.

In CDDB terms, it is the disc length.

Learn more at the Wikipedia article on optical disc tracks.


tracks : list<dragonCdTrack> [read-only]

All tracks of the disc in TOC order.