WriteMime::Entity Class Reference

virtual base class for Mime entities. More...

#include <writemime.h>

Inheritance diagram for WriteMime::Entity:

Inheritance graph
[legend]

List of all members.

Public Types

enum  type {
  TEXT, IMAGE, AUDIO, VIDEO,
  APPLICATION, MULTIPART, MESSAGE
}
 Media types. Subtypes are left as free form text strings.
enum  disposition { DISP_ATTACHMENT, DISP_INLINE }
 Content disposition. More...
enum  encoding {
  ENC_7BIT, ENC_8BIT, ENC_BINARY, ENC_QP,
  ENC_BASE64
}
 Content transfer encoding.

Public Member Functions

virtual void seterror (const char *s)
 Set current error string (mainly used by sendmail() or internally).
virtual const char * geterror ()
 Return current error string.
virtual encoding getencoding ()
 Return current encoding.
virtual void addHeaderField (const HeaderField &f)
 Add header field.
virtual int size ()=0
virtual const char * format ()=0
virtual int format (char *buf)=0

Protected Member Functions

virtual int addCteHeader ()
virtual int allocFmt ()
virtual int formatHeaders (char *buf)
virtual int formatHeaders ()
virtual void settype (type tp)
virtual int setsubtype (const char *stp)
virtual const char * getsubtype ()

Protected Attributes

type m_type
encoding m_encoding
list< HeaderField > m_hf
int m_size
char * m_fmt


Detailed Description

virtual base class for Mime entities.

Member Enumeration Documentation

Content disposition.

Note: the more natural INLINE name causes too much problems with headers that define an INLINE


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

Generated on Fri Feb 6 11:53:41 2009 for WriteMIME by  doxygen 1.5.7.1