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.ComponentAlarmRepeatdescribing alarm repetitions. The returned structure should be freed with e_cal_component_alarm_repeat_free(), when no longer needed.Added in version 3.34.
- classmethod new_seconds(repetitions, interval_seconds)¶
- Parameters:
- Returns:
a newly allocated
ECal.ComponentAlarmRepeat- Return type:
Creates a new
ECal.ComponentAlarmRepeatdescribing alarm repetitions. The returned structure should be freed with e_cal_component_alarm_repeat_free(), when no longer needed.Added 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:
Added 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.Durationobject. 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().Added 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.
Added in version 3.34.
- get_repetitions()¶
- Returns:
the repetitions count of the self
- Return type:
Added 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.
Added in version 3.34.