This is passed into their task constructors.
-# $Id: Connection.pm,v 1.2 2006-10-11 16:46:01 mike Exp $
+# $Id: Connection.pm,v 1.3 2006-10-12 14:35:43 mike Exp $
package ZOOM::IRSpy::Connection;
package ZOOM::IRSpy::Connection;
sub irspy_connect {
my $this = shift();
sub irspy_connect {
my $this = shift();
- $this->add_task(new ZOOM::IRSpy::Task::Connect($this, %cb));
+ my $task = new ZOOM::IRSpy::Task::Connect($this, $udata, %cb);
+ $this->add_task($task);
$this->log("irspy", "registered connect()");
}
sub irspy_search_pqf {
my $this = shift();
$this->log("irspy", "registered connect()");
}
sub irspy_search_pqf {
my $this = shift();
+ my($query, $udata, %cb) = @_;
- $this->add_task(new ZOOM::IRSpy::Task::Search($query, $this, %cb));
+ my $task = new ZOOM::IRSpy::Task::Search($query, $this, $udata, %cb);
+ $this->add_task($task);
$this->log("irspy", "registered search_pqf($query)");
}
$this->log("irspy", "registered search_pqf($query)");
}