Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

desktop::notify::notification(3pm) [debian man page]

Desktop::Notify::Notification(3pm)			User Contributed Perl Documentation			Desktop::Notify::Notification(3pm)

NAME
Desktop::Notify::Notification - a notification object for the desktop notifications framework VERSION
Version 0.03 SYNOPSIS
# $notify is an existing Desktop::Notify object my $note = $notify->create(summary => 'Rebuilding FooBar', body => 'Progress: 10%'); $note->show; ... # Update the notification later $note->body('Progress: 20%'); $note->show; ... # Take it off the screen $note->close; DESCRIPTION
Desktop notification objects are represented as objects of this class. They are created by a Desktop::Notify object. Displaying, closing, and modifying the notification is done by using methods in this class. METHODS
new $notify, %params This is called internally by Desktop::Notify to create a new notification object. show Display the notification on the screen. If this notification had previously been shown and not closed yet, it will replace the existing notification. Show can be called multiple times on the same notification, probably with attribute changes between calls, and later show calls will cause the server to seamlessly replace the existing notification. close Close the notification if it is already being displayed. ATTRIBUTES
The following parameters can be set when creating the object or later modified using accessors (descriptions are from the specification at <http://www.galago-project.org/specs/notification/0.9/x408.html>) summary The summary text briefly describing the notification. body The optional detailed body text. Can be empty. timeout The timeout time in milliseconds since the display of the notification at which the notification should automatically close. If -1, the notification's expiration time is dependent on the notification server's settings, and may vary for the type of notification. If 0, never expire. The following extra parameters are included in the specification but not supported by Desktop::Notify at this time app_icon The optional program icon of the calling application. actions Actions are sent over as a list of pairs. Each even element in the list (starting at index 0) represents the identifier for the action. Each odd element in the list is the localized string that will be displayed to the user. hints Optional hints that can be passed to the server from the client program. perl v5.10.1 2009-12-25 Desktop::Notify::Notification(3pm)

Check Out this Related Man Page

Jifty::Plugin::Comment::Notification::CommentPublished(3User Contributed Perl DocumentaJifty::Plugin::Comment::Notification::CommentPublished(3pm)

NAME
Jifty::Plugin::Comment::Notification::CommentPublished - new comments made SYNOPSIS
To activate this notification, you must override the notification in your application. use strict; use warnings; package MyApp::Notification::CommentPublished; use base qw/ Jifty::Plugin::Comment::Notification::CommentPublished /; sub setup { my $self = shift; # Send to the author of the post $self->to_list($self->parent->author); $self->SUPER::setup(@_); } sub url { my $self = shift; return Jifty->config->framework('Web')->{'BaseURL'} . $self->parent->permalink . '#comment-'.$self->comment->id; } 1; DESCRIPTION
This notification (when properly configured) is sent out to any who need to know when a comment has been published. METHODS
setup This method sets up the notification. This method should be overridden to setup "to_list" in Jifty::Notification to select who will receive this message. See the "SYNOPSIS". comment This will contain the Jifty::Plugin::Comment::Model::Comment that has been published. parent This will contain the object that the comment has been attached to. url This returns the URL that the message will link to. This should be overridden to provide application-specific URLs. The default implementation returns the BaseURL setting for the application. SEE ALSO
Jifty::Notification, Jifty::Plugin::Comment::Notification::CommentNeedsModeration AUTHOR
Andrew Sterling Hanenkamp, "<hanenkamp@cpan.org>" COPYRIGHT AND LICENSE
Copyright 2008 Boomer Consulting, Inc. All Rights Reserved. This program is free software and may be modified and distributed under the same terms as Perl itself. perl v5.12.4 2009-03-09 Jifty::Plugin::Comment::Notification::CommentPublished(3pm)
Man Page