ECal.ComponentAlarms
Description: Reference for ECal.ComponentAlarms

### Struct

# ECalComponentAlarms

#### Description [src]

    struct ECalComponentAlarms {
      /* No available fields */
    }

Opaque structure, which represents alarm trigger instances for a particular component. Use the functions below to work with it.

#### Constructors

###### e_cal_component_alarms_new

Creates a new `ECalComponentAlarms` structure, associated with `comp`. Free the alarms with e_cal_component_alarms_free(), when no longer needed.

since: 3.34

#### Instance methods

###### e_cal_component_alarms_add_instance

Add a copy of `instance` into the list of instances. It is added in no particular order.

since: 3.34

###### e_cal_component_alarms_copy

Returns a newly allocated copy of `alarms`, which should be freed with e_cal_component_alarms_free(), when no longer needed.

since: 3.34

###### e_cal_component_alarms_free

Free `alarms`, previously created by `e_cal_component_alarms_new()` or e_cal_component_alarms_copy(). The function does nothing, if `alarms` is `NULL`.

since: 3.34

###### e_cal_component_alarms_get_component

The returned component is valid until the `alarms` is freed.

since: 3.34

###### e_cal_component_alarms_get_instances

The returned `GSList` is owned by `alarms` and should not be modified. It’s valid until the `alarms` is freed or the list of instances is not modified by other functions. The items are of type `ECalComponentAlarmInstance`.

since: 3.34

###### e_cal_component_alarms_remove_instance

Remove the `instance` from the list of instances. If found, the `instance` is also freed.

since: 3.34

###### e_cal_component_alarms_set_instances

Modifies the list of instances to copy of the given `instances`.

since: 3.34

###### e_cal_component_alarms_take_instance

Add the `instance` into the list of instances and assume ownership of it. It is added in no particular order.

since: 3.34

###### e_cal_component_alarms_take_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.

since: 3.34