settings

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WhisperSettings = "harbour-whisperfish.conf"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	core.QObject
	// contains filtered or unexported fields
}

func (*Settings) GetBool

func (s *Settings) GetBool(key string) bool

Get bool value

func (*Settings) GetString

func (s *Settings) GetString(key string) string

Get string value

func (*Settings) GetStringList added in v0.4.2

func (s *Settings) GetStringList(key string) []string

Get string list value

func (*Settings) SetBool

func (s *Settings) SetBool(key string, val bool)

Set bool value

func (*Settings) SetDefaults

func (s *Settings) SetDefaults()

Set default values

func (*Settings) SetString

func (s *Settings) SetString(key string, val string)

Set string value

func (*Settings) SetStringList added in v0.4.2

func (s *Settings) SetStringList(key string, val []string)

Set string list value

func (*Settings) Setup

func (s *Settings) Setup(configDir, storageDir string) error

Initialize whisperfish settings file. Migrates old config if found.

func (*Settings) Sync

func (s *Settings) Sync()

Jump to

Keyboard shortcuts

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