#include <ie_imp_MHT.h>
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_ConstByteBufPtr & | getBuffer () const |
| UT_ByteBufPtr && | detachBuffer () |
| 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_StringPtrMap * | m_map |
| UT_ByteBufPtr | m_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] |
enum UT_Multipart::ContentTransferEncoding [private] |
enum UT_Multipart::ContentType [private] |
| UT_Multipart::UT_Multipart | ( | ) |
| bool UT_Multipart::append | ( | const char * | buffer, | |
| UT_uint32 | length | |||
| ) |
References append_Base64(), append_Quoted(), isBase64(), isQuoted(), and m_buf.
Referenced by IE_Imp_MHT::importMultipart().
| bool UT_Multipart::append_Base64 | ( | const char * | buffer, | |
| UT_uint32 | length | |||
| ) | [private] |
References m_b64buffer, m_b64length, m_buf, UT_DEBUGMSG, and UT_UTF8_Base64Decode().
Referenced by append().
| bool UT_Multipart::append_Quoted | ( | const char * | buffer, | |
| UT_uint32 | length | |||
| ) | [private] |
References FREEP, m_b64buffer, and m_buf.
Referenced by append().
| void UT_Multipart::clear | ( | void | ) |
References UT_GenericStringMap< T >::clear(), m_buf, m_map, and UT_GenericStringMap< T >::purgeData().
Referenced by ~UT_Multipart().
| 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_ByteBufPtr && UT_Multipart::detachBuffer | ( | ) |
References m_buf.
Referenced by IE_Imp_MHT::importImage().
| const UT_ConstByteBufPtr& UT_Multipart::getBuffer | ( | ) | const [inline] |
References m_buf.
Referenced by IE_Imp_MHT::importHTML4(), IE_Imp_MHT::importImage(), and IE_Imp_MHT::importXHTML().
| bool UT_Multipart::insert | ( | const char * | name, | |
| const char * | value | |||
| ) |
References FREEP, IE_MIMETYPE_HTML, IE_MIMETYPE_XHTML, UT_GenericStringMap< T >::insert(), m_ct, m_cte, m_encoding, m_id, m_location, m_map, and m_type.
Referenced by IE_Imp_MHT::importMultipart().
| bool UT_Multipart::isBase64 | ( | ) | const [inline] |
References cte_base64, and m_cte.
Referenced by append().
| bool UT_Multipart::isHTML4 | ( | ) | const [inline] |
References ct_html4, and m_ct.
Referenced by IE_Imp_MHT::importFile(), and IE_Imp_MHT::importMultipart().
| bool UT_Multipart::isImage | ( | ) | const [inline] |
References ct_image, and m_ct.
Referenced by IE_Imp_MHT::importImage(), and IE_Imp_MHT::importMultipart().
| bool UT_Multipart::isQuoted | ( | ) | const [inline] |
References cte_quoted, and m_cte.
Referenced by append().
| bool UT_Multipart::isXHTML | ( | ) | const [inline] |
References ct_xhtml, and m_ct.
Referenced by IE_Imp_MHT::importFile(), and IE_Imp_MHT::importMultipart().
| const char * UT_Multipart::lookup | ( | const char * | name | ) |
References m_map, and UT_GenericStringMap< T >::pick().
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().
UT_ByteBufPtr UT_Multipart::m_buf [private] |
Referenced by append(), append_Base64(), append_Quoted(), clear(), detachBuffer(), and getBuffer().
ContentType UT_Multipart::m_ct [private] |
ContentTransferEncoding UT_Multipart::m_cte [private] |
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().
UT_StringPtrMap* UT_Multipart::m_map [private] |
Referenced by clear(), insert(), lookup(), and ~UT_Multipart().
const char* UT_Multipart::m_type [private] |
Referenced by contentType(), and insert().
1.7.1