18 mutable std::string key;
19 mutable std::string value;
22 inline const std::string &
getKey(
void)
const {
return key; }
23 inline const std::string &
getValue(
void)
const {
return value; }
27 HeaderItem(
const std::string &key,
const std::string &value);
33 mutable std::vector<HeaderItem> content;
37 bool getAllHeaders(
const std::string &key, std::vector<HeaderItem> &dest)
const;
38 void add(
const std::string &name,
const std::string &content);
39 void clear(
void)
const;
88 bool includeheaders,
unsigned int startoffset,
unsigned int length, std::string &storage)
const;
90 virtual void clear(
void)
const;
94 virtual int parseFull(
const std::string &toboundary,
int &boundarysize)
const;
103 mutable bool headerIsParsed;
104 mutable bool allIsParsed;
109 void clear(
void)
const;
The IODevice class provides a framework for reading and writing to device.
void parseFull(int fd) const
bool isHeaderParsed(void)
void parseOnlyHeader(int fd) const
bool isMessageRFC822(void) const
void printBody(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const
virtual int parseFull(const std::string &toboundary, int &boundarysize) const
virtual void clear(void) const
unsigned int headerstartoffsetcrlf
unsigned int getBodyStartOffset(void) const
std::vector< MimePart > members
unsigned int getNofBodyLines(void) const
void printHeader(int fd, Binc::IODevice &output, std::vector< std::string > headers, bool includeheaders, unsigned int startoffset, unsigned int length, std::string &storage) const
unsigned int getBodyLength(void) const
virtual int parseOnlyHeader(const std::string &toboundary) const
unsigned int bodystartoffsetcrlf
bool isMultipart(void) const
unsigned int getSize(void) const
unsigned int getNofLines(void) const
const MimePart * getPart(const std::string &findpart, std::string genpart, FetchType fetchType=FetchBody) const
unsigned int headerlength
const std::string & getSubType(void) const
void printDoc(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const