bridge

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 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 ConfigBridge

type ConfigBridge struct {
	core.QObject

	// Models.
	GameModel *core.QAbstractListModel `property:"games"`
	// contains filtered or unexported fields
}

ConfigBridge is the connection between QML and the Go config.

func NewConfig

func NewConfig(cs config.Service, gm *config.GameModel, configPath string, logger log.Logger) *ConfigBridge

NewConfig returns a new config bridge with all dependencies set up.

func (*ConfigBridge) Connect

func (c *ConfigBridge) Connect()

Connect will connect the QML signals to functions in Go.

type DiabloBridge

type DiabloBridge struct {
	core.QObject

	// Models.
	FileModel *core.QAbstractListModel `property:"patchFiles"`
	// contains filtered or unexported fields
}

DiabloBridge is the connection between QML and Go, it facilitates a way to setup signals that can be interpreted in Go code.

func NewDiablo

func NewDiablo(d2s d2.Service, fm *d2.FileModel, launchDelay int, logger log.Logger) *DiabloBridge

NewDiablo returns a new Diablo bridge with all dependencies set up.

func (*DiabloBridge) Connect

func (b *DiabloBridge) Connect()

Connect will connect the QML signals to functions in Go.

type LadderBridge

type LadderBridge struct {
	core.QObject

	// Models.
	LadderModel *core.QAbstractListModel `property:"characters"`
	// contains filtered or unexported fields
}

LadderBridge is the connection between QML and the ladder model.

func NewLadder

func NewLadder(ls ladder.Service, lm *ladder.TopLadderModel, logger log.Logger) *LadderBridge

NewLadder creates a new ladder bridge with all dependencies set up.

func (*LadderBridge) Connect

func (b *LadderBridge) Connect()

Connect will connect the QML signals to functions in Go.

type NewsBridge

type NewsBridge struct {
	core.QObject

	// Models.
	NewsModel *core.QAbstractListModel `property:"items"`
	// contains filtered or unexported fields
}

NewsBridge is the connection between QML and the news model.

func NewNews

func NewNews(ns news.Service, nm *news.Model, logger log.Logger) *NewsBridge

NewNews sets up a news bridge with all dependencies.

func (*NewsBridge) Connect

func (b *NewsBridge) Connect()

Connect will connect the QML signals to functions in Go.

Jump to

Keyboard shortcuts

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