# MIMEDirAttendee

## Name

MIMEDirAttendee -- iCalendar attendee object

## Synopsis

    #include <mimedir/mimedir-attendee.h>

                        MIMEDirAttendee;

    MIMEDirAttendee*    mimedir_attendee_new                (void);
    MIMEDirAttendee*    mimedir_attendee_new_from_attribute (MIMEDirAttribute *attribute,
                                                             GError **error);
    gboolean            mimedir_attendee_read_from_attribute
                                                            (MIMEDirAttendee *attendee,
                                                             MIMEDirAttribute *attribute,
                                                             GError **error);
    MIMEDirAttribute*   mimedir_attendee_write_to_attribute (MIMEDirAttendee *attendee);

## Description

## Details

### MIMEDirAttendee

    typedef struct {
    	GObject parent;

    	/* Read Only */

    	gchar *uri;

    	MIMEDirAttendeePriv *priv;
    } MIMEDirAttendee;

### mimedir_attendee_new ()

    MIMEDirAttendee*    mimedir_attendee_new                (void);

Creates a new attendee object.

Returns : | a new attendee object

### mimedir_attendee_new_from_attribute ()

    MIMEDirAttendee*    mimedir_attendee_new_from_attribute (MIMEDirAttribute *attribute,
                                                             GError **error);

Creates a new attendee object and initializes it with values read from the supplied attribute object.

`attribute` : | a MIMEDirAttribute object
`error` : | error storage location or `NULL`
Returns : | a new MIMEDirAttendee object or `NULL` on error

### mimedir_attendee_read_from_attribute ()

    gboolean            mimedir_attendee_read_from_attribute
                                                            (MIMEDirAttendee *attendee,
                                                             MIMEDirAttribute *attribute,
                                                             GError **error);

Initializes `attendee` with data read from `attribute`.

`attendee` : | a MIMEDirAttendee object
`attribute` : | a MIMEDirAttribute object
`error` : | error storage location or `NULL`
Returns : | success indicator

### mimedir_attendee_write_to_attribute ()

    MIMEDirAttribute*   mimedir_attendee_write_to_attribute (MIMEDirAttendee *attendee);

Write `attendee` to a newly allocated MIMEDirAttribute object. The returned object should be freed with `g_object_unref()`.

`attendee` : | a MIMEDirAttendee object
Returns : | A newly allocated MIMEDirAttribute object