callinfo

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallHistoryFinder added in v0.9.0

type CallHistoryFinder interface {
	FindEntry(string) (core.AnnotatedCallsign, bool)
	Find(string) ([]core.AnnotatedCallsign, error)
}

CallHistoryFinder returns additional information for a given callsign if a call history file is used.

type Callinfo

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

func New

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

func (*Callinfo) ContestChanged added in v0.11.0

func (c *Callinfo) ContestChanged(contest core.Contest)

func (*Callinfo) EntryOnFrequency added in v0.20.0

func (c *Callinfo) EntryOnFrequency(entry core.BandmapEntry, available bool)

func (*Callinfo) GetInfo added in v0.13.0

func (c *Callinfo) GetInfo(call callsign.Callsign, band core.Band, mode core.Mode, currentExchange []string) core.Callinfo

func (*Callinfo) InputChanged added in v0.22.0

func (c *Callinfo) InputChanged(call string, band core.Band, mode core.Mode, currentExchange []string)

func (*Callinfo) Notify added in v0.22.0

func (c *Callinfo) Notify(listener any)

func (*Callinfo) ScoreUpdated added in v0.20.0

func (c *Callinfo) ScoreUpdated(score core.Score)

func (*Callinfo) SetView

func (c *Callinfo) SetView(view View)

func (*Callinfo) StationChanged added in v0.22.1

func (c *Callinfo) StationChanged(station core.Station)

func (*Callinfo) UpdateValue added in v0.22.0

func (c *Callinfo) UpdateValue(info *core.Callinfo, band core.Band, mode core.Mode) bool

type CallinfoFrameListener added in v0.22.0

type CallinfoFrameListener interface {
	CallinfoFrameChanged(core.CallinfoFrame)
}

type CallsignFinder

type CallsignFinder interface {
	FindStrings(string) ([]string, error)
	Find(string) ([]core.AnnotatedCallsign, error)
}

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

type Collector added in v0.22.0

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

func NewCollector added in v0.22.0

func NewCollector(dxcc DXCCFinder, callsigns CallsignFinder, history CallHistoryFinder,
	dupes DupeChecker, valuer Valuer) *Collector

func (*Collector) GetInfo added in v0.22.0

func (c *Collector) GetInfo(call callsign.Callsign, band core.Band, mode core.Mode, currentExchange []string) core.Callinfo

func (*Collector) GetInfoForInput added in v0.22.0

func (c *Collector) GetInfoForInput(input string, band core.Band, mode core.Mode, currentExchange []string) core.Callinfo

func (*Collector) ScoreUpdated added in v0.22.0

func (c *Collector) ScoreUpdated(score core.Score)

func (*Collector) SetMyLocator added in v0.22.1

func (c *Collector) SetMyLocator(loc locator.Locator)

func (*Collector) SetTheirExchangeFields added in v0.22.0

func (c *Collector) SetTheirExchangeFields(fields []core.ExchangeField, theirReportExchangeField core.ExchangeField, theirNumberExchangeField core.ExchangeField)

func (*Collector) UpdateValue added in v0.22.0

func (c *Collector) UpdateValue(info *core.Callinfo, band core.Band, mode core.Mode) bool

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 Supercheck added in v0.22.0

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

func NewSupercheck added in v0.22.0

func NewSupercheck(dxcc DXCCFinder, callsigns CallsignFinder, history CallHistoryFinder,
	dupes DupeChecker, valuer Valuer) *Supercheck

func (*Supercheck) Calculate added in v0.22.0

func (s *Supercheck) Calculate(input string, band core.Band, mode core.Mode) []core.AnnotatedCallsign

func (*Supercheck) SetTheirExchangeFields added in v0.22.0

func (s *Supercheck) SetTheirExchangeFields(fields []core.ExchangeField)

type Valuer added in v0.4.0

type Valuer interface {
	Value(callsign callsign.Callsign, entity dxcc.Prefix, band core.Band, mode core.Mode, exchange []string) (points, multis int, multiValues map[conval.Property]string)
}

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

type View

type View interface {
	SetPredictedExchangeFields(fields []core.ExchangeField)
	ShowFrame(core.CallinfoFrame)
}

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