Public Member Functions | Private Types | Private Member Functions | Private Attributes

UT_Multipart Class Reference

#include <ie_imp_MHT.h>

List of all members.

Public Member Functions

 UT_Multipart ()
 ~UT_Multipart ()
bool insert (const char *name, const char *value)
const char * lookup (const char *name)
bool append (const char *buffer, UT_uint32 length)
const UT_ByteBufgetBuffer () const
UT_ByteBufdetachBuffer ()
void clear ()
const char * contentLocation () const
const char * contentID () const
const char * contentType () const
const char * contentEncoding () const
bool isBase64 () const
bool isQuoted () const
bool isImage () const
bool isHTML4 () const
bool isXHTML () const

Private Types

enum  ContentTransferEncoding { cte_other, cte_base64, cte_quoted }
enum  ContentType { ct_other, ct_image, ct_html4, ct_xhtml }

Private Member Functions

bool append_Base64 (const char *buffer, UT_uint32 length)
bool append_Quoted (const char *buffer, UT_uint32 length)

Private Attributes

UT_StringPtrMapm_map
UT_ByteBufm_buf
const char * m_location
const char * m_id
const char * m_type
const char * m_encoding
ContentTransferEncoding m_cte
ContentType m_ct
size_t m_b64length
char m_b64buffer [80]

Member Enumeration Documentation

Enumerator:
cte_other 
cte_base64 
cte_quoted 
enum UT_Multipart::ContentType [private]
Enumerator:
ct_other 
ct_image 
ct_html4 
ct_xhtml 

Constructor & Destructor Documentation

UT_Multipart::UT_Multipart (  ) 
UT_Multipart::~UT_Multipart (  ) 

References clear(), DELETEP, m_buf, and m_map.


Member Function Documentation

bool UT_Multipart::append ( const char *  buffer,
UT_uint32  length 
)
bool UT_Multipart::append_Base64 ( const char *  buffer,
UT_uint32  length 
) [private]
bool UT_Multipart::append_Quoted ( const char *  buffer,
UT_uint32  length 
) [private]

References UT_ByteBuf::append(), FREEP, m_b64buffer, and m_buf.

Referenced by append().

void UT_Multipart::clear ( void   ) 
const char* UT_Multipart::contentEncoding (  )  const [inline]

References m_encoding.

const char* UT_Multipart::contentID (  )  const [inline]

References m_id.

Referenced by IE_Imp_MHT::importImage().

const char* UT_Multipart::contentLocation (  )  const [inline]

References m_location.

Referenced by IE_Imp_MHT::importImage().

const char* UT_Multipart::contentType (  )  const [inline]

References m_type.

UT_ByteBuf * UT_Multipart::detachBuffer (  ) 

References m_buf.

Referenced by IE_Imp_MHT::importImage().

const UT_ByteBuf* UT_Multipart::getBuffer (  )  const [inline]
bool UT_Multipart::insert ( const char *  name,
const char *  value 
)
bool UT_Multipart::isBase64 (  )  const [inline]

References cte_base64, and m_cte.

Referenced by append().

bool UT_Multipart::isHTML4 (  )  const [inline]
bool UT_Multipart::isImage (  )  const [inline]
bool UT_Multipart::isQuoted (  )  const [inline]

References cte_quoted, and m_cte.

Referenced by append().

bool UT_Multipart::isXHTML (  )  const [inline]
const char * UT_Multipart::lookup ( const char *  name  ) 

Member Data Documentation

char UT_Multipart::m_b64buffer[80] [private]

Referenced by append_Base64(), and append_Quoted().

size_t UT_Multipart::m_b64length [private]

Referenced by append_Base64().

Referenced by insert(), isHTML4(), isImage(), and isXHTML().

Referenced by insert(), isBase64(), and isQuoted().

const char* UT_Multipart::m_encoding [private]

Referenced by contentEncoding(), and insert().

const char* UT_Multipart::m_id [private]

Referenced by contentID(), and insert().

const char* UT_Multipart::m_location [private]

Referenced by contentLocation(), and insert().

Referenced by clear(), insert(), lookup(), and ~UT_Multipart().

const char* UT_Multipart::m_type [private]

Referenced by contentType(), and insert().


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