aboutsummaryrefslogblamecommitdiffstats
path: root/widgets/providesmessage.go
blob: 6e00b1cf0841ec36f7c6cb7f0f47fb9bf9c1fdd4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


               

                                         
                                         

 

                      

                                   

 

                                
                                 
                                      
                                                      
                                       
 





                                                      
                                          
 
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
}

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

type ProvidesMessages interface {
	ui.Drawable
	Store() *lib.MessageStore
	SelectedAccount() *AccountView
	SelectedMessage() (*models.MessageInfo, error)
	MarkedMessages() ([]uint32, error)
}