aerc/widgets/providesmessage.go

30 lines
601 B
Go
Raw Normal View History

package widgets
import (
"git.sr.ht/~rjarry/aerc/lib"
"git.sr.ht/~rjarry/aerc/lib/ui"
"git.sr.ht/~rjarry/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
}
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
}
2019-12-18 05:33:55 +00:00
type ProvidesMessages interface {
ui.Drawable
Store() *lib.MessageStore
SelectedAccount() *AccountView
SelectedMessage() (*models.MessageInfo, error)
MarkedMessages() ([]uint32, error)
2019-12-18 05:33:55 +00:00
}