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.ComponentAlarm
structure. 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.Component
of 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 returnsNone
when 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.Component
ofICalGLib.ComponentKind.VALARM_COMPONENT
kind
Fills component with data from self. The component should be of
ICalGLib.ComponentKind.VALARM_COMPONENT
kind - 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.Time
is 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.Component
ofICalGLib.ComponentKind.VALARM_COMPONENT
kind- Return type:
Creates a VALARM
ICalGLib.Component
filled 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.SList
of anICalGLib.Attach
, orNone
, when none is set- Return type:
[
ICalGLib.Attach
] orNone
Get the list of attachments, as
ICalGLib.Attach
. The returnedGLib.SList
is 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.SList
of anECal.ComponentAttendee
, orNone
when, none are set- Return type:
Get the list of attendees, as
ECal.ComponentAttendee
. The returnedGLib.SList
is 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.ComponentPropertyBag
with 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
None
when, 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.Time
orNone
) – anICalGLib.Time
when the self had been acknowledged, orNone
to unset
Set the acknowledged time of the self. Use
None
to 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.SList
of anICalGLib.Attach
objects to set as attachments, orNone
to unset
Set the list of attachments, as a
GLib.SList
of anICalGLib.Attach
.New in version 3.34.
- set_attendees(attendees)¶
- Parameters:
attendees ([
ECal.ComponentAttendee
] orNone
) – aGLib.SList
of anECal.ComponentAttendee
objects to set as attendees, orNone
to unset
Set the list of attendees, as a
GLib.SList
of anECal.ComponentAttendee
.New in version 3.34.
- set_description(description)¶
- Parameters:
description (
ECal.ComponentText
orNone
) – a description to set, orNone
to 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_COMPONENT
kind.New in version 3.34.
- set_repeat(repeat)¶
- Parameters:
repeat (
ECal.ComponentAlarmRepeat
orNone
) – a repeat information to set, orNone
to unset
Set the self repeat information, as an
ECal.ComponentAlarmRepeat
.New in version 3.34.
- set_summary(summary)¶
- Parameters:
summary (
ECal.ComponentText
orNone
) – a summary to set, orNone
to unset
Set the self summary, as an
ECal.ComponentText
.New in version 3.34.
- set_trigger(trigger)¶
- Parameters:
trigger (
ECal.ComponentAlarmTrigger
orNone
) – a trigger to set, orNone
to 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
None
or an empty string.New in version 3.34.
- take_acknowledged(when)¶
- Parameters:
when (
ICalGLib.Time
orNone
) – anICalGLib.Time
when the self had been acknowledged, orNone
to unset
Set the acknowledged time of the self. Use
None
to unset it. The function assumes ownership of the when.New in version 3.40.