1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00
aerc/widgets/providesmessage.go

30 lines
620 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 18:21:12 +02:00
type PartInfo struct {
Index []int
Msg *models.MessageInfo
Part *models.BodyStructure
2019-07-05 18:21:12 +02:00
}
type ProvidesMessage interface {
ui.Drawable
2019-06-02 16:23:53 +02:00
Store() *lib.MessageStore
SelectedAccount() *AccountView
SelectedMessage() (*models.MessageInfo, error)
2019-07-05 18:21:12 +02:00
SelectedMessagePart() *PartInfo
}
2019-12-18 06:33:55 +01:00
type ProvidesMessages interface {
ui.Drawable
Store() *lib.MessageStore
SelectedAccount() *AccountView
SelectedMessage() (*models.MessageInfo, error)
MarkedMessages() ([]*models.MessageInfo, error)
}