Documentation ¶
Index ¶
- func BookStatusText(b *audible.Book) string
- func FormatFilePath(p string, width int) string
- func GetActivationBytes(actionQueue chan<- Action) []byte
- func GetCookieJar(actionQueue chan<- Action) http.CookieJar
- func GetDirPickerBtnText(actionQueue chan<- Action) string
- func GetDownloadBtnText(actionQueue chan<- Action) string
- func GetDstPath(actionQueue chan<- Action, b *audible.Book) string
- func GetSelectedDirPath(actionQueue chan<- Action) string
- func Indent(items ...fyne.CanvasObject) fyne.CanvasObject
- func IsBookDownloaded(actionQueue chan<- Action, index int) bool
- func IsBookSelected(actionQueue chan<- Action, index int) bool
- func NewState(client *audible.Client, activationBytes []byte, books []*audible.Book) chan<- Action
- func PathFromFyneURI(uri fyne.ListableURI) string
- func Run(w fyne.Window, renderQueue chan func(w fyne.Window), actionQueue chan<- Action) error
- func StartDownloads(actionQueue chan<- Action) error
- type Action
- func BookCheckboxAction(index int, action components.CheckboxAction) Action
- func BookProgressBarAction(index int, action components.ProgressBarAction) Action
- func BookProgressBarMaybeShow(index int) Action
- func MainProgressBarAction(action components.ProgressBarAction) Action
- func SetBookCheckboxCh(index int, ch chan<- components.CheckboxAction) Action
- func SetBookDownloaded(index int, downloaded bool) Action
- func SetBookStatusText(index int, text string) Action
- func SetDownloading(isDownloading bool) Action
- func SetSelectedDir(uri fyne.ListableURI) Action
- type State
- func (s *State) GetBook(index int) *audible.Book
- func (s *State) GetBookIndexForID(id string) (int, bool)
- func (s *State) GetBookIndicesByID() map[string]int
- func (s *State) GetBooks() []*audible.Book
- func (s *State) GetBooksLen() int
- func (s *State) GetDirPickerBtnText() string
- func (s *State) GetDownloadBtnText() string
- func (s *State) GetDownloadedBooks() []*audible.Book
- func (s *State) IsBookDownloaded(index int) bool
- func (s *State) SetBookDownloaded(index int, downloaded bool)
- func (s *State) SetBookIndexForID(id string, index int)
- func (s *State) SetBookLocalPath(index int, localPath string)
- func (s *State) SetNumSelected(num int)
- func (s *State) SetSelectedDirPath(v string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BookStatusText ¶
func FormatFilePath ¶
FormatFilePath tries to fit the given path within the given width
func GetActivationBytes ¶
func GetCookieJar ¶
func GetDirPickerBtnText ¶
func GetDownloadBtnText ¶
func GetSelectedDirPath ¶
func Indent ¶
func Indent(items ...fyne.CanvasObject) fyne.CanvasObject
func IsBookDownloaded ¶
func IsBookSelected ¶
func PathFromFyneURI ¶
func PathFromFyneURI(uri fyne.ListableURI) string
func StartDownloads ¶
Types ¶
type Action ¶
type Action = func(s *State)
func BookCheckboxAction ¶
func BookCheckboxAction(index int, action components.CheckboxAction) Action
func BookProgressBarAction ¶
func BookProgressBarAction(index int, action components.ProgressBarAction) Action
func MainProgressBarAction ¶
func MainProgressBarAction(action components.ProgressBarAction) Action
func SetBookCheckboxCh ¶
func SetBookCheckboxCh(index int, ch chan<- components.CheckboxAction) Action
func SetBookDownloaded ¶
func SetBookStatusText ¶
func SetDownloading ¶
func SetSelectedDir ¶
func SetSelectedDir(uri fyne.ListableURI) Action
type State ¶
func (*State) GetBookIndicesByID ¶
func (*State) GetBooksLen ¶
func (*State) GetDirPickerBtnText ¶
func (*State) GetDownloadBtnText ¶
func (*State) GetDownloadedBooks ¶
func (*State) IsBookDownloaded ¶
func (*State) SetBookDownloaded ¶
func (*State) SetBookIndexForID ¶
func (*State) SetBookLocalPath ¶
func (*State) SetNumSelected ¶
func (*State) SetSelectedDirPath ¶
Click to show internal directories.
Click to hide internal directories.