PrimoBurner(tm) for C++
4.2
CD, DVD and Blu-ray Software Development Kit
|
Implement this interface to receive device/media change notifications from Engine interface. More...
#include <PrimoBurner.h>
Inherits Reference.
Public Member Functions | |
virtual void | onDeviceChange (const char_t *devicePath, int deviceIndex, bool_t arrival) |
The onDeviceChange method is called to report arrival / removal of devices. | |
virtual void | onMediaChange (const char_t *devicePath, int deviceIndex, bool_t arrival) |
The onMediaChange method is called to report that a medium has been inserted into/ejected from a device. | |
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. |
Implement this interface to receive device/media change notifications from Engine interface.
virtual void onDeviceChange | ( | const char_t * | devicePath, |
int | deviceIndex, | ||
bool_t | arrival | ||
) | [virtual] |
The onDeviceChange method is called to report arrival / removal of devices.
devicePath | The path that corresponds to the device that fired the notification. On Windows this is the drive letter (For example: "E:"). On Mac OS X this is the device path (For example: "/dev/disk1"). On Linux this is the device path (For example: "/dev/sr1"). |
deviceIndex | The index of the device that fired the notification (as is reported by the DeviceEnum interface). |
arrival | If TRUE then a new device has been added in the system. If FALSE, then a device has been removed from the system |
NOTE: When a device is removed the deviceIndex parameter may be set to -1 since the device can no longer be matched against the list of available devices. On Mac OS X when a device is removed the devicePath may be an empty string.
virtual void onMediaChange | ( | const char_t * | devicePath, |
int | deviceIndex, | ||
bool_t | arrival | ||
) | [virtual] |
The onMediaChange method is called to report that a medium has been inserted into/ejected from a device.
devicePath | The path that corresponds to the device that fired the notification. On Windows this is the drive letter (For example: "E:"). On Mac OS X this is the device path (For example: "/dev/disk1"). On Linux this is the device path (For example: "/dev/sr1"). |
deviceIndex | The index of the device that fired the notification (as is reported by the DeviceEnum interface). |
arrival | If TRUE then a medium has been inserted into the target device. If FALSE, then the medium in device has been ejected |
NOTE: On Windows and Mac OS X if an exclusive access is obtained for a device through a Device object then media change notifications for that device will not be fired. After the Device object is released media change notifications for that device may be received.
int32_t release | ( | ) | const [virtual] |
Simple implementation of primo::Reference::release.
Implements Reference.
int32_t retain | ( | ) | const [virtual] |
Simple implementation of primo::Reference::retain.
Implements Reference.
int32_t retainCount | ( | ) | const [virtual] |
Simple implementation of primo::Reference::retainCount.
Implements Reference.