Some typical examples of "sections" are the following:
Public Member Functions | |
| BodySectionData (const char *section, int offset) | |
| Constructor. | |
| BodySectionData (const BodySectionData &other) | |
| Copy constructor. | |
| ~BodySectionData () | |
| Destructor. | |
| BodySectionData & | operator= (const BodySectionData &other) |
| Assignment operator. | |
| const char * | Section () const |
| Gets the identifier for the section that the content is from. | |
| uint32_t | Offset () const |
| Gets the offset of the content within the section. | |
| uint32_t | Length () const |
| Gets the length of the content. | |
| const char * | Content () const |
| Gets the characters of the content. | |
| void | ImportData (ListItem *root) |
| Called by the parser to set the data for this object. | |
|
||||||||||||
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Destructor. |
|
|
Gets the characters of the content. The content is always encoded as text characters. If the media type of the body section is not text, then the content is encoded using a content transfer encoding such as base64. Use the Length member function to get the length of the content.
|
|
|
Called by the parser to set the data for this object. Only the parser should call this function.
|
|
|
Gets the length of the content. IMAP4 allows a client to fetch the content of a particular section in multiple segments. Each segment has an offset and a length. This member function returns the length of the content. Use the Offset member function to get the offset of the content.
|
|
|
Gets the offset of the content within the section. IMAP4 allows a client to fetch the content of a particular section in multiple segments. Each segment has an offset and a length. This member function returns the offset of the content from the beginning of the segment. Use the Length member function to get the length of the content.
|
|
|
Assignment operator.
|
|
|
Gets the identifier for the section that the content is from. The identifier indicates the section of the message that the content is from. For example, when the content contains the message headers, the identifier is "BODY[HEADER]".
|
Copyright © 2001-2005 Hunny Software, Inc. All rights reserved.