line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Audio-MPD-Common |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is copyright (c) 2007 by Jerome Quelin. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
7
|
|
|
|
|
|
|
# the same terms as the Perl 5 programming language system itself. |
8
|
|
|
|
|
|
|
# |
9
|
1
|
|
|
1
|
|
697
|
use 5.008; |
|
1
|
|
|
|
|
4
|
|
10
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
11
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
66
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
package Audio::MPD::Common::Output; |
14
|
|
|
|
|
|
|
# ABSTRACT: class representing MPD output |
15
|
|
|
|
|
|
|
$Audio::MPD::Common::Output::VERSION = '2.003'; |
16
|
1
|
|
|
1
|
|
907
|
use Moose; |
|
1
|
|
|
|
|
565783
|
|
|
1
|
|
|
|
|
6
|
|
17
|
1
|
|
|
1
|
|
8090
|
use MooseX::Has::Sugar; |
|
1
|
|
|
|
|
678
|
|
|
1
|
|
|
|
|
4
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# -- public attributes |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has id => ( ro, isa=>"Int", required ); |
24
|
|
|
|
|
|
|
has name => ( ro, isa=>"Str", required ); |
25
|
|
|
|
|
|
|
has enabled => ( ro, isa=>"Bool", required ); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Audio::MPD::Common::Output - class representing MPD output |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 VERSION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
version 2.003 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
The MPD server can have various outputs defined, generally one per sound |
47
|
|
|
|
|
|
|
card. Those output can be queried with the mpd modules. Some of those |
48
|
|
|
|
|
|
|
information are served to you as an L<Audio::MPD::Common::Output> |
49
|
|
|
|
|
|
|
object. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
An L<Audio::MPD::Common::Output> object does B<not> update itself |
52
|
|
|
|
|
|
|
regularly, and thus should be used immediately. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Note: one should B<never> ever instantiate an |
55
|
|
|
|
|
|
|
L<Audio::MPD::Common::Output> object directly - use the mpd modules |
56
|
|
|
|
|
|
|
instead. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 $output->id; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Internal MPD id for the output. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 $output->name; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Friendly-name for the output. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 $output->enabled; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Boolean stating whether the output is enabled or not. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 AUTHOR |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Jerome Quelin |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This software is copyright (c) 2007 by Jerome Quelin. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
81
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |