gmime.param_list

Module for [ParamList] class

Types 3

A list of Content-Type or Content-Disposition parameters.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ParamList self() nothrowReturns `this`, for use in `with` statements.
ParamListGidBuilder builder() static nothrowGet builder for [gmime.param_list.ParamList] Returns: New builder object
gmime.param_list.ParamList parse(gmime.parser_options.ParserOptions options, string str) static nothrowParses the input string into a parameter list.
void clear() nothrowClears the list of parameters.
void encode(gmime.format_options.FormatOptions options, bool fold, out glib.string_.String str) nothrowEncodes the parameter list into str, folding lines if required.
gmime.param.Param getParameter(string name) nothrowGets the #GMimeParam with the given name.
gmime.param.Param getParameterAt(int index) nothrowGets the #GMimeParam at the specified index.
int length() nothrowGets the length of the list. Returns: the number of #GMimeParam items in the list.
bool remove(string name) nothrowRemoves a parameter from the #GMimeParamList.
bool removeAt(int index) nothrowRemoves a #GMimeParam from the #GMimeParamList at the specified index.
void setParameter(string name, string value) nothrowSets the specified parameter to value.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new Content-Type or Content-Disposition parameter list. Returns: a new #GMimeParamList.

Fluent builder for gmime.param_list.ParamList

Methods
ParamList build() nothrowCreate object from builder. Returns: New object