Camel.MimePart¶
- Subclasses:
Methods¶
- Inherited:
Camel.Medium (8), Camel.DataWrapper (32), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Camel.Medium (8), Camel.DataWrapper (11), GObject.Object (7)
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Camel.MimePart(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
Camel.MimePart
- Return type:
Create a new MIME
Camel.part
.
- construct_content_from_parser(mp, cancellable)¶
- Parameters:
mp (
Camel.MimeParser
) – aCamel.MimeParser
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Constructs the contnet of self from the given mime parser.
New in version 2.24.
- construct_from_parser(parser, io_priority, cancellable, callback, *user_data)¶
- Parameters:
parser (
Camel.MimeParser
) – aCamel.MimeParser
io_priority (
int
) – the I/O priority of the requestcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the request is satisfieduser_data (
object
orNone
) – data to pass to the callback function
Asynchronously constructs a MIME
Camel.part
from a parser.When the operation is finished, callback will be called. You can then call
Camel.MimePart.construct_from_parser_finish
() to get the result of the operation.New in version 3.0.
- construct_from_parser_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
- Return type:
Finishes the operation started with
Camel.MimePart.construct_from_parser
().New in version 3.0.
- construct_from_parser_sync(parser, cancellable)¶
- Parameters:
parser (
Camel.MimeParser
) – aCamel.MimeParser
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
- Return type:
Constructs a MIME
Camel.part
from a parser.New in version 3.0.
- get_content_disposition()¶
- Returns:
the disposition structure
- Return type:
Get the disposition of the MIME
Camel.part
as a structure. Returned pointer is owned by self.New in version 2.30.
- get_content_id()¶
-
Get the content-id field of a MIME
Camel.part
.
- get_content_languages()¶
-
Get the Content-Languages set on the MIME
Camel.part
.
- get_content_location()¶
-
Get the content-location field of a MIME
Camel.part
.
- get_content_md5()¶
-
Get the content-md5 field of the MIME
Camel.part
.
- get_content_type()¶
- Returns:
the parsed
Camel.ContentType
of the MIMECamel.part
- Return type:
Get the Content-Type of a MIME
Camel.part
.
- get_description()¶
-
Get the description of the MIME
Camel.part
.
- get_disposition()¶
-
Get the disposition of the MIME
Camel.part
.
- get_encoding()¶
- Returns:
- Return type:
Get the Content-Transfer-Encoding of a MIME
Camel.part
.
- get_filename()¶
-
Get the filename of a MIME
Camel.part
.
- set_content(data, type)¶
- Parameters:
Utility function used to set the content of a mime
Camel.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 beNone
).
- set_content_id(contentid)¶
-
Set the content-id field on a MIME
Camel.part
.
- set_content_languages(content_languages)¶
-
Set the Content-Languages field of a MIME
Camel.part
.
- set_content_location(location)¶
-
Set the content-location field of the MIME
Camel.part
.
- set_content_md5(md5sum)¶
-
Set the content-md5 field of the MIME
Camel.part
.
- set_content_type(content_type)¶
-
Set the content-type on a MIME
Camel.part
.
- set_description(description)¶
- Parameters:
description (
str
) – description of the MIMECamel.part
Set a description on the MIME
Camel.part
.
- set_disposition(disposition)¶
-
Set a disposition on the MIME
Camel.part
.
- set_encoding(encoding)¶
- Parameters:
encoding (
Camel.TransferEncoding
) – aCamel.TransferEncoding
Set the Content-Transfer-Encoding to use on a MIME
Camel.part
.
- set_filename(filename)¶
-
Set the filename on a MIME
Camel.part
.
- do_construct_from_parser_sync(parser, cancellable) virtual¶
- Parameters:
parser (
Camel.MimeParser
) – aCamel.MimeParser
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Returns:
- Return type:
Constructs a MIME
Camel.part
from a parser.New in version 3.0.
Property Details¶
- Camel.MimePart.props.content_id¶
- Name:
content-id
- Type:
- Default Value:
- Flags:
- Camel.MimePart.props.content_md5¶
- Name:
content-md5
- Type:
- Default Value:
- Flags:
- Camel.MimePart.props.description¶
- Name:
description
- Type:
- Default Value:
- Flags: