2 # VE7CC variations for DXCommandmode
4 # This is done this way because a) there aren't very many and
5 # b) because it isn't easy to reliably rebless the object in
22 use vars qw($VERSION $BRANCH);
23 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
24 $BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
25 $main::build += $VERSION;
26 $main::branch += $BRANCH;
30 my $self = shift; # this may be useful some day
36 my $ref = DXUser->get_current($spotted);
38 my $loc = $ref->qra || '';
39 $loc_spotted =substr($loc, 0, 4) if $loc;
42 # remove any items above the top of the max spot data
45 # make sure both US states are defined
49 my $spotted_cc = (Prefix::cty_data($spotted))[5];
50 my $spotter_cc = (Prefix::cty_data($_[1]))[5];
51 $ref = DXUser->get_current($_[1]);
53 my $loc = $ref->qra || '';
54 $loc_spotter = substr($loc, 0, 4) if $loc;
57 return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_, $spotted_cc, $spotter_cc, $loc_spotted, $loc_spotter);