added changes for VE7CC's windows programs. There may be more soon.
[spider.git] / perl / VE7CC.pm
diff --git a/perl/VE7CC.pm b/perl/VE7CC.pm
new file mode 100644 (file)
index 0000000..43390fb
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# VE7CC variations for DXCommandmode
+#
+# This is done this way because a) there aren't very many and 
+# b) because it isn't easy to reliably rebless the object in
+# flight (as it were).
+#
+# This could change.
+#
+
+package VE7CC;
+
+use DXVars;
+use DXDebug;
+use DXUtil;
+use Julian;
+use Prefix;
+
+use strict;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/  || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
+sub dx_spot
+{
+       my $self = shift;                       # this may be useful some day
+       my $freq = shift;
+       my $spotted = shift;
+       my $t = shift;
+       
+       # remove interface callsign;
+       pop;
+       
+       return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_);
+}
+
+1;