cxxtools::Mime Class Reference

#include <cxxtools/mime.h>

Public Types

typedef
Mimepart::ContentTransferEncoding 
ContentTransferEncoding

Public Member Functions

void setHeader (const std::string &key, const std::string &value)
 Adds a header-line to the mime-object.
MimepartaddPart (const Mimepart &part)
 Adds a part to the mime-object.
MimepartaddPart (const std::string &data, const std::string &contentType="text/plain", ContentTransferEncoding contentTransferEncoding=Mimepart::quotedPrintable)
 Adds a part to the mime-object. The data is passed as a std::string.
MimepartaddPart (std::istream &in, const std::string &contentType="text/plain", ContentTransferEncoding contentTransferEncoding=Mimepart::quotedPrintable)
 Adds a part to the mime-object. The data is read from a input stream.
MimepartaddTextFile (const std::string &contentType, const std::string &filename, const std::string &data)
 Adds a text file. The data is passed as a std::string.
MimepartaddTextFile (const std::string &contentType, const std::string &filename, std::istream &in)
 Adds a text file. The data is read from a istream.
MimepartaddTextFile (const std::string &contentType, const std::string &filename)
 Adds a text file. The data is read from a file.
MimepartaddBinaryFile (const std::string &contentType, const std::string &filename, const std::string &data)
 Adds a binary file. The data is passed as a std::string.
MimepartaddBinaryFile (const std::string &contentType, const std::string &filename, std::istream &in)
 Adds a binary file. The data is read from a istream.
MimepartaddBinaryFile (const std::string &contentType, const std::string &filename)
 Adds a binary file. The data is read from a file.

Friends

std::ostream & operator<< (std::ostream &out, const Mime &mime)

Member Typedef Documentation

Member Function Documentation

Mimepart& cxxtools::Mime::addBinaryFile ( const std::string &  contentType,
const std::string &  filename,
const std::string &  data 
)
inline

Adds a binary file. The data is passed as a std::string.

Mimepart& cxxtools::Mime::addBinaryFile ( const std::string &  contentType,
const std::string &  filename,
std::istream &  in 
)
inline

Adds a binary file. The data is read from a istream.

Mimepart& cxxtools::Mime::addBinaryFile ( const std::string &  contentType,
const std::string &  filename 
)

Adds a binary file. The data is read from a file.

Mimepart& cxxtools::Mime::addPart ( const Mimepart part)
inline

Adds a part to the mime-object.

Mimepart& cxxtools::Mime::addPart ( const std::string &  data,
const std::string &  contentType = "text/plain",
ContentTransferEncoding  contentTransferEncoding = Mimepart::quotedPrintable 
)

Adds a part to the mime-object. The data is passed as a std::string.

Mimepart& cxxtools::Mime::addPart ( std::istream &  in,
const std::string &  contentType = "text/plain",
ContentTransferEncoding  contentTransferEncoding = Mimepart::quotedPrintable 
)

Adds a part to the mime-object. The data is read from a input stream.

Mimepart& cxxtools::Mime::addTextFile ( const std::string &  contentType,
const std::string &  filename,
const std::string &  data 
)
inline

Adds a text file. The data is passed as a std::string.

Mimepart& cxxtools::Mime::addTextFile ( const std::string &  contentType,
const std::string &  filename,
std::istream &  in 
)
inline

Adds a text file. The data is read from a istream.

Mimepart& cxxtools::Mime::addTextFile ( const std::string &  contentType,
const std::string &  filename 
)

Adds a text file. The data is read from a file.

void cxxtools::Mime::setHeader ( const std::string &  key,
const std::string &  value 
)
inline

Adds a header-line to the mime-object.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Mime mime 
)
friend

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