| Top |
| GMimeContentDisposition * | g_mime_content_disposition_new () |
| gboolean | g_mime_content_disposition_is_attachment () |
| GMimeContentDisposition * | g_mime_content_disposition_new_from_string () |
| void | g_mime_content_disposition_set_disposition () |
| const char * | g_mime_content_disposition_get_disposition () |
| const GMimeParam * | g_mime_content_disposition_get_params () |
| void | g_mime_content_disposition_set_params () |
| void | g_mime_content_disposition_set_parameter () |
| const char * | g_mime_content_disposition_get_parameter () |
| char * | g_mime_content_disposition_to_string () |
| #define | GMIME_DISPOSITION_ATTACHMENT |
| #define | GMIME_DISPOSITION_INLINE |
| struct | GMimeContentDisposition |
A GMimeContentDisposition represents the pre-parsed contents of a Content-Disposition header field.
GMimeContentDisposition *
g_mime_content_disposition_new (void);
Creates a new GMimeContentDisposition object.
gboolean
g_mime_content_disposition_is_attachment
(GMimeContentDisposition *disposition);
Determines if a Content-Disposition has a value of "attachment".
Since: 2.6.21
GMimeContentDisposition *
g_mime_content_disposition_new_from_string
(const char *str);
Creates a new GMimeContentDisposition object.
void g_mime_content_disposition_set_disposition (GMimeContentDisposition *disposition,const char *value);
Sets the disposition to value
which may be one of
GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE or, by
your choice, any other string which would indicate how the MIME
part should be displayed by the MUA.
const char *
g_mime_content_disposition_get_disposition
(GMimeContentDisposition *disposition);
Gets the disposition or NULL on fail.
the disposition string which is probably one of GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE.
const GMimeParam *
g_mime_content_disposition_get_params (GMimeContentDisposition *disposition);
Gets the Content-Disposition parameter list.
void g_mime_content_disposition_set_params (GMimeContentDisposition *disposition,GMimeParam *params);
Sets the Content-Disposition's parameter list.
void g_mime_content_disposition_set_parameter (GMimeContentDisposition *disposition,const char *name,const char *value);
Sets a parameter on the Content-Disposition.
Note: The name
should be in US-ASCII while the value
should be in
UTF-8.
const char * g_mime_content_disposition_get_parameter (GMimeContentDisposition *disposition,const char *name);
Gets the parameter value specified by name
if it's available.
char * g_mime_content_disposition_to_string (GMimeContentDisposition *disposition,gboolean fold);
Allocates a string buffer containing the Content-Disposition header
represented by the disposition object disposition
.