PrimoBurner(tm) for C++  5.0
CD, DVD and Blu-ray Software Development Kit
Loading...
Searching...
No Matches
DiscCopyCallback Class Reference

Implement this callback interface to receive progress and status notifications from DiscCopy. More...

#include <pb_api.h>

Inherits Reference.

Public Member Functions

virtual bool_t onContinueCopy ()
 This method is called to check if the image read/write operation should continue.
 
virtual void onProgress (uint32_t current, uint32_t all)
 This method is called to report the number of blocks written to or read from the processed medium.
 
virtual void onStatus (DiscCopyStatus::Enum status)
 This method is called to report the status of the image creation/writing process.
 
virtual void onTrackStatus (int trackIndex, int percentWritten)
 This method is called to report the write/read progress of individual tracks.
 
int32_t release () const
 Simple implementation of primo::Reference::release.
 
int32_t retain () const
 Simple implementation of primo::Reference::retain.
 
int32_t retainCount () const
 Simple implementation of primo::Reference::retainCount.
 
virtual int32_t release () const =0
 Releases the instance.
 
virtual int32_t retain () const =0
 Retains the instance.
 
virtual int32_t retainCount () const =0
 Returns the current reference count.
 

Detailed Description

Implement this callback interface to receive progress and status notifications from DiscCopy.

Member Function Documentation

◆ onContinueCopy()

virtual bool_t onContinueCopy ( )
virtual

This method is called to check if the image read/write operation should continue.

Returns
1 The operation should continue.
0 The operation should stop.

◆ onProgress()

virtual void onProgress ( uint32_t  current,
uint32_t  all 
)
virtual

This method is called to report the number of blocks written to or read from the processed medium.

Parameters
currentThe number of blocks that have been written to/read from the processed medium.
allThe total number of blocks that will be written to/read from the processed medium.

◆ onStatus()

virtual void onStatus ( DiscCopyStatus::Enum  status)
virtual

This method is called to report the status of the image creation/writing process.

Parameters
statusThe status of the disc copy process.
See also
DiscCopyStatus::Enum

◆ onTrackStatus()

virtual void onTrackStatus ( int  trackIndex,
int  percentWritten 
)
virtual

This method is called to report the write/read progress of individual tracks.

Parameters
trackIndexThe zero based index of the track that is being written/read.
percentWrittenThe percentage of the track data that has been written to/read from the processed medium.

◆ release()

int32_t release ( ) const
virtual

Simple implementation of primo::Reference::release.

Returns
The updated reference count.

Implements Reference.

◆ retain()

int32_t retain ( ) const
virtual

Simple implementation of primo::Reference::retain.

Returns
The updated reference count.

Implements Reference.

◆ retainCount()

int32_t retainCount ( ) const
virtual

Simple implementation of primo::Reference::retainCount.

Returns
The current reference count.

Implements Reference.