| libical-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#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);
ICalAttach * i_cal_attach_new_full (icalattach *native,GObject *owner);
Create a new libical-glib object from the native libical object and the owner.
|
The native libical object. |
|
The parent. |
Returns : |
The newly create libical-glib object. [transfer full] |
Since 1.0
ICalAttach * i_cal_attach_new_from_url (const gchar *url);
Create a new ICalAttach from the url
|
The url from which the object is created |
Returns : |
The newly created ICalAttach from the url. [transfer full]
|
Since 1.0
ICalAttach * i_cal_attach_new_from_data (const gchar *data,GFunc free_fn,void *free_fn_data);
Create a new ICalAttach from the data.
|
The data used to create the ICalAttach |
|
The function used to free the data when the create ICalAttach is detroyed. [scope call][allow-none] |
|
The userdata used for the free function free_fn. [allow-none]
|
Returns : |
The newly created ICalAttach. [transfer full] |
Since 1.0
void i_cal_attach_ref (ICalAttach *attach);
Increase the ref counter by 1 for the attach
|
The ICalAttach to be referenced by once |
Since 1.0
void i_cal_attach_unref (ICalAttach *attach);
Decrese the ref counter by 1 for the attach
|
The ICalAttach to be unreferenced by once |
Since 1.0
gint i_cal_attach_get_is_url (ICalAttach *attach);
Check whether the ICalAttach is built from url
|
The ICalAttach to be queried |
Returns : |
1 if the attach is built from url and 0 if not. |
Since 1.0
const gchar * i_cal_attach_get_url (ICalAttach *attach);
Get the url if the ICalAttach is built from the url. NULL if else.
|
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
guchar * i_cal_attach_get_data (ICalAttach *attach);
Get the data if the ICalAttach is built from the data. NULL if else.
|
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