score

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

Counter is thread-safe.

func NewCounter

func NewCounter(settings core.Settings, entities DXCCEntities) *Counter

func (*Counter) AddMuted added in v0.20.0

func (c *Counter) AddMuted(qso core.QSO) core.QSOScore

func (*Counter) Clear

func (c *Counter) Clear()

func (*Counter) ContestChanged added in v0.6.0

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

func (*Counter) Hide

func (c *Counter) Hide()

func (*Counter) Notify

func (c *Counter) Notify(listener any)

func (*Counter) Result added in v0.6.0

func (c *Counter) Result() int

func (*Counter) SetView

func (c *Counter) SetView(view View)

func (*Counter) Show

func (c *Counter) Show()

func (*Counter) StationChanged added in v0.6.0

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

func (*Counter) Unmute added in v0.20.0

func (c *Counter) Unmute()

func (*Counter) Valid added in v0.6.0

func (c *Counter) Valid() bool

func (*Counter) Value added in v0.4.0

func (c *Counter) Value(callsign callsign.Callsign, entity dxcc.Prefix, band core.Band, mode core.Mode, exchange []string) (points, multis int, multiValues map[conval.Property]string)

type DXCCEntities added in v0.6.0

type DXCCEntities interface {
	Find(string) (dxcc.Prefix, bool)
}

DXCCEntities returns a list of matching DXCC entities for the given string and indicates if there was a match at all.

type ScoreUpdatedListener

type ScoreUpdatedListener interface {
	ScoreUpdated(core.Score)
}

type ScoreUpdatedListenerFunc

type ScoreUpdatedListenerFunc func(core.Score)

func (ScoreUpdatedListenerFunc) ScoreUpdated

func (f ScoreUpdatedListenerFunc) ScoreUpdated(score core.Score)

type View

type View interface {
	Show()
	Hide()

	ShowScore(score core.Score)
	SetGoals(points int, multis int)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL