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


POE-Component-CD-Detect documentation  | view source Contained in the POE-Component-CD-Detect distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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.

METHODS

Top

The module provides an object oriented interface as follows:

new

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. =cut

CALLBACKS

Top

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.

inserted

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).

error

Fired on the event of an error.

AUTHOR

Top

Erick Calder <ecalder@cpan.org>

My gratitude to Rocco Caputo and Matt Cashner whose suggestions have allowed me to put this together.

DATE

Top

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

VERSION

Top

$Revision: 1.1 $

LICENSE AND COPYRIGHT

Top


POE-Component-CD-Detect documentation  | view source Contained in the POE-Component-CD-Detect distribution.