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
|
|
13
|
use 5.008; |
|
1
|
|
|
|
|
3
|
|
10
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
11
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
package Audio::MPD::Common::Item::Directory; |
14
|
|
|
|
|
|
|
# ABSTRACT: a directory object |
15
|
|
|
|
|
|
|
$Audio::MPD::Common::Item::Directory::VERSION = '2.003'; |
16
|
1
|
|
|
1
|
|
825
|
use Moose; |
|
1
|
|
|
|
|
505276
|
|
|
1
|
|
|
|
|
8
|
|
17
|
1
|
|
|
1
|
|
8159
|
use MooseX::Has::Sugar; |
|
1
|
|
|
|
|
724
|
|
|
1
|
|
|
|
|
6
|
|
18
|
1
|
|
|
1
|
|
873
|
use MooseX::Types::Moose qw{ Str }; |
|
1
|
|
|
|
|
65951
|
|
|
1
|
|
|
|
|
27
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
5334
|
use base qw{ Audio::MPD::Common::Item }; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
201
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# -- public attributes |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has directory => ( rw, isa=>Str, required ); |
27
|
|
|
|
|
|
|
has last_modified => ( rw, isa=>Str ); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=pod |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=encoding UTF-8 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Audio::MPD::Common::Item::Directory - a directory object |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 2.003 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
L<Audio::MPD::Common::Item::Directory> is more a placeholder with some |
48
|
|
|
|
|
|
|
attributes. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
The constructor should only be called by L<Audio::MPD::Common::Item>'s |
51
|
|
|
|
|
|
|
constructor. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 $item->directory; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The path to the item's directory. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 $item->last_modified; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Last modification date. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Jerome Quelin |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This software is copyright (c) 2007 by Jerome Quelin. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
72
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |