ComponentAlarmTrigger
Object Hierarchy:
ECal.ComponentAlarmTrigger
ECal.ComponentAlarmTrigger
ECal.ComponentAlarmTrigger
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "e_cal_component_alarm_trigger_get_type ()" ) ] [ Compact ]public class ComponentAlarmTrigger
Opaque structure, which represents when an alarm is supposed to be triggered.
Use the functions below to work with it.
Content:
Creation methods:
Methods:
public ComponentAlarmTrigger copy ()
Returns a newly allocated copy of this
, which should be freed with e_cal_component_alarm_trigger_free
, when no longer needed.
public void fill_property (ref Property property)
Fill property
with information from
this .
public unowned Time ? get_absolute_time ()
Returns the this absolute time for
an absolute trigger, or null , when the this is a relative trigger.
public Property get_as_property ()
Converts information stored in this
into an Property of i_cal_trigger_property kind.
public unowned Duration ? get_duration ()
Returns the this duration for a
relative this , or null , when the this
is an absolute trigger.
public ComponentAlarmTriggerKind get_kind ()
public unowned ComponentParameterBag get_parameter_bag ()
public void set_absolute (Time absolute_time)
Set the trigegr
with the
e_cal_component_alarm_trigger_absolute kind and the absolute_time
as the time of the trigger.
public void set_absolute_time (Time absolute_time)
Sets the this absolute time for an
absolute trigger.
public void set_duration (Duration duration)
Sets the this duration for a
relative trigger.
public void set_from_property (Property property)
Fill the this structure with the
information from the property
, which should be of i_cal_trigger_property kind.
public void set_kind (ComponentAlarmTriggerKind kind)
Set the this kind to kind
.
public void set_relative (ComponentAlarmTriggerKind kind, Duration duration)
Set the trigegr
with the given kind
and
duration
.