summary refs log blame commit diff stats
path: root/widgets/providesmessage.go
blob: d8b1e77166efd371bc89237b3797b6cdf6bb4839 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


               

                                     

                                         
                                         

 






                                 

                                
                                 
                                      
                                             
                                       
 
package widgets

import (
	"github.com/emersion/go-imap"

	"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   *types.MessageInfo
	Part  *imap.BodyStructure
	Store *lib.MessageStore
}

type ProvidesMessage interface {
	ui.Drawable
	Store() *lib.MessageStore
	SelectedAccount() *AccountView
	SelectedMessage() *models.MessageInfo
	SelectedMessagePart() *PartInfo
}