2 package ZOOM::IRSpy::Task::Retrieve;
9 our @ISA = qw(ZOOM::IRSpy::Task);
13 ZOOM::IRSpy::Task::Retrieve - a searching task for IRSpy
28 my($index0) = shift();
30 my $this = $class->SUPER::new(@_);
32 $this->{index0} = $index0;
33 # Save initial record-syntax for render()'s benefit
34 $this->{syntax} = $this->{options}->{preferredRecordSyntax};
44 my $conn = $this->conn();
45 $conn->connect($conn->option("host"));
48 my $index0 = $this->{index0};
49 $this->irspy()->log("irspy_task", $conn->option("host"),
50 " retrieving record $index0 from $rs");
51 $rs->records($index0, 1, 0); # requests record
52 warn "no ZOOM-C level events queued by $this"
60 my $syntax = $this->{syntax};
61 $syntax = defined $syntax ? "'$syntax'" : "undef";
62 return ref($this) . "(" . $this->{index0} . ", $syntax)";
65 use overload '""' => \&render;
74 Mike Taylor, E<lt>mike@indexdata.comE<gt>
76 =head1 COPYRIGHT AND LICENSE
78 Copyright (C) 2006 by Index Data ApS.
80 This library is free software; you can redistribute it and/or modify
81 it under the same terms as Perl itself, either Perl version 5.8.7 or,
82 at your option, any later version of Perl 5 you may have available.