cmp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatusIcon

func NewStatusIcon(status bool) *statusIcon

creates new status icon

Types

type IdentityDetails

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

func NewIdentityDetails

func NewIdentityDetails(

	ctx *model.Context,

	reLoginClicked chan bool) *IdentityDetails

creates new identity details box

func (*IdentityDetails) Apply

func (id *IdentityDetails) Apply(status *status.Status, afterApply func(loggedIn bool))

applies new status to identity details

type Notification

type Notification struct {
	Revealer *gtk.Revealer
	// contains filtered or unexported fields
}

func NewNotification

func NewNotification() *Notification

creates notification to show error messages

func (*Notification) Show

func (n *Notification) Show(text string, timeout time.Duration)

shows notification and hides them after 10s

type VPNDetail

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

func NewVPNDetail

func NewVPNDetail(

	context *model.Context,

	vpnActionClicked chan *model.Credentials,

	parent *gtk.Window,

	getServers func() ([]string, error),

	getCertExpireDate func() (int64, bool, error),

	identityDetail *IdentityDetails) *VPNDetail

creates new vpn details

func (*VPNDetail) Apply

func (vd *VPNDetail) Apply(status *vpnstatus.Status, afterApply func(connectedOrTrusted bool))

applies new vpn status and calls afterApply after them

func (*VPNDetail) CloseDialog added in v0.0.11

func (vd *VPNDetail) CloseDialog()

triggers dialog closing

func (*VPNDetail) IsDialogOpen added in v0.0.11

func (vd *VPNDetail) IsDialogOpen() bool

returns opening status of dialog

func (*VPNDetail) OpenDialog added in v0.0.11

func (vd *VPNDetail) OpenDialog()

is opening the connect dialog

func (*VPNDetail) SetButtonsAfterProgress

func (vd *VPNDetail) SetButtonsAfterProgress()

set button state after progress -> can be after status update or if error occurs

Jump to

Keyboard shortcuts

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