| Top |  |  |  |  | 
ECalComponentAlarms *
e_cal_component_alarms_new (struct _ECalComponent *comp);
Creates a new ECalComponentAlarms structure, associated with comp
.
Free the alarms with e_cal_component_alarms_free(), when no longer needed.
The comp
 can be NULL since 3.48, in which case the respective instances hold
the component they belong to.
| comp | the actual alarm component, as ECalComponent, or  | [type ECalComponent][nullable] | 
Since: 3.34
ECalComponentAlarms *
e_cal_component_alarms_copy (const ECalComponentAlarms *alarms);
Returns a newly allocated copy of alarms
, which should be freed with
e_cal_component_alarms_free(), when no longer needed.
Since: 3.34
void
e_cal_component_alarms_free (gpointer alarms);
Free alarms
, previously created by e_cal_component_alarms_new()
or e_cal_component_alarms_copy(). The function does nothing, if alarms
is NULL.
[skip]
Since: 3.34
struct _ECalComponent *
e_cal_component_alarms_get_component (const ECalComponentAlarms *alarms);
The returned component is valid until the alarms
 is freed.
an ECalComponent associated with the alarms
structure, or NULL. 
[type ECalComponent][transfer none][nullable]
Since: 3.34
void e_cal_component_alarms_set_instances (ECalComponentAlarms *alarms,const GSList *instances);
Modifies the list of instances to copy of the given instances
.
| alarms | ||
| instances | ECalComponentAlarmInstance objects to set. | [nullable][element-type ECalComponentAlarmInstance] | 
Since: 3.34
void e_cal_component_alarms_take_instances (ECalComponentAlarms *alarms,GSList *instances);
Replaces the list of instances with the given instances
 and
assumes ownership of it. Neither the GSList, nor its items, should
contain the same structures.
| alarms | ||
| instances | ECalComponentAlarmInstance objects to take. | [nullable][transfer full][element-type ECalComponentAlarmInstance] | 
Since: 3.34
void e_cal_component_alarms_add_instance (ECalComponentAlarms *alarms,const ECalComponentAlarmInstance *instance);
Add a copy of instance
 into the list of instances. It is added
in no particular order.
Since: 3.34
void e_cal_component_alarms_take_instance (ECalComponentAlarms *alarms,ECalComponentAlarmInstance *instance);
Add the instance
 into the list of instances and assume ownership of it.
It is added in no particular order.
Since: 3.34
gboolean e_cal_component_alarms_remove_instance (ECalComponentAlarms *alarms,const ECalComponentAlarmInstance *instance);
Remove the instance
 from the list of instances. If found, the instance
is also freed.
Since: 3.34