slackget10::Operationslackget10::Operation is an abstraction of an operation. | |
Download |
slackget10::Operation Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- DUPUIS Arnaud
- Publisher web site:
- http://search.cpan.org/~dupuisarn/slackget10-0.12c/lib/slackget10/Base.pm
slackget10::Operation Tags
slackget10::Operation Description
slackget10::Operation is an abstraction of an operation. slackget10::Operation is an abstraction of an operation.SYNOPSISA class to represent an operation (installation, upgrade, etc.). Mainly designed to make operations management in the GUI simplier. ## This is a dumb example... use slackget10::Operation; my $op = slackget10::Operation->new( action => 'installpkg' data => $package_list, # $package_list is a slackget10::PackageList object ); $net->installpkg( $op->data() );CONSTRUCTORnew() : The constructor take the followings arguments : id : an operation id. If the ID is not set by you, the constructor use the class reference as ID and it's not suitable at all. action : the name of the operation, this name must be understood by the method which will process this operation (obviously...). data : data that belongs to the operation.Commonly the operation's action will be the name of a method from the slackget10::Network class.If the method receiving this object just call the appropriate method of a specific class you just have to read the documentation of this class and put in the data section the right data. Requirements: · Perl
slackget10::Operation Related Software