line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Hotline::FileInfoItem; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
## Copyright(c) 1998-2002 by John C. Siracusa. All rights reserved. This |
4
|
|
|
|
|
|
|
## program is free software; you can redistribute it and/or modify it under |
5
|
|
|
|
|
|
|
## the same terms as Perl itself. |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
441
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
$VERSION = '0.80'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new |
14
|
|
|
|
|
|
|
{ |
15
|
0
|
|
|
0
|
1
|
|
my($class) = shift; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
my($self) = |
18
|
|
|
|
|
|
|
{ |
19
|
|
|
|
|
|
|
'ICON' => undef, |
20
|
|
|
|
|
|
|
'TYPE' => undef, |
21
|
|
|
|
|
|
|
'CREATOR' => undef, |
22
|
|
|
|
|
|
|
'SIZE' => undef, |
23
|
|
|
|
|
|
|
'NAME' => undef, |
24
|
|
|
|
|
|
|
'COMMENT' => undef, |
25
|
|
|
|
|
|
|
'CTIME' => undef, |
26
|
|
|
|
|
|
|
'MTIME' => undef |
27
|
|
|
|
|
|
|
}; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
bless $self, $class; |
30
|
0
|
|
|
|
|
|
return $self; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub icon |
34
|
|
|
|
|
|
|
{ |
35
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'TYPE'} = $_[1] if(@_ == 2); |
36
|
0
|
|
|
|
|
|
return $_[0]->{'TYPE'}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub type |
40
|
|
|
|
|
|
|
{ |
41
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'TYPE'} = $_[1] if(@_ == 2); |
42
|
0
|
|
|
|
|
|
return $_[0]->{'TYPE'}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub creator |
46
|
|
|
|
|
|
|
{ |
47
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'CREATOR'} = $_[1] if(@_ == 2); |
48
|
0
|
|
|
|
|
|
return $_[0]->{'CREATOR'}; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub size |
52
|
|
|
|
|
|
|
{ |
53
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'SIZE'} = $_[1] if(@_ == 2); |
54
|
0
|
|
|
|
|
|
return $_[0]->{'SIZE'}; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub name |
58
|
|
|
|
|
|
|
{ |
59
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'NAME'} = $_[1] if(@_ == 2); |
60
|
0
|
|
|
|
|
|
return $_[0]->{'NAME'}; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub comment |
64
|
|
|
|
|
|
|
{ |
65
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'COMMENT'} = $_[1] if(@_ == 2); |
66
|
0
|
|
|
|
|
|
return $_[0]->{'COMMENT'}; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub ctime |
70
|
|
|
|
|
|
|
{ |
71
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'CTIME'} = $_[1] if(@_ == 2); |
72
|
0
|
|
|
|
|
|
return $_[0]->{'CTIME'}; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub mtime |
76
|
|
|
|
|
|
|
{ |
77
|
0
|
0
|
|
0
|
1
|
|
$_[0]->{'MTIME'} = $_[1] if(@_ == 2); |
78
|
0
|
|
|
|
|
|
return $_[0]->{'MTIME'}; |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1; |