|
Yate
|
MIME multipart container. More...
#include <yatemime.h>
Protected Member Functions | |
| MimeMultipartBody (const MimeMultipartBody &original) | |
| virtual void | buildBody () const |
| void | parse (const char *buf, int len) |
Protected Member Functions inherited from MimeBody | |
| MimeBody (const String &type) | |
| MimeBody (const MimeHeaderLine &type) | |
Additional Inherited Members | |
Static Public Member Functions inherited from MimeBody | |
| static MimeBody * | build (const char *buf, int len, const MimeHeaderLine &type) |
| static String * | getUnfoldedLine (const char *&buf, int &len) |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Protected Attributes inherited from MimeBody | |
| DataBlock | m_body |
| ObjList | m_headers |
MIME multipart container.
An object holding the bodies of a multipart MIME
|
explicit |
Constructor to build an empty multipart body
| subtype | The multipart subtype |
| boundary | The string used as separator for enclosed bodies. A random one will be created if missing. The length will be truncated to 70 if this value is exceeded |
Constructor from block of data
| type | The value of the Content-Type header line |
| buf | Pointer to buffer of data |
| len | Length of data in buffer |
| MimeMultipartBody | ( | const MimeHeaderLine & | type, |
| const char * | buf, | ||
| int | len | ||
| ) |
Constructor from block of data
| type | The content type header line |
| buf | Pointer to buffer of data |
| len | Length of data in buffer |
|
virtual |
Destructor
|
protected |
Copy constructor
Append a body to this multipart
| body | The body to append |
References ObjList::append(), and MimeBody::body().
Get the list of bodies enclosed contained in this multipart
Method that is called internally to build the binary encoded body
Implements MimeBody.
Find a body. Enclosed multiparts are also searched for the requested body
| content | The value of the body to find. Must be lower case |
| start | The starting point in the list. 0 to start from the beginning. Be aware that this parameter is used internally to search within enclosed multipart bodies and set to 0 when the starting point is found |
RTTI method, get a pointer to a derived class given the class name
| name | Name of the class we are asking for |
Reimplemented from MimeBody.
Check if this body is multipart (can hold other MIME bodies)
Reimplemented from MimeBody.
Parse a data buffer and append any valid body to this multipart Ignore prolog, epilog and invalid bodies
| buf | Pointer to buffer of data |
| len | Length of data in buffer |
Remove a body from this multipart
| body | The body to remove |
| delobj | True to delete the body, false to remove from list without deleting it |
References MimeBody::body(), and ObjList::remove().