c610c3cd9d
Before, we were using several IMAP-specific concepts to represent information being displayed in the UI. Factor these structures out of the IMAP package to make it easier for other backends to provide the required information.
22 lines
430 B
Go
22 lines
430 B
Go
package widgets
|
|
|
|
import (
|
|
"git.sr.ht/~sircmpwn/aerc/lib"
|
|
"git.sr.ht/~sircmpwn/aerc/lib/ui"
|
|
"git.sr.ht/~sircmpwn/aerc/models"
|
|
)
|
|
|
|
type PartInfo struct {
|
|
Index []int
|
|
Msg *models.MessageInfo
|
|
Part *models.BodyStructure
|
|
Store *lib.MessageStore
|
|
}
|
|
|
|
type ProvidesMessage interface {
|
|
ui.Drawable
|
|
Store() *lib.MessageStore
|
|
SelectedAccount() *AccountView
|
|
SelectedMessage() *models.MessageInfo
|
|
SelectedMessagePart() *PartInfo
|
|
}
|