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

        


                                       

 

                      

                                   
                      

 

                                
                                 
                                      
                                                      
                                       
 





                                                      
                                          
 
package app

import (
	"git.sr.ht/~rjarry/aerc/lib"
	"git.sr.ht/~rjarry/aerc/lib/ui"
	"git.sr.ht/~rjarry/aerc/models"
)

type PartInfo struct {
	Index []int
	Msg   *models.MessageInfo
	Part  *models.BodyStructure
	Links []string
}

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)
}