X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTask.pm;h=e39e18400188c85e738d28f4cd2ad67782a27497;hb=1bb866351e6cd0a15495320b4cf0e8ae7e4b433c;hp=04d5a3cb380ff6dee260218a9fc4f96352183e4e;hpb=a8be7db5305925fc720f3dac7e6afc8fba7b9e60;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Task.pm b/lib/ZOOM/IRSpy/Task.pm index 04d5a3c..e39e184 100644 --- a/lib/ZOOM/IRSpy/Task.pm +++ b/lib/ZOOM/IRSpy/Task.pm @@ -1,4 +1,4 @@ -# $Id: Task.pm,v 1.1 2006-10-06 11:33:07 mike Exp $ +# $Id: Task.pm,v 1.2 2006-10-12 14:36:34 mike Exp $ package ZOOM::IRSpy::Task; @@ -32,12 +32,13 @@ pointer to the next task to be performed after this. sub new { my $class = shift(); - my($conn, %cb) = @_; + my($conn, $udata, %cb) = @_; return bless { irspy => $conn->{irspy}, conn => $conn, cb => \%cb, + udata => $udata, timeRegistered => time(), }, $class; } @@ -53,6 +54,11 @@ sub conn { return $this->{conn}; } +sub udata { + my $this = shift(); + return $this->{udata}; +} + sub run { my $this = shift(); die "can't run base-class task $this";