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.Component
orNone
) – the actual alarm component, asECal.Component
, orNone
- Returns:
a newly allocated
ECal.ComponentAlarms
- Return type:
Creates a new
ECal.ComponentAlarms
structure, associated with comp. Free the alarms with e_cal_component_alarms_free(), when no longer needed.The comp can be
None
since 3.48, in which case the respective instances hold the component they belong to.New 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.
New 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.
New in version 3.34.
- get_component()¶
- Returns:
an
ECal.Component
associated with the self structure, orNone
- Return type:
The returned component is valid until the self is freed.
New 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.SList
is 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
.New 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.
New in version 3.34.
- set_instances(instances)¶
- Parameters:
instances ([
ECal.ComponentAlarmInstance
] orNone
) –ECal.ComponentAlarmInstance
objects to set
Modifies the list of instances to copy of the given instances.
New 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.
New in version 3.34.
- take_instances(instances)¶
- Parameters:
instances ([
ECal.ComponentAlarmInstance
] orNone
) –ECal.ComponentAlarmInstance
objects 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.New in version 3.34.