-# $Id: Task.pm,v 1.6 2007-05-09 11:30:53 mike Exp $
+# $Id: Task.pm,v 1.7 2007-08-01 15:11:03 mike Exp $
package ZOOM::IRSpy::Task;
use strict;
use warnings;
+use Scalar::Util;
+
=head1 NAME
ZOOM::IRSpy::Task - base class for tasks in IRSpy
my $class = shift();
my($conn, $udata, $options, %cb) = @_;
- return bless {
+ my $this = bless {
irspy => $conn->{irspy},
conn => $conn,
udata => $udata,
cb => \%cb,
timeRegistered => time(),
}, $class;
+
+ #Scalar::Util::weaken($this->{irspy});
+ #Scalar::Util::weaken($this->{udata});
+
+ return $this;
}
defined $value ? "'$value'" : "undefined");
my $old = $this->conn()->option($key, $value);
if ($persistent) {
- print "deleting '*$key'<br/>\n";
delete $this->{options}->{"*$key"}
} else {
$this->{options}->{$key} = $old;