GMime.Param

g GMime.Param GMime.Param GObject.Object GObject.Object GObject.Object->GMime.Param

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_charset ()

get_encoding_method ()

get_lang ()

get_name ()

get_value ()

set_charset (charset)

set_encoding_method (method)

set_lang (lang)

set_value (value)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

changed

object

r

charset

str

r

The charset to use when encoding the parameter value.

lang

str

r

the language specifier to use when encoding the value.

method

GMime.ParamEncodingMethod

r

The encoding method used for the parameter value.

name

str

r

The parameter name.

parent_object

GObject.Object

r

value

str

r

The parameter value.

Class Details

class GMime.Param(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GMime.ParamClass

A parameter name/value pair as used in the Content-Type and Content-Disposition headers.

get_charset()
Returns:

the charset used for encoding the parameter.

Return type:

str

Gets the charset used for encoding the parameter.

get_encoding_method()
Returns:

the encoding method used for encoding the parameter.

Return type:

GMime.ParamEncodingMethod

Gets the encoding method used for encoding the parameter.

get_lang()
Returns:

the language specifier used for encoding the parameter.

Return type:

str

Gets the language specifier used for encoding the parameter.

get_name()
Returns:

the name of the parameter.

Return type:

str

Gets the name of the parameter.

get_value()
Returns:

the value of the parameter.

Return type:

str

Gets the value of the parameter.

set_charset(charset)
Parameters:

charset (str) – the charset or None to use the default

Sets the parameter charset used for encoding the value.

set_encoding_method(method)
Parameters:

method (GMime.ParamEncodingMethod) – a GMime.ParamEncodingMethod

Sets the encoding method used for encoding the value.

set_lang(lang)
Parameters:

lang (str) – the language specifier

Sets the parameter language specifier used for encoding the value.

set_value(value)
Parameters:

value (str) – the new parameter value

Sets the parameter value to value.