aerc/widgets/providesmessage.go

25 lines
464 B
Go
Raw Normal View History

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