ICalAttach

## ICalAttach ICalAttach |

## Synopsis

    #define             I_CAL_ATTACH_TYPE
                        ICalAttach;
    struct              ICalAttachClass;
    ICalAttach *        i_cal_attach_new_full               (icalattach *native,
                                                             GObject *owner);
    ICalAttach *        i_cal_attach_new_from_url           (const gchar *url);
    ICalAttach *        i_cal_attach_new_from_data          (const gchar *data,
                                                             GFunc free_fn,
                                                             void *free_fn_data);
    void                i_cal_attach_ref                    (ICalAttach *attach);
    void                i_cal_attach_unref                  (ICalAttach *attach);
    gint                i_cal_attach_get_is_url             (ICalAttach *attach);
    const gchar *       i_cal_attach_get_url                (ICalAttach *attach);
    guchar *            i_cal_attach_get_data               (ICalAttach *attach);

## Object Hierarchy

      GObject
       +----ICalObject
             +----ICalAttach

## Description

## Details

### I_CAL_ATTACH_TYPE

    #define             I_CAL_ATTACH_TYPE

### ICalAttach

    typedef struct _ICalAttach ICalAttach;

This is the ICalAttach instance.

### struct ICalAttachClass

    struct ICalAttachClass {
    };

This is the ICalAttach class.

### i_cal_attach_new_full ()

    ICalAttach *        i_cal_attach_new_full               (icalattach *native,
                                                             GObject *owner);

Create a new libical-glib object from the native libical object and the owner.

`native` : | The native libical object.
`owner` : | The parent.
Returns : | The newly create libical-glib object. [transfer full]

Since 1.0

### i_cal_attach_new_from_url ()

    ICalAttach *        i_cal_attach_new_from_url           (const gchar *url);

Create a new ICalAttach from the url

`url` : | The url from which the object is created
Returns : | The newly created ICalAttach from the `url`. [transfer full]

Since 1.0

### i_cal_attach_new_from_data ()

    ICalAttach *        i_cal_attach_new_from_data          (const gchar *data,
                                                             GFunc free_fn,
                                                             void *free_fn_data);

Create a new ICalAttach from the data.

`data` : | The data used to create the ICalAttach
`free_fn` : | The function used to free the data when the create ICalAttach is detroyed. [scope call][allow-none]
`free_fn_data` : | The userdata used for the free function `free_fn`. [allow-none]
Returns : | The newly created ICalAttach. [transfer full]

Since 1.0

### i_cal_attach_ref ()

    void                i_cal_attach_ref                    (ICalAttach *attach);

Increase the ref counter by 1 for the `attach`

`attach` : | The ICalAttach to be referenced by once

Since 1.0

### i_cal_attach_unref ()

    void                i_cal_attach_unref                  (ICalAttach *attach);

Decrese the ref counter by 1 for the `attach`

`attach` : | The ICalAttach to be unreferenced by once

Since 1.0

### i_cal_attach_get_is_url ()

    gint                i_cal_attach_get_is_url             (ICalAttach *attach);

Check whether the ICalAttach is built from url

`attach` : | The ICalAttach to be queried
Returns : | 1 if the `attach` is built from url and 0 if not.

Since 1.0

### i_cal_attach_get_url ()

    const gchar *       i_cal_attach_get_url                (ICalAttach *attach);

Get the url if the ICalAttach is built from the url. NULL if else.

`attach` : | The ICalAttach to be queried
Returns : | The url component of the `attach`. NULL if it is built from data or there is an error. [allow-none][transfer none]

Since 1.0

### i_cal_attach_get_data ()

    guchar *            i_cal_attach_get_data               (ICalAttach *attach);

Get the data if the ICalAttach is built from the data. NULL if else.

`attach` : | The ICalAttach to be queried
Returns : | The data component of the `attach`. NULL if it is built from url or there is an error. [type utf8][allow-none][transfer none]

Since 1.0