# vim: set et ts=4 sw=4:
package ManaTools::Module::Clock;
#============================================================= -*-perl-*-
=head1 NAME
ManaTools::Module::Clock - This module aims to configure system clock and time
=head1 SYNOPSIS
my $clockSettings = ManaTools::Module::Clock->new();
$clockSettings->start();
=head1 DESCRIPTION
Long_description
=head1 SUPPORT
You can find documentation for this module with the perldoc command:
perldoc ManaTools::Module::Clock
=head1 SEE ALSO
SEE_ALSO
=head1 AUTHOR
Angelo Naselli <anaselli@linux.it>
=head1 COPYRIGHT and LICENSE
Copyright (C) 2014-2015, Angelo Naselli.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
=head1 FUNCTIONS
=cut
use Moose;
extends qw( ManaTools::Module );
use diagnostics;
use File::ShareDir ':ALL';
use ManaTools::Shared::Locales;
use ManaTools::Shared::TimeZone;
use ManaTools::Shared::GUI;
use ManaTools::Shared::GUI::Dialog;
use Time::Piece;
use yui;
has '+icon' => (
default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manaclock.png'),
);
has 'sh_gui' => (
is => 'rw',
lazy => 1,
init_arg => undef,
builder => '_SharedGUIInitialize'
);
sub _SharedGUIInitialize {
my $self = shift;
$self->sh_gui(ManaTools::Shared::GUI->new() );
}
has 'sh_tz' => (
is => 'rw',
lazy => 1,
builder => '_SharedTimeZoneInitialize'
);
sub _SharedTimeZoneInitialize {
my $self = shift;
$self->sh_tz(ManaTools::Shared::TimeZone->new(loc => $self->loc) );
}
has 'NTPServers' => (
is => 'ro',
lazy => 1,
init_arg => undef,
builder => '_get_NTPservers'
);
#=============================================================
=head2 BUILD
=head3 INPUT
$self: this object
=head3 DESCRIPTION
The BUILD method is called after a Moose object is created,
in this methods Services loads all the service information.
=cut
|