summaryrefslogtreecommitdiff
path: root/lib/App/XScreenSaver/DBus.pm
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2023-12-10 16:12:41 +0000
committerdakkar <dakkar@thenautilus.net>2023-12-10 16:12:41 +0000
commit76b683aa9d80930f2eb8da7c6fa1bf476e3aaa22 (patch)
tree7871d8ceae1f92641a6a0315824ff6f3906d61e4 /lib/App/XScreenSaver/DBus.pm
parentv1.0.5 (diff)
parentDzil-build release 1.0.4 (from df6f92d on master) (diff)
downloadxscreensaver-dbus-release/master.tar.gz
xscreensaver-dbus-release/master.tar.bz2
xscreensaver-dbus-release/master.zip
Dzil-build release 1.0.5 (from df1b12d on master)v1.0.5release/master
Diffstat (limited to 'lib/App/XScreenSaver/DBus.pm')
-rw-r--r--lib/App/XScreenSaver/DBus.pm91
1 files changed, 59 insertions, 32 deletions
diff --git a/lib/App/XScreenSaver/DBus.pm b/lib/App/XScreenSaver/DBus.pm
index e36d0b6..907739f 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::Logind;
use App::XScreenSaver::DBus::Saver;
-# VERSION
+our $VERSION = '1.0.5'; # VERSION
# ABSTRACT: tie xscreensaver into dbus
-=head1 SYNOPSIS
-
- use App::XScreenSaver::DBus;
- App::XScreenSaver::DBus->new->run;
-
-=attr C<reactor>
-
-the event loop
-
-=cut
has reactor => (
is => 'lazy',
builder => sub { Net::DBus::Reactor->main() },
);
-=attr C<logind>
-
-instance of L<< C<App::XScreenSaver::DBus::Logind> >>.
-
-=cut
has logind => (
is => 'lazy',
builder => sub { App::XScreenSaver::DBus::Logind->new() },
);
-=attr C<saver>
-
-instance of L<< C<App::XScreenSaver::DBus::Saver> >>.
-
-=cut
has saver => (
is => 'lazy',
@@ -49,20 +29,9 @@ has saver => (
},
);
-=attr C<log>
-
-a logger
-
-=cut
has log => ( is => 'lazy', builder => sub { Log::Any->get_logger } );
-=method C<run>
-
-registers the DBus services and runs the event loop; this method does
-not return
-
-=cut
sub run($self) {
$self->logind->start();
@@ -71,3 +40,61 @@ sub run($self) {
}
1;
+
+__END__
+
+=pod
+
+=encoding UTF-8
+
+=head1 NAME
+
+App::XScreenSaver::DBus - tie xscreensaver into dbus
+
+=head1 VERSION
+
+version 1.0.5
+
+=head1 SYNOPSIS
+
+ use App::XScreenSaver::DBus;
+ App::XScreenSaver::DBus->new->run;
+
+=head1 ATTRIBUTES
+
+=head2 C<reactor>
+
+the event loop
+
+=head2 C<logind>
+
+instance of L<< C<App::XScreenSaver::DBus::Logind> >>.
+
+=head2 C<saver>
+
+instance of L<< C<App::XScreenSaver::DBus::Saver> >>.
+
+=head2 C<log>
+
+a logger
+
+=head1 METHODS
+
+=head2 C<run>
+
+registers the DBus services and runs the event loop; this method does
+not return
+
+=head1 AUTHOR
+
+Gianni Ceccarelli <dakkar@thenautilus.net>
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is Copyright (c) 2021 by Gianni Ceccarelli <dakkar@thenautilus.net>.
+
+This is free software, licensed under:
+
+ The GNU Affero General Public License, Version 3, November 2007
+
+=cut