28#ifndef API_MIP_FILE_MSG_INSPECTOR_H_
29#define API_MIP_FILE_MSG_INSPECTOR_H_
54 virtual const std::vector<uint8_t>&
GetBytes() = 0;
58 virtual std::shared_ptr<Stream>
GetStream()
const = 0;
62 virtual const std::string&
GetName()
const = 0;
70 virtual const std::string&
GetPath()
const = 0;
87 virtual const std::vector<uint8_t>&
GetBody()
const = 0;
105 virtual const std::vector<std::shared_ptr<MsgAttachmentData>>&
GetAttachments()
const = 0;
virtual const std::string & GetPath() const =0
Get attachment path name as a string.
virtual const std::string & GetLongPath() const =0
Get attachment long path name as a string.
virtual const std::vector< uint8_t > & GetBytes()=0
Get attachment as a binary byte vector.
virtual std::shared_ptr< Stream > GetStream() const =0
Get attachment as a binary stream.
virtual const std::string & GetLongName() const =0
Get attachment long name as a string.
virtual const std::string & GetName() const =0
Get attachment name as a string.
virtual unsigned int GetCodePage() const =0
Get body encoding code page, relevant for txt, html body formats.
virtual const std::vector< uint8_t > & GetBody() const =0
Get the body of the msg.
virtual BodyType GetBodyType() const =0
Get body type.
virtual const std::vector< std::shared_ptr< MsgAttachmentData > > & GetAttachments() const =0
Get a list of attachment as msg attachment data objects.
BodyType
Body type enumerator.
@ HTML
HTML style body type, encoding is returned as utf8.
@ TXT
Text style body type, encoding is returned as utf8.
@ UNKNOWN
Unkown body type.
@ RTF
RTF style body type, a binary format.