From 150599760bba4918ddfcec5da1db27dea3d63cb9 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 1 May 2021 11:18:46 +0100 Subject: Dzil-build release 1.0.0 (from 6bba3a8 on master) --- lib/App/XScreenSaver/DBus.pm | 91 ++++++++++++++++++++++++++++---------------- 1 file changed, 59 insertions(+), 32 deletions(-) (limited to 'lib/App/XScreenSaver/DBus.pm') diff --git a/lib/App/XScreenSaver/DBus.pm b/lib/App/XScreenSaver/DBus.pm index 2ab384a..ea83093 100644 --- a/lib/App/XScreenSaver/DBus.pm +++ b/lib/App/XScreenSaver/DBus.pm @@ -6,41 +6,21 @@ use Net::DBus::Reactor; use Log::Any; use App::XScreenSaver::DBus::InhibitSleep; use App::XScreenSaver::DBus::Saver; -# VERSION +our $VERSION = '1.0.0'; # VERSION # ABSTRACT: main application class -=head1 SYNOPSIS - - use App::XScreenSaver::DBus; - App::XScreenSaver::DBus->new->run; - -=attr C - -the event loop - -=cut has reactor => ( is => 'lazy', builder => sub { Net::DBus::Reactor->main() }, ); -=attr C - -instance of L<< C >>. - -=cut has inhibit_sleep => ( is => 'lazy', builder => sub { App::XScreenSaver::DBus::InhibitSleep->new() }, ); -=attr C - -instance of L<< C >>. - -=cut has saver => ( is => 'lazy', @@ -49,20 +29,9 @@ has saver => ( }, ); -=attr C - -a logger - -=cut has log => ( is => 'lazy', builder => sub { Log::Any->get_logger } ); -=method C - -registers the DBus services and runs the event loop; this method does -not return - -=cut sub run($self) { $self->inhibit_sleep->start(); @@ -71,3 +40,61 @@ sub run($self) { } 1; + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +App::XScreenSaver::DBus - main application class + +=head1 VERSION + +version 1.0.0 + +=head1 SYNOPSIS + + use App::XScreenSaver::DBus; + App::XScreenSaver::DBus->new->run; + +=head1 ATTRIBUTES + +=head2 C + +the event loop + +=head2 C + +instance of L<< C >>. + +=head2 C + +instance of L<< C >>. + +=head2 C + +a logger + +=head1 METHODS + +=head2 C + +registers the DBus services and runs the event loop; this method does +not return + +=head1 AUTHOR + +Gianni Ceccarelli + +=head1 COPYRIGHT AND LICENSE + +This software is Copyright (c) 2021 by Gianni Ceccarelli . + +This is free software, licensed under: + + The GNU Affero General Public License, Version 3, November 2007 + +=cut -- cgit v1.2.3