0d645bcebd
I'm not sure what are the implications but it seems required. Link: https://github.com/golang/go/issues/20883 Signed-off-by: Robin Jarry <robin@jarry.cc>
29 lines
601 B
Go
29 lines
601 B
Go
package widgets
|
|
|
|
import (
|
|
"git.sr.ht/~rjarry/aerc/lib"
|
|
"git.sr.ht/~rjarry/aerc/lib/ui"
|
|
"git.sr.ht/~rjarry/aerc/models"
|
|
)
|
|
|
|
type PartInfo struct {
|
|
Index []int
|
|
Msg *models.MessageInfo
|
|
Part *models.BodyStructure
|
|
}
|
|
|
|
type ProvidesMessage interface {
|
|
ui.Drawable
|
|
Store() *lib.MessageStore
|
|
SelectedAccount() *AccountView
|
|
SelectedMessage() (*models.MessageInfo, error)
|
|
SelectedMessagePart() *PartInfo
|
|
}
|
|
|
|
type ProvidesMessages interface {
|
|
ui.Drawable
|
|
Store() *lib.MessageStore
|
|
SelectedAccount() *AccountView
|
|
SelectedMessage() (*models.MessageInfo, error)
|
|
MarkedMessages() ([]uint32, error)
|
|
}
|