htmlTextPart Class Reference
Text part of type 'text/html'.
More...
List of all members.
Detailed Description
Text part of type 'text/html'.
Constructor & Destructor Documentation
Member Function Documentation
Embed an object and returns a string which identifies it.
The returned identifier is suitable for use in the 'src' attribute of an tag.
- Parameters:
-
| data | object data |
| enc | data encoding |
| type | data type |
- Returns:
- an unique object identifier used to identify the new object among all other embedded objects
Embed an object and returns a string which identifies it.
The returned identifier is suitable for use in the 'src' attribute of an tag.
- Parameters:
-
| data | object data |
| type | data type |
- Returns:
- an unique object identifier used to identify the new object among all other embedded objects
References messageId::generateId(), and messageId::getId().
Embed an object and returns a string which identifies it.
The returned identifier is suitable for use in the 'src' attribute of an tag.
- Deprecated:
- Use the addObject() methods which take a 'contentHandler' parameter type instead.
- Parameters:
-
| data | object data |
| type | data type |
- Returns:
- an unique object identifier used to identify the new object among all other embedded objects
Return the embedded object with the specified identifier.
- Exceptions:
-
| exceptions::no_object_found() | if no object has been found |
- Parameters:
-
- Returns:
- embedded object with the specified identifier
| void generateIn |
( |
ref< bodyPart > |
message, |
|
|
ref< bodyPart > |
parent | |
|
) |
| | const [virtual] |
| const charset & getCharset |
( |
|
) |
const [virtual] |
Return the charset used to encode text in the text part.
- Returns:
- text charset
Implements textPart.
Return the embedded object at the specified position.
- Parameters:
-
| pos | position of the embedded object |
- Returns:
- embedded object at position 'pos'
| int getObjectCount |
( |
|
) |
const |
Return the number of embedded objects.
- Returns:
- number of embedded objects
| int getPartCount |
( |
|
) |
const [virtual] |
Return the actual body parts this text part is composed of.
For example, HTML parts are composed of two parts: one "text/html" part, and the plain text part "text/plain".
- Returns:
- number of body parts
Implements textPart.
Return the text contained in the part.
- Returns:
- text of the part
Implements textPart.
Return the type of text part (eg: "text/html").
- Returns:
- type of text part
Implements textPart.
| bool hasObject |
( |
const string & |
id |
) |
const |
Test the existence of an embedded object given its identifier.
- Parameters:
-
- Returns:
- true if an object with this identifier exists, false otherwise
Parse the text part(s) from the specified message.
- Parameters:
-
| message | message containing the text part |
| parent | part containing the text part |
| textPart | actual text part |
Implements textPart.
| void setCharset |
( |
const charset & |
ch |
) |
[virtual] |
Set the charset used to encode text in the text part.
- Parameters:
-
Implements textPart.
Set the text contained in the part.
- Parameters:
-
Implements textPart.
The documentation for this class was generated from the following files: