PrimoBurner(tm) for C++  4.6
CD, DVD and Blu-ray Software Development Kit
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
DataDiscCallback Class Reference

The DataDiscCallback interface lets you receive notifications about the burning progress. More...

#include <PrimoBurnerAPI.h>

Inherits Reference.

Public Member Functions

virtual bool_t onContinueWrite ()
 Called by DataDisc to check if burning should continue. More...
 
virtual void onFileStatus (int32_t fileNumber, const char_t *filename, int32_t percentWritten)
 Called by DataDisc to report the file that is currently being recorded. More...
 
virtual void onProgress (int64_t bytesWritten, int64_t all)
 Called by DataDisc to report the number of bytes that have been written to the disc. More...
 
virtual void onStatus (DataDiscStatus::Enum status)
 Called by a DataDisc instance to report the status of the burn process. More...
 
int32_t release () const
 Simple implementation of primo::Reference::release. More...
 
int32_t retain () const
 Simple implementation of primo::Reference::retain. More...
 
int32_t retainCount () const
 Simple implementation of primo::Reference::retainCount. More...
 

Detailed Description

The DataDiscCallback interface lets you receive notifications about the burning progress.

See Also
DataDisc
DataDisc::setCallback
DataDisc::writeToDisc
DataDisc::writeImageToDisc

Member Function Documentation

virtual bool_t onContinueWrite ( )
virtual

Called by DataDisc to check if burning should continue.

Returns
1 The burning should continue.
0 The burning should be canceled.
virtual void onFileStatus ( int32_t  fileNumber,
const char_t *  filename,
int32_t  percentWritten 
)
virtual

Called by DataDisc to report the file that is currently being recorded.

Parameters
fileNumberThe sequential file number (starts from 0).
filename[in] The name of the file that is being processed.
percentWrittenThe percentage of the file data that has already been written to the disc.
virtual void onProgress ( int64_t  bytesWritten,
int64_t  all 
)
virtual

Called by DataDisc to report the number of bytes that have been written to the disc.

Parameters
bytesWrittenThe current number of bytes from the image which have been written to the disc
allTotal number of bytes that will be written to the disc.
virtual void onStatus ( DataDiscStatus::Enum  status)
virtual

Called by a DataDisc instance to report the status of the burn process.

Parameters
statusCurrent operation.
See Also
DataDiscStatus::Enum
int32_t release ( ) const
virtual

Simple implementation of primo::Reference::release.

Returns
The updated reference count.

Implements Reference.

int32_t retain ( ) const
virtual

Simple implementation of primo::Reference::retain.

Returns
The updated reference count.

Implements Reference.

int32_t retainCount ( ) const
virtual

Simple implementation of primo::Reference::retainCount.

Returns
The current reference count.

Implements Reference.