2 # Import QSL information to the local database
4 # Copyright (c) 2010 Dirk Koopman G1TLH
7 my ($self, $line) = @_;
9 return (1, $self->msg('e5')) if $self->priv < 9;
10 return (1, "import_dxqsl: <pathname to import from>") unless $fn;
14 return (1, $self->msg('db3', 'QSL')) unless $QSL::dbm;
16 my $if = IO::File->new("$fn") or return(1, $self->msg('e30', $fn));
21 my ($call, $manager, $c, $t, $by) = split /\s*,\s*/;
23 my $q = QSL::get($call) || QSL->new($call);
24 my ($r) = grep {$_->[0] eq $manager} @{$q->[1]};
32 $r = [$manager, $by, $t, $by];
33 unshift @{$q->[1]}, $r;
42 return(0, $self->msg("db10", $count, $fn, 'dxqsl'));