| Top |
#define GMIME_DISPOSITION_ATTACHMENT #define GMIME_DISPOSITION_INLINE GMimeDisposition; GMimeDisposition * g_mime_disposition_new (constchar *disposition);void g_mime_disposition_destroy (GMimeDisposition *disposition);void g_mime_disposition_set (GMimeDisposition *disposition, constchar *value); constchar * g_mime_disposition_get (GMimeDisposition *disposition);void g_mime_disposition_add_parameter (GMimeDisposition *disposition, constchar *attribute, constchar *value); constchar * g_mime_disposition_get_parameter (GMimeDisposition *disposition, constchar *attribute);char * g_mime_disposition_header (GMimeDisposition *disposition,gboolean fold);
A GMimeDisposition represents the pre-parsed contents of a Content-Disposition header field.
#define GMIME_DISPOSITION_ATTACHMENT "attachment"
Standard attachment disposition.
typedef struct {
char *disposition;
GMimeParam *params;
GHashTable *param_hash;
} GMimeDisposition;
GMimeDisposition * g_mime_disposition_new (constchar *disposition);
Creates a new GMimeDisposition object.
|
disposition header (and params) |
Returns : |
a new disposition object |
void g_mime_disposition_destroy (GMimeDisposition *disposition);
Destroy the disposition object.
|
disposition object |
void g_mime_disposition_set (GMimeDisposition *disposition, constchar *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.
|
disposition object |
|
disposition value |
constchar * g_mime_disposition_get (GMimeDisposition *disposition);
Gets the disposition or NULL
|
disposition object |
Returns : |
the disposition string which is probably one of GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE. |
void g_mime_disposition_add_parameter (GMimeDisposition *disposition, constchar *attribute, constchar *value);
Adds a new parameter of name name and value value to the
disposition.
|
disposition object |
|
parameter name |
|
parameter value |
constchar * g_mime_disposition_get_parameter (GMimeDisposition *disposition, constchar *attribute);
Gets the value of the parameter attribute, or NULL
|
disposition object |
|
parameter name |
Returns : |
the value of the parameter of name attribute.
|
char * g_mime_disposition_header (GMimeDisposition *disposition,gboolean fold);
Allocates a string buffer containing the Content-Disposition header
represented by the disposition object disposition.
|
disposition object |
|
fold header if needed |
Returns : |
a string containing the disposition header |