Documentation
¶
Index ¶
- type CallHistoryFinder
- type Callinfo
- func (c *Callinfo) ContestChanged(contest core.Contest)
- func (c *Callinfo) GetInfo(call callsign.Callsign, band core.Band, mode core.Mode, exchange []string) core.Callinfo
- func (c *Callinfo) GetValue(call callsign.Callsign, band core.Band, mode core.Mode, exchange []string) (points, multis int)
- func (c *Callinfo) Hide()
- func (c *Callinfo) PredictedExchange() []string
- func (c *Callinfo) SetView(view View)
- func (c *Callinfo) Show()
- func (c *Callinfo) ShowInfo(call string, band core.Band, mode core.Mode, exchange []string)
- type CallsignFinder
- type DXCCFinder
- type DupeChecker
- type ExchangeFilter
- 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, exchangeFilter ExchangeFilter) *Callinfo
func (*Callinfo) ContestChanged ¶ added in v0.11.0
func (*Callinfo) PredictedExchange ¶ added in v0.10.0
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 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)
}
DupeChecker can be used to find out if the given callsign was already worked, according to the contest rules.
type ExchangeFilter ¶ added in v0.10.0
ExchangeFilter clears the exchange values that cannot be predicted (RST, serial).
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)
}
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)
SetExchange(exchange string)
SetUserInfo(string)
SetSupercheck(callsigns []core.AnnotatedCallsign)
}
View defines the visual part of the call information window.
Click to show internal directories.
Click to hide internal directories.