services

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptedExtensions map[string]bool = map[string]bool{
	".png":  true,
	".jpg":  true,
	".jpeg": true,
}
View Source
var PlaylistExtensions map[string]bool = map[string]bool{
	".txt": true,
	".m3u": true,
}

Functions

This section is empty.

Types

type ConfigService added in v0.0.5

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

func NewConfigService added in v0.0.5

func NewConfigService() *ConfigService

func (*ConfigService) GetDelay added in v0.0.5

func (cs *ConfigService) GetDelay() time.Duration

func (*ConfigService) GetShuffle added in v0.0.5

func (cs *ConfigService) GetShuffle() bool

func (*ConfigService) OnChange added in v0.0.5

func (cs *ConfigService) OnChange()

func (*ConfigService) Save added in v0.0.5

func (cs *ConfigService) Save()

func (*ConfigService) SetDelay added in v0.0.5

func (cs *ConfigService) SetDelay(delay time.Duration)

func (*ConfigService) SetShuffle added in v0.0.5

func (cs *ConfigService) SetShuffle(shuffle bool)

func (*ConfigService) Subscribe added in v0.0.5

func (cs *ConfigService) Subscribe(handler func(models.Config))

func (*ConfigService) Update added in v0.0.5

func (cs *ConfigService) Update()

type ImageService

type ImageService struct {
	Zoomable *models.ZoomableImage
	// contains filtered or unexported fields
}

func NewImageService

func NewImageService() *ImageService

func (*ImageService) AddCurrentToPlaylist added in v0.0.5

func (is *ImageService) AddCurrentToPlaylist(index int)

func (*ImageService) AddURI

func (is *ImageService) AddURI(uri fyne.URI) []fyne.URI

func (*ImageService) Clear

func (is *ImageService) Clear()

func (*ImageService) GetCurrent

func (is *ImageService) GetCurrent() fyne.URI

func (*ImageService) GetImageFromURI

func (is *ImageService) GetImageFromURI(uri fyne.URI) image.Image

func (*ImageService) GetPlaylist added in v0.0.6

func (is *ImageService) GetPlaylist() []string

func (*ImageService) HandleConfigUpdate added in v0.0.5

func (is *ImageService) HandleConfigUpdate(config models.Config)

func (*ImageService) ImportImages

func (is *ImageService) ImportImages(uri []fyne.URI)

func (*ImageService) Next

func (is *ImageService) Next() fyne.URI

func (*ImageService) Previous

func (is *ImageService) Previous() fyne.URI

func (*ImageService) RecalculateCurrentPlaylist added in v0.0.5

func (is *ImageService) RecalculateCurrentPlaylist()

func (*ImageService) RemoveCurrentFromPlaylist added in v0.0.5

func (is *ImageService) RemoveCurrentFromPlaylist()

func (*ImageService) SetCurrentPlaylist added in v0.0.5

func (is *ImageService) SetCurrentPlaylist(index int)

func (*ImageService) SetPlaylist added in v0.0.5

func (is *ImageService) SetPlaylist(playlist int)

func (*ImageService) Update

func (is *ImageService) Update(w fyne.Window, ps *PlayerService, restartDelay bool)

type NotificationService

type NotificationService struct {
	CurrentMessage string
	// contains filtered or unexported fields
}

func NewNotificationService

func NewNotificationService(w fyne.Window) *NotificationService

func (*NotificationService) Init

func (ns *NotificationService) Init(w fyne.Window)

func (*NotificationService) SetNotification

func (ns *NotificationService) SetNotification(notification string)

type PlayerService

type PlayerService struct {
	IsPlaying    bool
	LastSet      time.Time
	CurrentDelay time.Duration
	// contains filtered or unexported fields
}

func NewPlayerService

func NewPlayerService() *PlayerService

func (*PlayerService) HandleConfigUpdate added in v0.0.5

func (ps *PlayerService) HandleConfigUpdate(config models.Config)

func (*PlayerService) PlayPause

func (ps *PlayerService) PlayPause()

func (*PlayerService) Stop

func (ps *PlayerService) Stop()

Jump to

Keyboard shortcuts

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