| 1 | package Growl::Any::CocoaGrowl; | ||
| 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 Cocoa::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 | Cocoa::Growl::growl_register( | ||
| 14 | app => $self->appname, | ||
| 15 | 0 | notifications => [ $self->encode_list(@{$events}) ], | |
| 16 | ); | ||
| 17 | } | ||
| 18 | |||
| 19 | 0 | ▶ | sub notify { |
|
Subroutine
notify: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | 0 | my ($self, $event, $title, $message, $icon) = @_; | |
| 21 | 0 | Cocoa::Growl::growl_notify( | |
| 22 | name => $self->encode($event), | ||
| 23 | title => $self->encode($title), | ||
| 24 | description => $self->encode($message), | ||
| 25 | icon => $icon, | ||
| 26 | ); | ||
| 27 | } | ||
| 28 | |||
| 29 | 1; | ||
| 30 | __END__ | ||