Details
struct GMimeObject
struct GMimeObject {
GObject parent_object;
GMimeContentType *content_type;
GMimeHeader *headers;
char *content_id;
}; |
GMimePartFunc ()
void (*GMimePartFunc) (GMimeObject *part,
gpointer data); |
g_mime_object_register_type ()
void g_mime_object_register_type (const char *type,
const char *subtype,
GType object_type); |
Registers the object type object_type for use with the
g_mime_object_new_type convenience function.
Note: You may use the wildcard "*" to match any type and/or
subtype.
g_mime_object_new_type ()
GMimeObject* g_mime_object_new_type (const char *type,
const char *subtype); |
Performs a lookup of registered GMimeObject subclasses, registered
using g_mime_object_register_type, to find an appropriate class
capable of handling MIME parts of type type/subtype. If no class
has been registered to handle that type, it looks for a registered
class that can handle type/*. If that also fails, then it will use
the generic part class, GMimePart.
g_mime_object_ref ()
Ref's a MIME object.
g_mime_object_unref ()
Unref's a MIME object.
g_mime_object_set_content_type ()
Sets the content-type for the specified MIME object.
g_mime_object_get_content_type ()
Gets the Content-Type object for the given MIME object or NULL on
fail.
g_mime_object_set_content_type_parameter ()
void g_mime_object_set_content_type_parameter
(GMimeObject *object,
const char *name,
const char *value); |
Sets the content-type param name to the value value.
g_mime_object_get_content_type_parameter ()
const char* g_mime_object_get_content_type_parameter
(GMimeObject *object,
const char *name); |
Gets the value of the content-type param name set on the MIME part
object.
g_mime_object_set_content_id ()
void g_mime_object_set_content_id (GMimeObject *object,
const char *content_id); |
Sets the Content-Id of the MIME object.
g_mime_object_get_content_id ()
const char* g_mime_object_get_content_id (GMimeObject *object); |
Gets the Content-Id of the MIME object or NULL if one is not set.
g_mime_object_add_header ()
void g_mime_object_add_header (GMimeObject *object,
const char *header,
const char *value); |
Adds an arbitrary header to the MIME object.
g_mime_object_set_header ()
void g_mime_object_set_header (GMimeObject *object,
const char *header,
const char *value); |
Sets an arbitrary header on the MIME object.
g_mime_object_get_header ()
const char* g_mime_object_get_header (GMimeObject *object,
const char *header); |
Gets the value of the requested header if it exists or NULL
otherwise.
g_mime_object_remove_header ()
void g_mime_object_remove_header (GMimeObject *object,
const char *header); |
Removed the specified header if it exists.
g_mime_object_get_headers ()
Allocates a string buffer containing all of the MIME object's raw
headers.
g_mime_object_write_to_stream ()
Write the contents of the MIME object to stream.
g_mime_object_to_string ()
Allocates a string buffer containing the contents of object.