Camel.MimePart – camel-1.2 Reference Manual
Packages
camel-1.2
Camel
MimePart
content_id
content_location
content_md5
description
disposition
MimePart
construct_content_from_parser
construct_from_parser
construct_from_parser_sync
generate_preview
get_content_disposition
get_content_id
get_content_languages
get_content_location
get_content_md5
get_content_type
get_description
get_disposition
get_encoding
get_filename
set_content
set_content_id
set_content_languages
set_content_location
set_content_md5
set_content_type
set_description
set_disposition
set_encoding
set_filename
MimePart
Object Hierarchy:
Description:
[
CCode
( type_id =
"camel_mime_part_get_type ()"
) ]
public
class
MimePart
:
Medium
All known sub-classes:
MimeMessage
Namespace:
Camel
Package:
camel-1.2
Content:
Properties:
public
string
content_id
{
get
;
set
; }
public
string
content_location
{
get
;
set
; }
public
string
content_md5
{
get
;
set
; }
public
string
description
{
get
;
set
; }
public
string
disposition
{
get
;
set
; }
Creation methods:
public
MimePart
()
Create a new MIME part.
Methods:
public
bool
construct_content_from_parser
(
MimeParser
mp,
Cancellable
? cancellable =
null
)
throws
Error
Constructs the contnet of
this
from the given mime parser.
public
async
bool
construct_from_parser
(
MimeParser
parser,
int
io_priority,
Cancellable
? cancellable =
null
)
throws
Error
Asynchronously constructs a MIME part from a parser.
public
virtual
bool
construct_from_parser_sync
(
MimeParser
parser,
Cancellable
? cancellable =
null
)
throws
Error
Constructs a MIME part from a parser.
public
virtual
string
?
generate_preview
(
GeneratePreviewFunc
? func)
Generates preview of the
this
, to be used in the interface, read by the users.
public
unowned
ContentDisposition
?
get_content_disposition
()
Get the disposition of the MIME part as a structure.
public
unowned
string
?
get_content_id
()
Get the content-id field of a MIME part.
public
unowned
List
<
string
>?
get_content_languages
()
Get the Content-Languages set on the MIME part.
public
unowned
string
?
get_content_location
()
Get the content-location field of a MIME part.
public
unowned
string
?
get_content_md5
()
Get the content-md5 field of the MIME part.
public
unowned
ContentType
?
get_content_type
()
Get the Content-Type of a MIME part.
public
unowned
string
?
get_description
()
Get the description of the MIME part.
public
unowned
string
?
get_disposition
()
Get the disposition of the MIME part.
public
TransferEncoding
get_encoding
()
Get the Content-Transfer-Encoding of a MIME part.
public
unowned
string
?
get_filename
()
Get the filename of a MIME part.
public
void
set_content
(
uint8
[]? data,
string
? type)
Utility function used to set the content of a mime part object to be the provided data.
public
void
set_content_id
(
string
? contentid)
Set the content-id field on a MIME part.
public
void
set_content_languages
(
owned
List
<
string
>? content_languages)
Set the Content-Languages field of a MIME part.
public
void
set_content_location
(
string
? location)
Set the content-location field of the MIME part.
public
void
set_content_md5
(
string
? md5sum)
Set the content-md5 field of the MIME part.
public
void
set_content_type
(
string
? content_type)
Set the content-type on a MIME part.
public
void
set_description
(
string
description)
Set a description on the MIME part.
public
void
set_disposition
(
string
? disposition)
Set a disposition on the MIME part.
public
void
set_encoding
(
TransferEncoding
encoding)
Set the Content-Transfer-Encoding to use on a MIME part.
public
void
set_filename
(
string
? filename)
Set the filename on a MIME part.
Inherited Members:
All known members inherited from class Camel.Medium
add_header
content
dup_headers
get_content
get_header
get_headers
remove_header
set_content
set_header
All known members inherited from class Camel.DataWrapper
calculate_decoded_size_sync
calculate_size_sync
construct_from_data_sync
construct_from_input_stream
construct_from_input_stream_sync
construct_from_stream
construct_from_stream_sync
decode_to_output_stream
decode_to_output_stream_sync
decode_to_stream
decode_to_stream_sync
get_byte_array
get_encoding
get_mime_type
get_mime_type_field
is_offline
set_encoding
set_mime_type
set_mime_type_field
set_offline
take_mime_type_field
write_to_output_stream
write_to_output_stream_sync
write_to_stream
write_to_stream_sync
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref