| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct CamelMimePart; CamelMimePart * camel_mime_part_new (void);void camel_mime_part_set_description (CamelMimePart *mime_part,const); constgchar *descriptiongchar * camel_mime_part_get_description (CamelMimePart *mime_part);void camel_mime_part_set_disposition (CamelMimePart *mime_part,const); constgchar *dispositiongchar * camel_mime_part_get_disposition (CamelMimePart *mime_part); const CamelContentDisposition * camel_mime_part_get_content_disposition (CamelMimePart *mime_part);void camel_mime_part_set_filename (CamelMimePart *mime_part,const); constgchar *filenamegchar * camel_mime_part_get_filename (CamelMimePart *mime_part);void camel_mime_part_set_content_id (CamelMimePart *mime_part,const); constgchar *contentidgchar * camel_mime_part_get_content_id (CamelMimePart *mime_part);void camel_mime_part_set_content_md5 (CamelMimePart *mime_part,const); constgchar *md5sumgchar * camel_mime_part_get_content_md5 (CamelMimePart *mime_part);void camel_mime_part_set_content_location (CamelMimePart *mime_part,const); constgchar *locationgchar * camel_mime_part_get_content_location (CamelMimePart *mime_part);void camel_mime_part_set_encoding (CamelMimePart *mime_part,CamelTransferEncoding encoding); CamelTransferEncoding camel_mime_part_get_encoding (CamelMimePart *mime_part);void camel_mime_part_set_content_languages (CamelMimePart *mime_part,); constGList *content_languagesGList * camel_mime_part_get_content_languages (CamelMimePart *mime_part);void camel_mime_part_set_content_type (CamelMimePart *mime_part,const); CamelContentType * camel_mime_part_get_content_type (gchar *content_typeCamelMimePart *mime_part);gboolean camel_mime_part_construct_from_parser_sync (CamelMimePart *mime_part,CamelMimeParser *parser,,GCancellable *cancellable);GError **errorvoid camel_mime_part_construct_from_parser (CamelMimePart *mime_part,CamelMimeParser *parser,,gint io_priority,GCancellable *cancellable,GAsyncReadyCallback callback);gpointer user_datagboolean camel_mime_part_construct_from_parser_finish (CamelMimePart *mime_part,,GAsyncResult *result);GError **errorvoid camel_mime_part_set_content (CamelMimePart *mime_part,const,gchar *data,gint lengthconst);gchar *typegboolean camel_mime_part_construct_content_from_parser (CamelMimePart *mime_part,CamelMimeParser *mp,,GCancellable *cancellable);GError **error
GObject +----CamelObject +----CamelDataWrapper +----CamelMedium +----CamelMimePart +----CamelMimeMessage
"content-id"gchar * : Read / Write "content-md5"gchar * : Read / Write "description"gchar * : Read / Write "disposition"gchar * : Read / Write
CamelMimePart * camel_mime_part_new (void);
Create a new MIME part.
Returns : |
a new CamelMimePart |
void camel_mime_part_set_description (CamelMimePart *mime_part,const);gchar *description
Set a description on the MIME part.
|
a CamelMimePart |
|
description of the MIME part |
constgchar * camel_mime_part_get_description (CamelMimePart *mime_part);
Get the description of the MIME part.
|
a CamelMimePart |
Returns : |
the description |
void camel_mime_part_set_disposition (CamelMimePart *mime_part,const);gchar *disposition
Set a disposition on the MIME part.
|
a CamelMimePart |
|
disposition of the MIME part |
constgchar * camel_mime_part_get_disposition (CamelMimePart *mime_part);
Get the disposition of the MIME part.
|
a CamelMimePart |
Returns : |
the disposition |
const CamelContentDisposition * camel_mime_part_get_content_disposition
(CamelMimePart *mime_part);
Get the disposition of the MIME part as a structure.
Returned pointer is owned by mime_part.
|
a CamelMimePart |
Returns : |
the disposition structure |
Since 2.30
void camel_mime_part_set_filename (CamelMimePart *mime_part,const);gchar *filename
Set the filename on a MIME part.
|
a CamelMimePart |
|
filename given to the MIME part |
constgchar * camel_mime_part_get_filename (CamelMimePart *mime_part);
Get the filename of a MIME part.
|
a CamelMimePart |
Returns : |
the filename of the MIME part |
void camel_mime_part_set_content_id (CamelMimePart *mime_part,const);gchar *contentid
Set the content-id field on a MIME part.
|
a CamelMimePart |
|
content id |
constgchar * camel_mime_part_get_content_id (CamelMimePart *mime_part);
Get the content-id field of a MIME part.
|
a CamelMimePart |
Returns : |
the content-id field of the MIME part |
void camel_mime_part_set_content_md5 (CamelMimePart *mime_part,const);gchar *md5sum
Set the content-md5 field of the MIME part.
|
a CamelMimePart |
|
the md5sum of the MIME part |
constgchar * camel_mime_part_get_content_md5 (CamelMimePart *mime_part);
Get the content-md5 field of the MIME part.
|
a CamelMimePart |
Returns : |
the content-md5 field of the MIME part |
void camel_mime_part_set_content_location (CamelMimePart *mime_part,const);gchar *location
Set the content-location field of the MIME part.
|
a CamelMimePart |
|
the content-location value of the MIME part |
constgchar * camel_mime_part_get_content_location (CamelMimePart *mime_part);
Get the content-location field of a MIME part.
|
a CamelMimePart |
Returns : |
the content-location field of a MIME part |
void camel_mime_part_set_encoding (CamelMimePart *mime_part,CamelTransferEncoding encoding);
Set the Content-Transfer-Encoding to use on a MIME part.
|
a CamelMimePart |
|
a CamelTransferEncoding |
CamelTransferEncoding camel_mime_part_get_encoding (CamelMimePart *mime_part);
Get the Content-Transfer-Encoding of a MIME part.
|
a CamelMimePart |
Returns : |
a CamelTransferEncoding |
void camel_mime_part_set_content_languages (CamelMimePart *mime_part,);GList *content_languages
Set the Content-Languages field of a MIME part.
|
a CamelMimePart |
|
list of languages |
constGList * camel_mime_part_get_content_languages (CamelMimePart *mime_part);
Get the Content-Languages set on the MIME part.
|
a CamelMimePart |
Returns : |
a |
void camel_mime_part_set_content_type (CamelMimePart *mime_part,const);gchar *content_type
Set the content-type on a MIME part.
|
a CamelMimePart |
|
content-type string |
CamelContentType * camel_mime_part_get_content_type (CamelMimePart *mime_part);
Get the Content-Type of a MIME part.
|
a CamelMimePart |
Returns : |
the parsed CamelContentType of the MIME part |
gboolean camel_mime_part_construct_from_parser_sync (CamelMimePart *mime_part,CamelMimeParser *parser,,GCancellable *cancellable);GError **error
Constructs a MIME part from a parser.
|
a CamelMimePart |
|
a CamelMimeParser |
|
optional NULL |
|
return location for a NULL |
Returns : |
TRUEFALSE |
Since 3.0
void camel_mime_part_construct_from_parser (CamelMimePart *mime_part,CamelMimeParser *parser,,gint io_priority,GCancellable *cancellable,GAsyncReadyCallback callback);gpointer user_data
Asynchronously constructs a MIME part from a parser.
When the operation is finished, callback will be called. You can then
call camel_mime_part_construct_from_parser_finish() to get the result of
the operation.
|
a CamelMimePart |
|
a CamelMimeParser |
|
the I/O priority of the request |
|
optional NULL |
|
a |
|
data to pass to the callback function |
Since 3.0
gboolean camel_mime_part_construct_from_parser_finish (CamelMimePart *mime_part,,GAsyncResult *result);GError **error
Finishes the operation started with camel_mime_part_construct_from_parser().
|
a CamelMimePart |
|
a |
|
return location for a NULL |
Returns : |
TRUEFALSE |
Since 3.0
void camel_mime_part_set_content (CamelMimePart *mime_part,const,gchar *data,gint lengthconst);gchar *type
Utility function used to set the content of a mime part object to
be the provided data. If length is 0, this routine can be used as
a way to remove old content (in which case data and type are
ignored and may be NULL
|
a CamelMimePart |
|
data to put into the part |
|
length of data
|
|
Content-Type of the data |
gboolean camel_mime_part_construct_content_from_parser (CamelMimePart *mime_part,CamelMimeParser *mp,,GCancellable *cancellable);GError **error
Since 2.24