-# $Id: Connection.pm,v 1.3 2006-10-12 14:35:43 mike Exp $
+# $Id: Connection.pm,v 1.6 2006-10-25 15:43:43 mike Exp $
package ZOOM::IRSpy::Connection;
use ZOOM::IRSpy::Task::Connect;
use ZOOM::IRSpy::Task::Search;
+use ZOOM::IRSpy::Task::Retrieve;
=head1 NAME
my $old = $this->{current_task};
if (defined $new) {
$this->{current_task} = $new;
- $this->log("irspy_debug", "set current task to $new");
+ $this->log("irspy_task", "set current task to $new");
}
return $old;
my $old = $this->{next_task};
if (defined $new) {
$this->{next_task} = $new;
- $this->log("irspy_debug", "set next task to $new");
+ $this->log("irspy_task", "set next task to $new");
}
return $old;
sub irspy_connect {
my $this = shift();
- my($udata, %cb) = @_;
+ my($udata, $options, %cb) = @_;
- my $task = new ZOOM::IRSpy::Task::Connect($this, $udata, %cb);
+ my $task = new ZOOM::IRSpy::Task::Connect($this, $udata, $options, %cb);
$this->add_task($task);
- $this->log("irspy", "registered connect()");
}
sub irspy_search_pqf {
my $this = shift();
- my($query, $udata, %cb) = @_;
+ my($query, $udata, $options, %cb) = @_;
- my $task = new ZOOM::IRSpy::Task::Search($query, $this, $udata, %cb);
+ my $task = new ZOOM::IRSpy::Task::Search($query,
+ $this, $udata, $options, %cb);
+ $this->add_task($task);
+}
+
+
+sub irspy_rs_record {
+ my $this = shift();
+ my($rs, $index0, $udata, $options, %cb) = @_;
+
+ my $task = new ZOOM::IRSpy::Task::Retrieve($rs, $index0,
+ $this, $udata, $options, %cb);
$this->add_task($task);
- $this->log("irspy", "registered search_pqf($query)");
}
my $tasks = $this->{tasks};
$tasks->[-1]->{next} = $task if @$tasks > 0;
push @$tasks, $task;
- $this->log("irspy", "added task $task");
+ $this->log("irspy_task", "added task $task");
}