line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Peep::Notification; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.005; |
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
5
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
6
|
1
|
|
|
1
|
|
4
|
use Data::Dumper; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
7
|
1
|
|
|
1
|
|
4
|
use Net::Peep::Log; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require Exporter; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
4
|
use vars qw{ @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT $VERSION $LOGGER }; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
401
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
@ISA = qw(Exporter); |
14
|
|
|
|
|
|
|
%EXPORT_TAGS = ( ); |
15
|
|
|
|
|
|
|
@EXPORT_OK = ( ); |
16
|
|
|
|
|
|
|
@EXPORT = qw( ); |
17
|
|
|
|
|
|
|
$VERSION = do { my @r = (q$Revision: 1.1 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
$LOGGER = Net::Peep::Log->new(); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub new { |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
24
|
0
|
|
0
|
|
|
|
my $class = ref($self) || $self; |
25
|
0
|
|
|
|
|
|
my $this = {}; |
26
|
0
|
|
|
|
|
|
bless $this, $class; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
} # end sub new |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub message { |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
33
|
0
|
0
|
|
|
|
|
if (@_) { $self->{_MESSAGE} = shift; } |
|
0
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
return $self->{_MESSAGE}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
} # end sub message |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub status { |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
41
|
0
|
0
|
|
|
|
|
if (@_) { $self->{_STATUS} = shift; } |
|
0
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
return $self->{_STATUS}; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
} # end sub status |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub datetime { |
47
|
|
|
|
|
|
|
|
48
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
49
|
0
|
0
|
|
|
|
|
if (@_) { $self->{_DATETIME} = shift; } |
|
0
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
return $self->{_DATETIME}; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
} # end sub datetime |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub client { |
55
|
|
|
|
|
|
|
|
56
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
57
|
0
|
0
|
|
|
|
|
if (@_) { $self->{_CLIENT} = shift; } |
|
0
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
return $self->{_CLIENT}; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
} # end sub client |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub hostname { |
63
|
|
|
|
|
|
|
|
64
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
65
|
0
|
0
|
|
|
|
|
if (@_) { $self->{_HOSTNAME} = shift; } |
|
0
|
|
|
|
|
|
|
66
|
0
|
|
|
|
|
|
return $self->{_HOSTNAME}; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
} # end sub hostname |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
1; |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
__END__ |