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.ParserOptions
orNone
str (
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.FormatOptions
orNone
) – aGMime.FormatOptions
orNone
fold (
bool
) –True
if 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.Param
with the given name.
- get_parameter_at(index)¶
- Parameters:
index (
int
) – the index of the requested parameter- Returns:
the
GMime.Param
at the specified index.- Return type:
Gets the
GMime.Param
at the specified index.
- length()¶
- Returns:
the number of
GMime.Param
items in the list.- Return type:
Gets the length of the list.
- remove(name)¶
- Parameters:
name (
str
) – the name of the parameter- Returns:
True
if the specified parameter was removed orFalse
otherwise.- Return type:
Removes a parameter from the
GMime.ParamList
.
- remove_at(index)¶
- Parameters:
index (
int
) – index of the param to remove- Returns:
True
if aGMime.Param
was removed orFalse
otherwise.- Return type:
Removes a
GMime.Param
from theGMime.ParamList
at the specified index.