| 1 | package Growl::Any::MacGrowl; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use parent qw(Growl::Any::Base); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | use Carp (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use Mac::Growl (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub register { | ||||||||
|
Subroutine
register: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my ($self, $appname, $events) = @_; | |||||||||
| 12 | 0 | $self->SUPER::register($appname, $events); | |||||||||
| 13 | 0 | my @e = $self->encode_list_from('MacRoman', @{$events}); | |||||||||
| 14 | 0 | Mac::Growl::RegisterNotifications($self->appname, [ @e, 'Error'], \@e); | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub notify { | ||||||||
|
Subroutine
notify: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 18 | 0 | my ($self, $event, $title, $message, $icon) = @_; | |||||||||
| 19 | 0 | ▶ | if (defined $icon) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | $icon = $self->icon_file($icon); | |||||||||
| 21 | } | ||||||||||
| 22 | 0 | Mac::Growl::PostNotification($self->appname, | |||||||||
| 23 | $self->encode_list_from( 'MacRoman', $event, $title, $message ), 0, 0, $icon); | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1; | ||||||||||
| 27 | __END__ | ||||||||||