-# $Id: Retrieve.pm,v 1.1 2006-10-25 15:45:29 mike Exp $
+# $Id: Retrieve.pm,v 1.4 2007-03-07 18:00:15 mike Exp $
package ZOOM::IRSpy::Task::Retrieve;
$this->set_options();
my $conn = $this->conn();
+ $conn->connect($conn->option("host"));
+
my $rs = $this->{rs};
my $index0 = $this->{index0};
$this->irspy()->log("irspy_task", $conn->option("host"),
" retrieving record $index0 from $rs");
$rs->records($index0, 1, 0); # requests record
+ warn "no ZOOM-C level events queued by $this"
+ if $conn->is_idle();
$this->set_options();
}
sub render {
my $this = shift();
- return ref($this) . "(" . $this->{rs}. ", " . $this->{index0} . ")";
+ my $syntax = $this->{options}->{preferredRecordSyntax};
+ $syntax = defined $syntax ? "'$syntax'" : "undef";
+ return ref($this) . "(" . $this->{index0} . ", $syntax)";
}
use overload '""' => \&render;