ECal.ComponentAlarmRepeat¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class ECal.ComponentAlarmRepeat¶
A structure holding whether and how an alarm repeats. Use the functions below to work with it.
- classmethod new(repetitions, interval)¶
- Parameters:
repetitions (
int
) – number of extra repetitions, zero for noneinterval (
ICalGLib.Duration
) – interval between repetitions
- Returns:
a newly allocated
ECal.ComponentAlarmRepeat
- Return type:
Creates a new
ECal.ComponentAlarmRepeat
describing alarm repetitions. The returned structure should be freed with e_cal_component_alarm_repeat_free(), when no longer needed.New in version 3.34.
- classmethod new_seconds(repetitions, interval_seconds)¶
- Parameters:
- Returns:
a newly allocated
ECal.ComponentAlarmRepeat
- Return type:
Creates a new
ECal.ComponentAlarmRepeat
describing alarm repetitions. The returned structure should be freed with e_cal_component_alarm_repeat_free(), when no longer needed.New in version 3.34.
- copy()¶
- Returns:
a newly allocated
ECal.ComponentAlarmRepeat
, copy of self. The returned structure should be freed with e_cal_component_alarm_repeat_free(), when no longer needed.- Return type:
New in version 3.34.
- get_interval()¶
- Returns:
the interval between repetitions of the self
- Return type:
Returns the interval between repetitions of the self, as an
ICalGLib.Duration
object. This object is owned by self and should not be freed. It’s valid until the self is not freed or its interval changed with eitherECal.ComponentAlarmRepeat.set_interval
() orECal.ComponentAlarmRepeat.set_interval_seconds
().New in version 3.34.
- get_interval_seconds()¶
- Returns:
the interval between repetitions of the self
- Return type:
Returns the interval between repetitions of the self in seconds.
New in version 3.34.
- set_interval(interval)¶
- Parameters:
interval (
ICalGLib.Duration
) – interval between repetitions, as anICalGLib.Duration
Set the interval between repetitions of the self.
New in version 3.34.