ECal.ComponentAlarm¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class ECal.ComponentAlarm¶
Opaque structure, which represents alarm subcomponents. Use the functions below to work with it.
- classmethod new()¶
- Returns:
a newly allocated
ECal.ComponentAlarm- Return type:
Creates a new empty
ECal.ComponentAlarmstructure. Free it with e_cal_component_alarm_free(), when no longer needed.New in version 3.34.
- classmethod new_from_component(component)¶
- Parameters:
component (
ICalGLib.Component) – anICalGLib.Componentof kindICalGLib.ComponentKind.VALARM_COMPONENT- Returns:
a newly allocated
ECal.ComponentAlarm- Return type:
Creates a new
ECal.ComponentAlarm, filled with values from component, which should be of kindICalGLib.ComponentKind.VALARM_COMPONENT. The function returnsNonewhen it is not of the expected kind. Free the structure with e_cal_component_alarm_free(), when no longer needed.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_alarm_free(), when no longer needed.
New in version 3.34.
- fill_component(component)¶
- Parameters:
component (
ICalGLib.Component) – anICalGLib.ComponentofICalGLib.ComponentKind.VALARM_COMPONENTkind
Fills component with data from self. The component should be of
ICalGLib.ComponentKind.VALARM_COMPONENTkind - the function does nothing, if it’s not. In case the self doesn’t have set ‘uid’, a new is assigned.New in version 3.34.
- get_acknowledged()¶
- Returns:
the self acknowledged time, or
None, when none is set- Return type:
Get the last time the alarm had been acknowledged, that is, when its reminder had been triggered. The returned
ICalGLib.Timeis owned by self and should not be modified, neither its content.New in version 3.40.
- get_action()¶
- Returns:
the self action, or
ECal.ComponentAlarmAction.NONE, when none is set- Return type:
Get the self action, as an
ECal.ComponentAlarmAction.New in version 3.34.
- get_as_component()¶
- Returns:
a newly created
ICalGLib.ComponentofICalGLib.ComponentKind.VALARM_COMPONENTkind- Return type:
Creates a VALARM
ICalGLib.Componentfilled with data from the self. In case the self doesn’t have set ‘uid’, a new is assigned. Free the returned component withGObject.Object.unref(), when no longer needed.New in version 3.34.
- get_attachments()¶
- Returns:
the self attachments, as a
GLib.SListof anICalGLib.Attach, orNone, when none is set- Return type:
[
ICalGLib.Attach] orNone
Get the list of attachments, as
ICalGLib.Attach. The returnedGLib.SListis owned by self and should not be modified, neither its content.New in version 3.34.
- get_attendees()¶
- Returns:
the self attendees, as a
GLib.SListof anECal.ComponentAttendee, orNonewhen, none are set- Return type:
Get the list of attendees, as
ECal.ComponentAttendee. The returnedGLib.SListis owned by self and should not be modified, neither its content.New in version 3.34.
- get_description()¶
- Returns:
the self description, or
None, when none is set- Return type:
Get the self description, as an
ECal.ComponentText.New in version 3.34.
- get_property_bag()¶
- Returns:
an
ECal.ComponentPropertyBagwith additional properties stored with an alarm component, other than those accessible with the other functions of the self.- Return type:
New in version 3.34.
- get_repeat()¶
- Returns:
the self repeat information, or
None, when none is set- Return type:
Get the self repeat information, as an
ECal.ComponentAlarmRepeat.New in version 3.34.
- get_summary()¶
- Returns:
the self summary, or
None, when none is set- Return type:
Get the self summary, as an
ECal.ComponentText.New in version 3.34.
- get_trigger()¶
- Returns:
the self trigger, or
Nonewhen, none is set- Return type:
Get the self trigger, as an
ECal.ComponentAlarmTrigger.New in version 3.34.
- get_uid()¶
-
Get the self UID.
New in version 3.34.
- has_attachments()¶
- Returns:
whether the self has any attachments
- Return type:
New in version 3.34.
- set_acknowledged(when)¶
- Parameters:
when (
ICalGLib.TimeorNone) – anICalGLib.Timewhen the self had been acknowledged, orNoneto unset
Set the acknowledged time of the self. Use
Noneto unset it.New in version 3.40.
- set_action(action)¶
- Parameters:
action (
ECal.ComponentAlarmAction) – anECal.ComponentAlarmAction
Set the self action, as an
ECal.ComponentAlarmAction.New in version 3.34.
- set_attachments(attachments)¶
- Parameters:
attachments ([
ICalGLib.Attach] orNone) – aGLib.SListof anICalGLib.Attachobjects to set as attachments, orNoneto unset
Set the list of attachments, as a
GLib.SListof anICalGLib.Attach.New in version 3.34.
- set_attendees(attendees)¶
- Parameters:
attendees ([
ECal.ComponentAttendee] orNone) – aGLib.SListof anECal.ComponentAttendeeobjects to set as attendees, orNoneto unset
Set the list of attendees, as a
GLib.SListof anECal.ComponentAttendee.New in version 3.34.
- set_description(description)¶
- Parameters:
description (
ECal.ComponentTextorNone) – a description to set, orNoneto unset
Set the self description, as an
ECal.ComponentText.New in version 3.34.
- set_from_component(component)¶
- Parameters:
component (
ICalGLib.Component) – anICalGLib.Component
Fill the self structure with the information from the component, which should be of
ICalGLib.ComponentKind.VALARM_COMPONENTkind.New in version 3.34.
- set_repeat(repeat)¶
- Parameters:
repeat (
ECal.ComponentAlarmRepeatorNone) – a repeat information to set, orNoneto unset
Set the self repeat information, as an
ECal.ComponentAlarmRepeat.New in version 3.34.
- set_summary(summary)¶
- Parameters:
summary (
ECal.ComponentTextorNone) – a summary to set, orNoneto unset
Set the self summary, as an
ECal.ComponentText.New in version 3.34.
- set_trigger(trigger)¶
- Parameters:
trigger (
ECal.ComponentAlarmTriggerorNone) – a trigger to set, orNoneto unset
Set the self trigger, as an
ECal.ComponentAlarmTrigger.New in version 3.34.
- set_uid(uid)¶
-
Set the self UID, or generates a new UID, if uid is
Noneor an empty string.New in version 3.34.
- take_acknowledged(when)¶
- Parameters:
when (
ICalGLib.TimeorNone) – anICalGLib.Timewhen the self had been acknowledged, orNoneto unset
Set the acknowledged time of the self. Use
Noneto unset it. The function assumes ownership of the when.New in version 3.40.