2019-06-02 05:15:04 +00:00
|
|
|
package widgets
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.sr.ht/~sircmpwn/aerc/lib"
|
|
|
|
"git.sr.ht/~sircmpwn/aerc/lib/ui"
|
2019-07-08 02:43:56 +00:00
|
|
|
"git.sr.ht/~sircmpwn/aerc/models"
|
2019-06-02 05:15:04 +00:00
|
|
|
)
|
|
|
|
|
2019-07-05 16:21:12 +00:00
|
|
|
type PartInfo struct {
|
|
|
|
Index []int
|
2019-07-08 02:43:58 +00:00
|
|
|
Msg *models.MessageInfo
|
|
|
|
Part *models.BodyStructure
|
2019-07-05 16:21:12 +00:00
|
|
|
}
|
|
|
|
|
2019-06-02 05:15:04 +00:00
|
|
|
type ProvidesMessage interface {
|
|
|
|
ui.Drawable
|
2019-06-02 14:23:53 +00:00
|
|
|
Store() *lib.MessageStore
|
2019-06-02 05:15:04 +00:00
|
|
|
SelectedAccount() *AccountView
|
2019-07-10 00:04:21 +00:00
|
|
|
SelectedMessage() (*models.MessageInfo, error)
|
2019-07-05 16:21:12 +00:00
|
|
|
SelectedMessagePart() *PartInfo
|
2019-06-02 05:15:04 +00:00
|
|
|
}
|
2019-12-18 05:33:55 +00:00
|
|
|
|
|
|
|
type ProvidesMessages interface {
|
|
|
|
ui.Drawable
|
|
|
|
Store() *lib.MessageStore
|
|
|
|
SelectedAccount() *AccountView
|
|
|
|
SelectedMessage() (*models.MessageInfo, error)
|
2020-05-09 09:50:31 +00:00
|
|
|
MarkedMessages() ([]uint32, error)
|
2019-12-18 05:33:55 +00:00
|
|
|
}
|