cxxtools::Mimepart Class Reference

#include <cxxtools/mime.h>

Public Types

enum  ContentTransferEncoding { quotedPrintable, base64 }

Public Member Functions

 Mimepart (const std::string &contentType_="text/plain, charset=UTF-8", ContentTransferEncoding contentTransferEncoding_=quotedPrintable)
void setData (const std::string &data)
void addData (const std::string &data)
void addData (std::istream &in)
const std::string & getBody () const
void setHeader (const std::string &key, const std::string &value)

Friends

std::ostream & operator<< (std::ostream &out, const Mimepart &mimePart)

Member Enumeration Documentation

Enumerator:
quotedPrintable 
base64 

Constructor & Destructor Documentation

cxxtools::Mimepart::Mimepart ( const std::string &  contentType_ = "text/plain, charset=UTF-8",
ContentTransferEncoding  contentTransferEncoding_ = quotedPrintable 
)
explicit

Member Function Documentation

void cxxtools::Mimepart::addData ( const std::string &  data)
inline
void cxxtools::Mimepart::addData ( std::istream &  in)
const std::string& cxxtools::Mimepart::getBody ( ) const
inline
void cxxtools::Mimepart::setData ( const std::string &  data)
inline
void cxxtools::Mimepart::setHeader ( const std::string &  key,
const std::string &  value 
)
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Mimepart mimePart 
)
friend

The documentation for this class was generated from the following file: