Documentation
¶
Index ¶
- type CallHistoryFinder
- type Callinfo
- func (c *Callinfo) ContestChanged(contest core.Contest)
- func (c *Callinfo) EntryOnFrequency(entry core.BandmapEntry, available bool)
- func (c *Callinfo) GetInfo(call callsign.Callsign, band core.Band, mode core.Mode, ...) core.Callinfo
- func (c *Callinfo) InputChanged(call string, band core.Band, mode core.Mode, currentExchange []string)
- func (c *Callinfo) Notify(listener any)
- func (c *Callinfo) ScoreUpdated(score core.Score)
- func (c *Callinfo) SetView(view View)
- func (c *Callinfo) StationChanged(station core.Station)
- func (c *Callinfo) UpdateValue(info *core.Callinfo, band core.Band, mode core.Mode) bool
- type CallinfoFrameListener
- type CallsignFinder
- type Collector
- func (c *Collector) GetInfo(call callsign.Callsign, band core.Band, mode core.Mode, ...) core.Callinfo
- func (c *Collector) GetInfoForInput(input string, band core.Band, mode core.Mode, currentExchange []string) core.Callinfo
- func (c *Collector) ScoreUpdated(score core.Score)
- func (c *Collector) SetMyLocator(loc locator.Locator)
- func (c *Collector) SetTheirExchangeFields(fields []core.ExchangeField, theirReportExchangeField core.ExchangeField, ...)
- func (c *Collector) UpdateValue(info *core.Callinfo, band core.Band, mode core.Mode) bool
- type DXCCFinder
- type DupeChecker
- type Supercheck
- type Valuer
- type View
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 (*Callinfo) EntryOnFrequency ¶ added in v0.20.0
func (c *Callinfo) EntryOnFrequency(entry core.BandmapEntry, available bool)
func (*Callinfo) InputChanged ¶ added in v0.22.0
func (*Callinfo) ScoreUpdated ¶ added in v0.20.0
func (*Callinfo) StationChanged ¶ added in v0.22.1
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) GetInfoForInput ¶ added in v0.22.0
func (*Collector) ScoreUpdated ¶ added in v0.22.0
func (*Collector) SetMyLocator ¶ added in v0.22.1
func (*Collector) SetTheirExchangeFields ¶ added in v0.22.0
func (c *Collector) SetTheirExchangeFields(fields []core.ExchangeField, theirReportExchangeField core.ExchangeField, theirNumberExchangeField core.ExchangeField)
type DXCCFinder ¶
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)
Find(string) ([]core.AnnotatedCallsign, error)
}
DupeChecker can be used to find out if the given callsign was already worked, according to the contest rules. It can also find worked callsigns that are similar to a given string, e.g. for supercheck.
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.