Documentation
¶
Index ¶
- type Callinfo
- type Controller
- func (c *Controller) Activate()
- func (c *Controller) Clear()
- func (c *Controller) ContestChanged(contest core.Contest)
- func (c *Controller) CurrentValues() core.KeyerValues
- func (c *Controller) EditLastQSO()
- func (c *Controller) Enter(text string)
- func (c *Controller) GotoNextField() core.EntryField
- func (c *Controller) Log()
- func (c *Controller) QSOSelected(qso core.QSO)
- func (c *Controller) SendQuestion()
- func (c *Controller) SetActiveField(field core.EntryField)
- func (c *Controller) SetBand(band core.Band)
- func (c *Controller) SetCallinfo(callinfo Callinfo)
- func (c *Controller) SetFrequency(frequency core.Frequency)
- func (c *Controller) SetKeyer(keyer Keyer)
- func (c *Controller) SetLogbook(logbook Logbook)
- func (c *Controller) SetMode(mode core.Mode)
- func (c *Controller) SetVFO(vfo VFO)
- func (c *Controller) SetView(view View)
- func (c *Controller) StartAutoRefresh()
- func (c *Controller) StationChanged(station core.Station)
- func (c *Controller) StopTX()
- type Keyer
- type Logbook
- type QSOList
- type VFO
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(settings core.Settings, clock core.Clock, qsoList QSOList, asyncRunner core.AsyncRunner) *Controller
NewController returns a new entry controller.
func (*Controller) Activate ¶ added in v0.5.0
func (c *Controller) Activate()
func (*Controller) Clear ¶ added in v0.5.0
func (c *Controller) Clear()
func (*Controller) ContestChanged ¶ added in v0.6.0
func (c *Controller) ContestChanged(contest core.Contest)
func (*Controller) CurrentValues ¶
func (c *Controller) CurrentValues() core.KeyerValues
func (*Controller) EditLastQSO ¶ added in v0.5.0
func (c *Controller) EditLastQSO()
func (*Controller) Enter ¶
func (c *Controller) Enter(text string)
func (*Controller) GotoNextField ¶
func (c *Controller) GotoNextField() core.EntryField
func (*Controller) Log ¶
func (c *Controller) Log()
func (*Controller) QSOSelected ¶
func (c *Controller) QSOSelected(qso core.QSO)
func (*Controller) SendQuestion ¶
func (c *Controller) SendQuestion()
func (*Controller) SetActiveField ¶
func (c *Controller) SetActiveField(field core.EntryField)
func (*Controller) SetBand ¶
func (c *Controller) SetBand(band core.Band)
func (*Controller) SetCallinfo ¶
func (c *Controller) SetCallinfo(callinfo Callinfo)
func (*Controller) SetFrequency ¶ added in v0.4.0
func (c *Controller) SetFrequency(frequency core.Frequency)
func (*Controller) SetKeyer ¶
func (c *Controller) SetKeyer(keyer Keyer)
func (*Controller) SetLogbook ¶
func (c *Controller) SetLogbook(logbook Logbook)
func (*Controller) SetMode ¶
func (c *Controller) SetMode(mode core.Mode)
func (*Controller) SetVFO ¶
func (c *Controller) SetVFO(vfo VFO)
func (*Controller) SetView ¶
func (c *Controller) SetView(view View)
func (*Controller) StartAutoRefresh ¶ added in v0.5.0
func (c *Controller) StartAutoRefresh()
func (*Controller) StationChanged ¶ added in v0.6.0
func (c *Controller) StationChanged(station core.Station)
func (*Controller) StopTX ¶ added in v0.5.0
func (c *Controller) StopTX()
type Keyer ¶
type Keyer interface {
SendQuestion(q string)
Stop()
}
Keyer functionality used for QSO entry.
type Logbook ¶
type Logbook interface {
NextNumber() core.QSONumber
LastBand() core.Band
LastMode() core.Mode
LastXchange() string
Log(core.QSO)
}
Logbook functionality used for QSO entry.
type QSOList ¶
type QSOList interface {
Find(callsign.Callsign, core.Band, core.Mode) []core.QSO
FindDuplicateQSOs(callsign.Callsign, core.Band, core.Mode) []core.QSO
SelectQSO(core.QSO)
SelectLastQSO()
}
QSOList functionality used for QSO entry.
type VFO ¶
type VFO interface {
Active() bool
SetFrequency(core.Frequency)
SetBand(core.Band)
SetMode(core.Mode)
}
VFO functionality used for QSO entry.
type View ¶
type View interface {
SetUTC(string)
SetMyCall(string)
SetFrequency(core.Frequency)
SetCallsign(string)
SetTheirReport(string)
SetTheirNumber(string)
SetTheirXchange(string)
SetBand(text string)
SetMode(text string)
SetMyReport(string)
SetMyNumber(string)
SetMyXchange(string)
EnableExchangeFields(bool, bool)
SetActiveField(core.EntryField)
SetDuplicateMarker(bool)
SetEditingMarker(bool)
ShowMessage(...interface{})
ClearMessage()
}
View represents the visual part of the QSO data entry.
Click to show internal directories.
Click to hide internal directories.