App-DesktopNotifyUtils

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    *   body => *str*

        (No description)

    *   summary* => *str*

        (No description)

    *   timeout => *uint* (default: 5000)

        Timeout, in ms.

    Returns an enveloped result (an array).

    First element ($status_code) is an integer containing HTTP-like status
    code (200 means OK, 4xx caller error, 5xx function error). Second
    element ($reason) is a string containing error message, or something
    like "OK" if status is 200. Third element ($payload) is the actual
    result, but usually not present when enveloped result is an error
    response ($status_code is not 2xx). Fourth element (%result_meta) is
    called result metadata and is optional, a hash that contains extra

lib/App/DesktopNotifyUtils.pm  view on Meta::CPAN

        summary => {
            schema => 'str*',
            req => 1,
            pos => 0,
        },
        body => {
            schema => 'str*',
            pos => 1,
        },
        timeout => {
            summary => 'Timeout, in ms',
            schema => 'uint*',
            default => 5000,
        },
    },
};
sub notify_desktop {
    require Desktop::Notify;

    my %args = @_;
    my $notify = Desktop::Notify->new;

lib/App/DesktopNotifyUtils.pm  view on Meta::CPAN

=item * B<body> => I<str>

(No description)

=item * B<summary>* => I<str>

(No description)

=item * B<timeout> => I<uint> (default: 5000)

Timeout, in ms.


=back

Returns an enveloped result (an array).

First element ($status_code) is an integer containing HTTP-like status code
(200 means OK, 4xx caller error, 5xx function error). Second element
($reason) is a string containing error message, or something like "OK" if status is
200. Third element ($payload) is the actual result, but usually not present when enveloped result is an error response ($status_code is not 2xx). Fourth

script/notify-desktop  view on Meta::CPAN


=item B<--summary>=I<s>*

(No description)


Can also be specified as the 1st command-line argument.

=item B<--timeout>=I<s>

Timeout, in ms.

Default value:

 5000

=back

=head2 Logging options

=over



( run in 0.231 second using v1.01-cache-2.11-cpan-a5abf4f5562 )