NAME
POE::Component::Client::MPD::Item - a generic collection item
SYNOPSIS
my $item = POE::Component::Client::MPD::Item->new( %params );
DESCRIPTION
POE::Component::Client::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 POE::Component::Client::MPD::Item::Song
or an POE::Component::Client::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
POE::Component::Client::MPD::Item::Song
or anPOE::Component::Client::MPD::Item::Directory
object.
SEE ALSO
For all related information (bug reporting, mailing-list, pointers to MPD and POE, etc.), refer to POE::Component::Client::MPD
's pod, section SEE ALSO
AUTHOR
Jerome Quelin, <jquelin at cpan.org>
COPYRIGHT & LICENSE
Copyright 2007 Jerome Quelin, all rights reserved.
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.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA