callinfo

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callinfo

type Callinfo struct {
	// contains filtered or unexported fields
}

func New

func New(entities DXCCFinder, callsigns CallsignFinder, dupeChecker DupeChecker, valuer Valuer) *Callinfo

func (*Callinfo) Hide

func (c *Callinfo) Hide()

func (*Callinfo) SetView

func (c *Callinfo) SetView(view View)

func (*Callinfo) Show

func (c *Callinfo) Show()

func (*Callinfo) ShowInfo added in v0.4.0

func (c *Callinfo) ShowInfo(call string, band core.Band, mode core.Mode, xchange string)

type CallsignFinder

type CallsignFinder interface {
	Find(string) ([]string, error)
}

CallsignFinder returns a list of matching callsigns for the given partial string.

type DXCCFinder

type DXCCFinder interface {
	Find(string) (dxcc.Prefix, bool)
}

DXCCFinder returns a list of matching prefixes for the given string and indicates if there was a match at all.

type DupeChecker

type DupeChecker interface {
	FindWorkedQSOs(callsign.Callsign, core.Band, core.Mode) ([]core.QSO, bool)
}

DupeChecker can be used to find out if the given callsign was already worked, according to the contest rules.

type Valuer added in v0.4.0

type Valuer interface {
	Value(callsign callsign.Callsign, entity dxcc.Prefix, band core.Band, mode core.Mode, xchange string) (points, multis int)
}

Valuer provides the points and multis of a QSO based on the given information.

type View

type View interface {
	Show()
	Hide()

	SetCallsign(callsign string, worked, duplicate bool)
	SetDXCC(string, string, int, int, bool)
	SetValue(points, multis int)
	SetSupercheck(callsigns []core.AnnotatedCallsign)
}

View defines the visual part of the call information window.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL