ECal.ComponentAlarms¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class ECal.ComponentAlarms¶
Opaque structure, which represents alarm trigger instances for a particular component. Use the functions below to work with it.
- classmethod new(comp)¶
- Parameters:
comp (
ECal.ComponentorNone) – the actual alarm component, asECal.Component, orNone- Returns:
a newly allocated
ECal.ComponentAlarms- Return type:
Creates a new
ECal.ComponentAlarmsstructure, associated with comp. Free the alarms with e_cal_component_alarms_free(), when no longer needed.The comp can be
Nonesince 3.48, in which case the respective instances hold the component they belong to.Added in version 3.34.
- add_instance(instance)¶
- Parameters:
instance (
ECal.ComponentAlarmInstance) – anECal.ComponentAlarmInstance
Add a copy of instance into the list of instances. It is added in no particular order.
Added in version 3.34.
- copy()¶
- Returns:
a newly allocated copy of self
- Return type:
Returns a newly allocated copy of self, which should be freed with e_cal_component_alarms_free(), when no longer needed.
Added in version 3.34.
- get_component()¶
- Returns:
an
ECal.Componentassociated with the self structure, orNone- Return type:
The returned component is valid until the self is freed.
Added in version 3.34.
- get_instances()¶
- Returns:
instances of the self structure; can be
None, when none had been added yet- Return type:
The returned
GLib.SListis owned by self and should not be modified. It’s valid until the self is freed or the list of instances is not modified by other functions. The items are of typeECal.ComponentAlarmInstance.Added in version 3.34.
- remove_instance(instance)¶
- Parameters:
instance (
ECal.ComponentAlarmInstance) – anECal.ComponentAlarmInstance- Returns:
whether the instance had been found and freed
- Return type:
Remove the instance from the list of instances. If found, the instance is also freed.
Added in version 3.34.
- set_instances(instances)¶
- Parameters:
instances ([
ECal.ComponentAlarmInstance] orNone) –ECal.ComponentAlarmInstanceobjects to set
Modifies the list of instances to copy of the given instances.
Added in version 3.34.
- take_instance(instance)¶
- Parameters:
instance (
ECal.ComponentAlarmInstance) – anECal.ComponentAlarmInstance
Add the instance into the list of instances and assume ownership of it. It is added in no particular order.
Added in version 3.34.
- take_instances(instances)¶
- Parameters:
instances ([
ECal.ComponentAlarmInstance] orNone) –ECal.ComponentAlarmInstanceobjects to take
Replaces the list of instances with the given instances and assumes ownership of it. Neither the
GLib.SList, nor its items, should contain the same structures.Added in version 3.34.