NAME

POE::Component::Client::MPD::Item::Song - a song object with some audio tags

DESCRIPTION

POE::Component::Client::MPD::Item::Song is more a placeholder for a hash ref with some pre-defined keys, namely some audio tags.

PUBLIC METHODS

Accessors

The following methods are the accessors to their respective named fields: album(), artist(), file(), id, pos, title(), track(), time(). You can call them either with no arg to get the value, or with an arg to replace the current value.

Methods

$song->as_string()

Return a string representing $song. This string will be:

either "album = track = artist = title"
or "artist = title"
or "title"
or "file"

(in this order), depending on the existing tags of the song. The last possibility always exist of course, since it's a path.

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