ManaTools::Rpmdragora::gurpm - Module that shows the urpmi progress status
my %option = (title => "Urpmi action ivoked", text => "Please wait", ); my $gurpmi = ManaTools::Rpmdragora::gurpm->new(%option); $gurpmi->progress(45); #add to an existing dialog %option = (title => "Urpmi action ivoked", text => "Please wait", main_dialog => $dialog, parent => $parent_container); $gurpmi = ManaTools::Rpmdragora::gurpm->new(%option); $gurpmi->progress(20);
This class is used to show the progress of an urpmi operation on its progress bar. It can be istantiated as a popup dialog or used to add label and progress bar into a YLayoutBox container.
You can find documentation for this module with the perldoc command: perldoc ManaTools::Rpmdragora::gurpm
Angelo Naselli <firstname.lastname@example.org> Matteo Pasotti <email@example.com>
Copyright (c) 2002 Guillaume Cottenceau Copyright (c) 2002-2007 Thierry Vignaud <firstname.lastname@example.org> Copyright (c) 2003, 2004, 2005 MandrakeSoft SA Copyright (c) 2005-2007 Mandriva SA Copyright (c) 2013-2016 Matteo Pasotti <email@example.com> Copyright (C) 2015-2016, Angelo Naselli <firstname.lastname@example.org> 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
The BUILD method is called after a Moose object is created, in this methods Services loads all the service information.
Polls a dialog event to refresh the dialog
$text: text to be shown on label
Sets the label text
$value: integer value in the range 0..100
Sets the progress bar percentage value
$val: boolean value indicating whether or not this method was called as part of the global destruction process (when the Perl interpreter exits)
Moose provides a hook for object destruction with the DEMOLISH method as it does for construtor with BUILD