callinfo

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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(prefixes DXCCFinder, callsigns CallsignFinder, dupeChecker DupeChecker) *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) ShowCallsign

func (c *Callinfo) ShowCallsign(s 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 {
	IsWorked(callsign callsign.Callsign) ([]core.QSO, bool)
}

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

type View

type View interface {
	Show()
	Hide()

	SetCallsign(callsign string, worked, duplicate bool)
	SetDXCC(string, string, int, int, bool)
	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