aerc/widgets/providesmessage.go

23 lines
439 B
Go
Raw Normal View History

package widgets
import (
"git.sr.ht/~sircmpwn/aerc/lib"
"git.sr.ht/~sircmpwn/aerc/lib/ui"
"git.sr.ht/~sircmpwn/aerc/models"
)
2019-07-05 16:21:12 +00:00
type PartInfo struct {
Index []int
Msg *models.MessageInfo
Part *models.BodyStructure
2019-07-05 16:21:12 +00:00
Store *lib.MessageStore
}
type ProvidesMessage interface {
ui.Drawable
2019-06-02 14:23:53 +00:00
Store() *lib.MessageStore
SelectedAccount() *AccountView
SelectedMessage() (*models.MessageInfo, error)
2019-07-05 16:21:12 +00:00
SelectedMessagePart() *PartInfo
}