File: Remote.pm

package info (click to toggle)
libxmms-perl 0.12-5.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 332 kB
  • ctags: 130
  • sloc: perl: 1,634; makefile: 39
file content (50 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package Xmms::Remote;

use 5.005;
use strict;
use DynaLoader ();

{
    no strict;
    @ISA = qw(DynaLoader);
    $VERSION = '0.03';
    __PACKAGE__->bootstrap($VERSION);
}

sub all_win_toggle {
    my($remote, $show) = @_;
    for (qw(main pl eq)) {
        my $meth = "${_}_win_toggle";
        my $is = "is_${_}_win";
        next if $remote->$is() == $show;
        $remote->$meth($show);
    }
}

1;
__END__

=head1 NAME

Xmms::Remote - Perl Interface to xmms_remote API

=head1 SYNOPSIS

  use Xmms::Remote ();
  my $remote = Xmms::Remote->new;
  $remote->play;

=head1 DESCRIPTION

This module provides a Perl interface to the xmms remote control interface.
No docs yet, sorry, see test.pl and Xmms.pm for now

=head1 SEE ALSO

xmms(1), Xmms(3), MPEG::MP3Info(3)

=head1 AUTHOR

Doug MacEachern

=cut