
POE::Component::CD::Detect - Detects CD insertions and provides TOC

use POE qw(Component::CD::Detect); POE::Component::CD::Detect->new(); POE::Kernel->run();

This POE component detects the insertion of a CD into a given drive and issues a callback to the caller with the disc's table of contents.

The module provides an object oriented interface as follows:
Used to initialise the system and create a module instance. The following parameters are available:
Indicates the name of a session to which module callbacks are posted.
Default: main.
Indicates how often the drive is checked for the presence of a disc.
Specifies the device to use. If not provided, the module will make various assumptions about the device's name, depending on the operating system and platform.

Callbacks are made to the session indicated in the new() method.
The names of the functions called back may also be set via the aforementioned method.
Fired whenever a disc is detected in the drive. The following parameters are passed to this event: ARG0 = the disc id, ARG1 = an array-reference to the TOC (table of contents).
Fired on the event of an error.

Erick Calder <ecalder@cpan.org>
My gratitude to Rocco Caputo and Matt Cashner whose suggestions have allowed me to put this together.

$Date: 2002/09/14 22:42:20 $

$Revision: 1.1 $

Copyright (c) 2002 Erick Calder. This product is distributed under the MIT License. A copy of this license was included in a file called LICENSE. If for some reason, this file was not included, please see http://www.opensource.org/licenses/mit-license.html to obtain a copy of this license.