NAME

Audio::MPD::Item - a generic collection item

SYNOPSIS

my $item = Audio::MPD::Item->new( %params );

DESCRIPTION

Audio::MPD::Item is a virtual class representing a generic item of mpd's collection. It can be either a song or a directory. Depending on the params given to new, it will create and return an Audio::MPD::Item::Song or an Audio::MPD::Item::Directory object. Currently, the discrimination is done on the existence of the file key of %params.

PUBLIC METHODS

Note that the only sub worth it in this class is the constructor:

new( key => val [, key => val [, ...] ] )

Create and return either an Audio::MPD::Item::Song or an Audio::MPD::Item::Directory object.

SEE ALSO

You can find more information on the mpd project on its homepage at http://www.musicpd.org, or its wiki http://mpd.wikia.com.

Regarding this Perl module, you can report bugs on CPAN via http://rt.cpan.org/Public/Bug/Report.html?Queue=Audio-MPD.

Audio::MPD development takes place on <audio-mpd@googlegroups.com>: feel free to join us. (use http://groups.google.com/group/audio-mpd to sign in). Our subversion repository is located at https://svn.musicpd.org.

AUTHORS

Jerome Quelin <jquelin@cpan.org>

COPYRIGHT AND LICENSE

Copyright (c) 2007 Jerome Quelin <jquelin@cpan.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.