auth

package
v0.0.0-...-6513b37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

type Dialog struct {
	*dialog.Dialog

	Auther cchat.Authenticator
	// contains filtered or unexported fields
}

func NewDialog

func NewDialog(name text.Rich, authers []cchat.Authenticator, auth func(cchat.Session)) *Dialog

NewDialog makes a new authentication dialog. Auth() is called when the user is authenticated successfully inside the Gtk main thread.

type EntryInput

type EntryInput struct {
	*gtk.Entry
}

func NewEntryInput

func NewEntryInput() EntryInput

func (EntryInput) GetText

func (i EntryInput) GetText() (text string)

type MultilineInput

type MultilineInput struct {
	*gtk.TextView
	Buffer *gtk.TextBuffer
}

func NewMultilineInput

func NewMultilineInput() MultilineInput

func (MultilineInput) GetText

func (i MultilineInput) GetText() (text string)

func (MultilineInput) SetText

func (i MultilineInput) SetText(text string)

type Request

type Request struct {
	*gtk.ScrolledWindow
	Box      *gtk.Box
	Grid     *gtk.Grid
	ErrRev   *gtk.Revealer
	ErrLabel *gtk.Label
	// contains filtered or unexported fields
}

Request is a single page of authenticator fields.

func NewRequest

func NewRequest(auther cchat.Authenticator, done func()) *Request

func (*Request) SetError

func (r *Request) SetError(err error)

SetError prints the error. If err is nil, then the label is cleared.

type RequestStack

type RequestStack struct {
	*singlestack.Stack
	// contains filtered or unexported fields
}

func NewRequestStack

func NewRequestStack() *RequestStack

func (*RequestStack) Request

func (rs *RequestStack) Request() *Request

func (*RequestStack) SetRequest

func (rs *RequestStack) SetRequest(auther cchat.Authenticator, done func())

SetRequest sets the request into the stack. If auther is nil, then the placeholder icon is displayed. If auther is not nil, then Show() will be called.

type StageList

type StageList struct {
	*gtk.ScrolledWindow
	ListBox *gtk.ListBox
}

func NewStageList

func NewStageList(authers []cchat.Authenticator, fn func(cchat.Authenticator)) *StageList

func (*StageList) SelectFirst

func (slist *StageList) SelectFirst()

type Texter

type Texter interface {
	gtk.IWidget
	GetText() string
	SetText(string)
}

Jump to

Keyboard shortcuts

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