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


Back to Top


NAME

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

Back to Top


VERSION

version 1.100430

Back to Top


SYNOPSIS

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

Back to Top


DESCRIPTION

the Audio::MPD::Common::Item manpage is a virtual class representing a generic item of mpd's collection. It can be either a song, a directory or a playlist.

Depending on the params given to new, it will create and return an the Audio::MPD::Common::Item::Song manpage, an the Audio::MPD::Common::Item::Directory manpage or an the Audio::MPD::Common::Playlist manpage object. Currently, the discrimination is done on the existence of the file key of %params.

Back to Top


METHODS

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

Create and return either an the Audio::MPD::Common::Item::Song manpage, an the Audio::MPD::Common::Item::Directory manpage or an the Audio::MPD::Common::Playlist manpage object, depending on the existence of a key file, directory or playlist (respectively).

Back to Top


AUTHOR

  Jerome Quelin

Back to Top


COPYRIGHT AND LICENSE

This software is copyright (c) 2007 by Jerome Quelin.

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

Back to Top

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