| 1 | package Growl::Any::NetGrowl; | ||
| 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 Net::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 | Net::Growl::register( | ||
| 14 | host => 'localhost', | ||
| 15 | application => $self->appname, | ||
| 16 | password => $self->{password}, | ||
| 17 | 0 | ); | |
| 18 | } | ||
| 19 | |||
| 20 | 0 | ▶ | sub notify { |
|
Subroutine
notify: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 21 | 0 | my ($self, $event, $title, $message, $icon) = @_; | |
| 22 | Net::Growl::notify( | ||
| 23 | application => $self->appname, | ||
| 24 | title => $self->encode($title), | ||
| 25 | description => $self->encode($message), | ||
| 26 | password => $self->{password}, | ||
| 27 | 0 | ); | |
| 28 | } | ||
| 29 | |||
| 30 | 1; | ||
| 31 | |||
| 32 | __END__ | ||