settings

package
v0.22.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys

func Keys() []string

Keys returns all setting keys. Mostly to know what to delete.

Types

type Settings

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

Settings represents the settings for the app and provides an API for reading and writing settings.

func New

func New(p fyne.Preferences) *Settings

New returns a new Settings object.

func (Settings) DeveloperMode

func (s Settings) DeveloperMode() bool

func (Settings) LastCharacterID

func (s Settings) LastCharacterID() int32

func (Settings) LogLevel

func (s Settings) LogLevel() string

func (Settings) LogLevelDefault

func (s Settings) LogLevelDefault() string

func (Settings) LogLevelNames

func (s Settings) LogLevelNames() []string

func (Settings) LogLevelSlog

func (s Settings) LogLevelSlog() slog.Level

func (Settings) MaxMails

func (s Settings) MaxMails() int

func (Settings) MaxMailsPresets

func (s Settings) MaxMailsPresets() (min int, max int, def int)

func (Settings) MaxWalletTransactions

func (s Settings) MaxWalletTransactions() int

func (Settings) MaxWalletTransactionsPresets

func (s Settings) MaxWalletTransactionsPresets() (min int, max int, def int)

func (Settings) NotificationTypesEnabled

func (s Settings) NotificationTypesEnabled() set.Set[string]

func (Settings) NotifyCommunicationsEarliest

func (s Settings) NotifyCommunicationsEarliest() time.Time

func (Settings) NotifyCommunicationsEnabled

func (s Settings) NotifyCommunicationsEnabled() bool

func (Settings) NotifyContractsEarliest

func (s Settings) NotifyContractsEarliest() time.Time

func (Settings) NotifyContractsEnabled

func (s Settings) NotifyContractsEnabled() bool

func (Settings) NotifyMailsEarliest

func (s Settings) NotifyMailsEarliest() time.Time

func (Settings) NotifyMailsEnabled

func (s Settings) NotifyMailsEnabled() bool

func (Settings) NotifyPIEarliest

func (s Settings) NotifyPIEarliest() time.Time

func (Settings) NotifyPIEnabled

func (s Settings) NotifyPIEnabled() bool

func (Settings) NotifyTimeoutHours

func (s Settings) NotifyTimeoutHours() int

func (Settings) NotifyTimeoutHoursPresets

func (s Settings) NotifyTimeoutHoursPresets() (min int, max int, def int)

func (Settings) NotifyTrainingEarliest

func (s Settings) NotifyTrainingEarliest() time.Time

func (Settings) NotifyTrainingEnabled

func (s Settings) NotifyTrainingEnabled() bool

func (Settings) RecentSearches

func (s Settings) RecentSearches() []int32

func (Settings) ResetDeveloperMode

func (s Settings) ResetDeveloperMode()

func (Settings) ResetLastCharacterID

func (s Settings) ResetLastCharacterID()

func (Settings) ResetLogLevel

func (s Settings) ResetLogLevel()

func (Settings) ResetMaxMails

func (s Settings) ResetMaxMails()

func (Settings) ResetMaxWalletTransactions

func (s Settings) ResetMaxWalletTransactions()

func (Settings) ResetNotificationTypesEnabled

func (s Settings) ResetNotificationTypesEnabled()

func (Settings) ResetNotifyCommunicationsEnabled

func (s Settings) ResetNotifyCommunicationsEnabled()

func (Settings) ResetNotifyContractsEnabled

func (s Settings) ResetNotifyContractsEnabled()

func (Settings) ResetNotifyMailsEnabled

func (s Settings) ResetNotifyMailsEnabled()

func (Settings) ResetNotifyPIEnabled

func (s Settings) ResetNotifyPIEnabled()

func (Settings) ResetNotifyTimeoutHours

func (s Settings) ResetNotifyTimeoutHours()

func (Settings) ResetNotifyTrainingEnabled

func (s Settings) ResetNotifyTrainingEnabled()

func (Settings) ResetSysTrayEnabled

func (s Settings) ResetSysTrayEnabled()

func (Settings) ResetTabsMainID

func (s Settings) ResetTabsMainID()

func (Settings) ResetWindowSize

func (s Settings) ResetWindowSize()

func (Settings) SetDeveloperMode

func (s Settings) SetDeveloperMode(v bool)

func (Settings) SetLastCharacterID

func (s Settings) SetLastCharacterID(id int32)

func (Settings) SetLogLevel

func (s Settings) SetLogLevel(l string)

func (Settings) SetMaxMails

func (s Settings) SetMaxMails(v int)

func (Settings) SetMaxWalletTransactions

func (s Settings) SetMaxWalletTransactions(v int)

func (Settings) SetNotificationTypesEnabled

func (s Settings) SetNotificationTypesEnabled(v set.Set[string])

func (Settings) SetNotifyCommunicationsEarliest

func (s Settings) SetNotifyCommunicationsEarliest(t time.Time)

func (Settings) SetNotifyCommunicationsEnabled

func (s Settings) SetNotifyCommunicationsEnabled(v bool)

func (Settings) SetNotifyContractsEarliest

func (s Settings) SetNotifyContractsEarliest(t time.Time)

func (Settings) SetNotifyContractsEnabled

func (s Settings) SetNotifyContractsEnabled(v bool)

func (Settings) SetNotifyMailsEarliest

func (s Settings) SetNotifyMailsEarliest(t time.Time)

func (Settings) SetNotifyMailsEnabled

func (s Settings) SetNotifyMailsEnabled(v bool)

func (Settings) SetNotifyPIEarliest

func (s Settings) SetNotifyPIEarliest(t time.Time)

func (Settings) SetNotifyPIEnabled

func (s Settings) SetNotifyPIEnabled(v bool)

func (Settings) SetNotifyTimeoutHours

func (s Settings) SetNotifyTimeoutHours(v int)

func (Settings) SetNotifyTrainingEarliest

func (s Settings) SetNotifyTrainingEarliest(t time.Time)

func (Settings) SetNotifyTrainingEnabled

func (s Settings) SetNotifyTrainingEnabled(v bool)

func (Settings) SetRecentSearches

func (s Settings) SetRecentSearches(v []int32)

func (Settings) SetSysTrayEnabled

func (s Settings) SetSysTrayEnabled(v bool)

func (Settings) SetTabsMainID

func (s Settings) SetTabsMainID(v int)

func (Settings) SetWindowSize

func (s Settings) SetWindowSize(v fyne.Size)

func (Settings) SysTrayEnabled

func (s Settings) SysTrayEnabled() bool

func (Settings) TabsMainID

func (s Settings) TabsMainID() int

func (Settings) WindowSize

func (s Settings) WindowSize() fyne.Size

Jump to

Keyboard shortcuts

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