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