GMime 2.6 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define GMIME_DISPOSITION_ATTACHMENT #define GMIME_DISPOSITION_INLINE struct GMimeContentDisposition; GMimeContentDisposition * g_mime_content_disposition_new (void
); GMimeContentDisposition * g_mime_content_disposition_new_from_string (const char *str
); void g_mime_content_disposition_set_disposition (GMimeContentDisposition *disposition
,const char *value
); const char * g_mime_content_disposition_get_disposition (GMimeContentDisposition *disposition
); const GMimeParam * g_mime_content_disposition_get_params (GMimeContentDisposition *disposition
); void g_mime_content_disposition_set_params (GMimeContentDisposition *disposition
,GMimeParam *params
); void g_mime_content_disposition_set_parameter (GMimeContentDisposition *disposition
,const char *attribute
,const char *value
); const char * g_mime_content_disposition_get_parameter (GMimeContentDisposition *disposition
,const char *attribute
); char * g_mime_content_disposition_to_string (GMimeContentDisposition *disposition
,gboolean fold
);
A GMimeContentDisposition represents the pre-parsed contents of a Content-Disposition header field.
#define GMIME_DISPOSITION_ATTACHMENT "attachment"
Standard attachment disposition.
struct GMimeContentDisposition;
A data structure representing a Content-Disposition.
GMimeContentDisposition * g_mime_content_disposition_new
(void
);
Creates a new GMimeContentDisposition object.
Returns : |
a new GMimeContentDisposition object. |
GMimeContentDisposition * g_mime_content_disposition_new_from_string
(const char *str
);
Creates a new GMimeContentDisposition object.
|
Content-Disposition field value or NULL
|
Returns : |
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.
|
a GMimeContentDisposition object |
|
disposition value |
const char * g_mime_content_disposition_get_disposition
(GMimeContentDisposition *disposition
);
Gets the disposition or NULL
on fail.
|
a GMimeContentDisposition object |
Returns : |
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.
|
a GMimeContentDisposition object |
Returns : |
the list of GMimeParam's set on disposition . |
void g_mime_content_disposition_set_params (GMimeContentDisposition *disposition
,GMimeParam *params
);
Sets the Content-Disposition's parameter list.
|
a GMimeContentDisposition object |
|
a list of GMimeParam objects |
void g_mime_content_disposition_set_parameter (GMimeContentDisposition *disposition
,const char *attribute
,const char *value
);
Sets a parameter on the Content-Disposition.
|
a GMimeContentDisposition object |
|
parameter name |
|
parameter value |
const char * g_mime_content_disposition_get_parameter (GMimeContentDisposition *disposition
,const char *attribute
);
Gets the value of the parameter attribute
, or NULL
on fail.
|
a GMimeContentDisposition object |
|
parameter name |
Returns : |
the value of the parameter of name attribute . |
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
.
|
a GMimeContentDisposition object |
|
fold header if needed |
Returns : |
a string containing the disposition header |