The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

iPodDB::Preferences - Store and Retrieve preferences

SYNOPSIS

    my $preferences = iPodDB::Preferences->new;

DESCRIPTION

This module stores and retrieves the application preferences via Wx::ConfigBase.

PROPERTIES

mountpoint

The location where the root directory of the iPod can be found.

database

The location of the database on the above mountpoint

METHODS

new( )

Gets the application preferences via Wx::ConfigBase::Get.

get_preferences( [ $frame ] )

This will load up the perferences dialog so the user can customize the applcation.

config( [ $config ] )

Gets / sets the Wx::ConfigBase object.

set( $key => $value )

Sets a configuration variable. The variable will be delete if the value is not defined. If a trigger (a sub named on_$key) then it will subsequently be called with the value of the key as a parameter.

This should not be used directly, rather use the properties above (as methods).

get( $key )

Gets a configuration variable.

This should not be used directly, rather use the properties above (as methods).

EVENTS

on_mountpoint( $value )

This trigger is called once the mountpoint is set. It will automatically add the location of the iPod database on the mountpoint.

AUTHOR

  • Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2004 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.