GMime.ParamList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
array |
[ |
r |
|
changed |
r |
||
parent_object |
r |
Class Details¶
- class GMime.ParamList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A list of Content-Type or Content-Disposition parameters.
- classmethod new()¶
- Returns:
a new
GMime.ParamList.- Return type:
Creates a new Content-Type or Content-Disposition parameter list.
- classmethod parse(options, str)¶
- Parameters:
options (
GMime.ParserOptions) – aGMime.ParserOptionsorNonestr (
str) – a string to parse
- Returns:
a new
GMime.ParamList.- Return type:
Parses the input string into a parameter list.
- clear()¶
Clears the list of parameters.
- encode(options, fold)¶
- Parameters:
options (
GMime.FormatOptionsorNone) – aGMime.FormatOptionsorNonefold (
bool) –Trueif the parameter list should be folded; otherwise,False
- Returns:
the output string buffer
- Return type:
str:
GLib.String
Encodes the parameter list into str, folding lines if required.
- get_parameter(name)¶
- Parameters:
name (
str) – the name of the parameter- Returns:
the requested
GMime.Param.- Return type:
Gets the
GMime.Paramwith the given name.
- get_parameter_at(index)¶
- Parameters:
index (
int) – the index of the requested parameter- Returns:
the
GMime.Paramat the specified index.- Return type:
Gets the
GMime.Paramat the specified index.
- length()¶
- Returns:
the number of
GMime.Paramitems in the list.- Return type:
Gets the length of the list.
- remove(name)¶
- Parameters:
name (
str) – the name of the parameter- Returns:
Trueif the specified parameter was removed orFalseotherwise.- Return type:
Removes a parameter from the
GMime.ParamList.
- remove_at(index)¶
- Parameters:
index (
int) – index of the param to remove- Returns:
Trueif aGMime.Paramwas removed orFalseotherwise.- Return type:
Removes a
GMime.Paramfrom theGMime.ParamListat the specified index.