components

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMainMenu

func AddMainMenu(
	ctx context.Context,
	app *adw.Application,
	window *adw.ApplicationWindow,

	settings *gio.Settings,

	menuButton *gtk.MenuButton,
	overlay *adw.ToastOverlay,
	gateway *server.Gateway,
	getMagnetLink func() string,
	cancel func(),
) (*adw.PreferencesWindow, *gtk.Entry)

func OpenAssistantWindow

func OpenAssistantWindow(
	ctx context.Context,
	app *adw.Application,

	manager *client.Manager,
	apiAddr, apiUsername,
	apiPassword string,

	settings *gio.Settings,
	gateway *server.Gateway,
	cancel func(),
	tmpDir string,
) error

func OpenControlsWindow

func OpenControlsWindow(
	ctx context.Context,
	app *adw.Application,

	torrentTitle string,
	subtitles []mediaWithPriorityAndID,
	selectedTorrentMedia,
	torrentReadme string,

	manager *client.Manager,
	apiAddr, apiUsername,
	apiPassword,

	magnetLink,
	streamURL string,

	settings *gio.Settings,
	gateway *server.Gateway,
	cancel func(),
	tmpDir string,

	ready chan struct{},
	cancelDownload func(),

	adapter *wrtcconn.Adapter,
	ids chan string,
	adapterCtx context.Context,
	cancelAdapterCtx func(),

	community,
	password,
	key string,

	bufferedMessages []interface{},
	bufferedPeer *wrtcconn.Peer,
	bufferedDecoder *json.Decoder,
) error

func OpenErrorDialog

func OpenErrorDialog(ctx context.Context, window *adw.ApplicationWindow, err error)

func SetSubtitles

func SetSubtitles(
	ctx context.Context,
	window *adw.ApplicationWindow,

	filePath string,
	file io.Reader,
	tmpDir string,
	ipcFile string,

	noneActivator *gtk.CheckButton,
	subtitlesOverlay *adw.ToastOverlay,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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