line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Growl::Any::IOHandle; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
32457
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
5
|
1
|
|
|
1
|
|
997
|
use parent qw(Growl::Any::Base); |
|
1
|
|
|
|
|
433
|
|
|
1
|
|
|
|
|
5
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
60
|
use Encode (); |
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
148
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub encoding { |
10
|
1
|
|
|
1
|
0
|
3
|
my($class) = @_; |
11
|
1
|
|
33
|
|
|
8
|
return Encode::find_encoding('locale') || $class->SUPER::encoding(); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub notify { |
15
|
2
|
|
|
2
|
0
|
15
|
my($self, $event, $title, $message, $icon) = @_; |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
|
|
14
|
printf "[%s] %s\n", $self->encode_list( $title, $message ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |