settings

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 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 ContestListener

type ContestListener interface {
	ContestChanged(core.Contest)
}

type ContestListenerFunc

type ContestListenerFunc func(core.Contest)

func (ContestListenerFunc) ContestChanged

func (f ContestListenerFunc) ContestChanged(contest core.Contest)

type DefaultsOpener

type DefaultsOpener func()

type Settings

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

func New

func New(defaultsOpener DefaultsOpener, xchangeRegexpMatcher XchangeRegexpMatcher, station core.Station, contest core.Contest) *Settings

func (*Settings) Contest

func (s *Settings) Contest() core.Contest

func (*Settings) ContestDirty

func (s *Settings) ContestDirty() bool

func (*Settings) EnterContestAllowMultiBand

func (s *Settings) EnterContestAllowMultiBand(value bool)

func (*Settings) EnterContestAllowMultiMode

func (s *Settings) EnterContestAllowMultiMode(value bool)

func (*Settings) EnterContestCabrilloQSOTemplate added in v0.6.1

func (s *Settings) EnterContestCabrilloQSOTemplate(value string)

func (*Settings) EnterContestCountPerBand

func (s *Settings) EnterContestCountPerBand(value bool)

func (*Settings) EnterContestEnterTheirNumber

func (s *Settings) EnterContestEnterTheirNumber(value bool)

func (*Settings) EnterContestEnterTheirXchange

func (s *Settings) EnterContestEnterTheirXchange(value bool)

func (*Settings) EnterContestMultis

func (s *Settings) EnterContestMultis(dxcc, wpx, xchange bool)

func (*Settings) EnterContestName

func (s *Settings) EnterContestName(value string)

func (*Settings) EnterContestOtherPoints

func (s *Settings) EnterContestOtherPoints(value string)

func (*Settings) EnterContestRequireTheirXchange

func (s *Settings) EnterContestRequireTheirXchange(value bool)

func (*Settings) EnterContestSameContinentPoints

func (s *Settings) EnterContestSameContinentPoints(value string)

func (*Settings) EnterContestSameCountryPoints

func (s *Settings) EnterContestSameCountryPoints(value string)

func (*Settings) EnterContestSpecificCountryPoints

func (s *Settings) EnterContestSpecificCountryPoints(value string)

func (*Settings) EnterContestSpecificCountryPrefixes

func (s *Settings) EnterContestSpecificCountryPrefixes(value string)

func (*Settings) EnterContestTestXchangeValue

func (s *Settings) EnterContestTestXchangeValue(value string)

func (*Settings) EnterContestXchangeMultiPattern

func (s *Settings) EnterContestXchangeMultiPattern(value string)

func (*Settings) EnterStationCallsign

func (s *Settings) EnterStationCallsign(value string)

func (*Settings) EnterStationLocator

func (s *Settings) EnterStationLocator(value string)

func (*Settings) EnterStationOperator

func (s *Settings) EnterStationOperator(value string)

func (*Settings) Notify

func (s *Settings) Notify(listener interface{})

func (*Settings) OpenDefaults

func (s *Settings) OpenDefaults()

func (*Settings) Reset

func (s *Settings) Reset()

func (*Settings) Save

func (s *Settings) Save()

func (*Settings) SetContest

func (s *Settings) SetContest(contest core.Contest)

func (*Settings) SetStation

func (s *Settings) SetStation(station core.Station)

func (*Settings) SetView

func (s *Settings) SetView(view View)

func (*Settings) SetWriter

func (s *Settings) SetWriter(writer Writer)

func (*Settings) Show

func (s *Settings) Show()

func (*Settings) Station

func (s *Settings) Station() core.Station

func (*Settings) StationDirty

func (s *Settings) StationDirty() bool

type SettingsListener

type SettingsListener interface {
	SettingsChanged(core.Settings)
}

type SettingsListenerFunc

type SettingsListenerFunc func(core.Settings)

func (SettingsListenerFunc) SettingsChanged

func (f SettingsListenerFunc) SettingsChanged(settings core.Settings)

type StationListener

type StationListener interface {
	StationChanged(core.Station)
}

type StationListenerFunc

type StationListenerFunc func(core.Station)

func (StationListenerFunc) StationChanged

func (f StationListenerFunc) StationChanged(station core.Station)

type View

type View interface {
	Show()
	ShowMessage(string)
	HideMessage()

	SetStationCallsign(string)
	SetStationOperator(string)
	SetStationLocator(string)
	SetContestName(string)
	SetContestEnterTheirNumber(bool)
	SetContestEnterTheirXchange(bool)
	SetContestRequireTheirXchange(bool)
	SetContestAllowMultiBand(bool)
	SetContestAllowMultiMode(bool)
	SetContestSameCountryPoints(string)
	SetContestSameContinentPoints(string)
	SetContestSpecificCountryPoints(string)
	SetContestSpecificCountryPrefixes(string)
	SetContestOtherPoints(string)
	SetContestMultis(dxcc, wpx, xchange bool)
	SetContestXchangeMultiPattern(string)
	SetContestXchangeMultiPatternResult(string)
	SetContestCountPerBand(bool)
	SetContestCabrilloQSOTemplate(string)
}

type Writer

type Writer interface {
	WriteStation(core.Station) error
	WriteContest(core.Contest) error
}

type XchangeRegexpMatcher

type XchangeRegexpMatcher func(*regexp.Regexp, string) (string, bool)

Jump to

Keyboard shortcuts

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