Camel.MimeFilterBestenc

g Camel.MimeFilter Camel.MimeFilter Camel.MimeFilterBestenc Camel.MimeFilterBestenc Camel.MimeFilter->Camel.MimeFilterBestenc GObject.Object GObject.Object GObject.Object->Camel.MimeFilter

Subclasses:

None

Methods

Inherited:

Camel.MimeFilter (8), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (flags)

get_best_charset ()

get_best_encoding (required)

set_flags (flags)

Virtual Methods

Inherited:

Camel.MimeFilter (3), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Camel.MimeFilter

r

Class Details

class Camel.MimeFilterBestenc(**kwargs)
Bases:

Camel.MimeFilter

Abstract:

No

Structure:

Camel.MimeFilterBestencClass

classmethod new(flags)
Parameters:

flags (int) – a bitmask of data required.

Returns:

a new Camel.MimeFilterBestenc object

Return type:

Camel.MimeFilter

Create a new Camel.MimeFilterBestenc object.

get_best_charset()
Returns:

the name of the best charset to use to encode the input text filtered by self

Return type:

str

Gets the best charset that can be used to contain this content.

get_best_encoding(required)
Parameters:

required (Camel.BestencEncoding) – maximum level of output encoding allowed.

Returns:

the best encoding to use

Return type:

Camel.TransferEncoding

Get the best encoding, given specific constraints, that can be used to encode a stream of bytes.

set_flags(flags)
Parameters:

flags (int) – bestenc filter flags

Set the flags for subsequent operations.