DCOP::Amarok::Playlist - Perl extension to speak to an amaroK player object via system's DCOP.
use DCOP::Amarok::Playlist; $playlist = DCOP::Amarok::Playlist->new(); $playlist->togglePlaylist(); print $playlist->getActiveIndex();
This module is a quick hack to get an interface between perl and Kde's DCOP, since Kde3.4's perl bindings are disabled. This suite talks to 'dcop'. DCOP::Amarok::Playlist talks directly to the playlist object of amaroK.
None by default.
Constructor. No arguments needed. If the program will be run remotely, the need for 'user => "myusername"' arises.
Returns a list of the interfaces.
Returns a list of the functions.
Returns the number of the active index.
Returns the total number of tracks in the playlist.
Makes the object save the present list. Returns the path.
Adds new media.
Plays the song in the $index position.
Play a specific object.
Pops up $msg in screen. TODO: $msg has to escape white spaces with '\'. e.g. "Hi\\\ there"; e.g2. 'I\ am\ here'
Removes current track from playlist
Repopulate playlist.
Saves the M3U file with a relavtive path.
Saves the M3U file with an absolut path.
Enable StopAfterCurrent track.
Disable StopAfterCurrent track.
Display $msg in the status bar.
Shuffle playlist.
Show/Hide playlist.
Juan C. Muller, <jcmuller@gmail.com>
Copyright 2005 by Juan C. Muller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install DCOP::Amarok::Playlist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DCOP::Amarok::Playlist
CPAN shell
perl -MCPAN -e shell install DCOP::Amarok::Playlist
For more information on module installation, please visit the detailed CPAN module installation guide.