ICalGLib.Component¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ICalGLib.Component(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the
ICalGLib.Componentinstance.- classmethod kind_from_string(string)¶
- Parameters:
string (
str) – A string- Returns:
- Return type:
Converts a string to a
ICalGLib.ComponentKind.Added in version 1.0.
- classmethod kind_is_valid(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – AICalGLib.ComponentKind- Returns:
1 if kind id a
ICalGLib.Componentbut not theICalGLib.ComponentKind.NO_COMPONENT, 0 if not.- Return type:
Checks if a
ICalGLib.ComponentKindis valid.Added in version 1.0.
- classmethod kind_to_string(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – AICalGLib.ComponentKind- Returns:
The string representation of kind.
- Return type:
Converts a
ICalGLib.ComponentKindto a string.Added in version 1.0.
- classmethod new(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – TheICalGLib.ComponentKind- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a new
ICalGLib.Componentwith specific type.Added in version 1.0.
- classmethod new_from_string(str)¶
- Parameters:
str (
str) – The string used to createICalGLib.Component- Returns:
The newly created
ICalGLib.Componentbased on str.- Return type:
Creates a new
ICalGLib.Componentbased on a string.Added in version 1.0.
- classmethod new_vagenda()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vagenda.Added in version 1.0.
- classmethod new_valarm()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be valarm.Added in version 1.0.
- classmethod new_vavailability()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vavailability.Added in version 1.0.
- classmethod new_vcalendar()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vcalendar.Added in version 1.0.
- classmethod new_vevent()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vevent.Added in version 1.0.
- classmethod new_vfreebusy()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vfreebusy.Added in version 1.0.
- classmethod new_vjournal()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vjournal.Added in version 1.0.
- classmethod new_vpoll()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vpoll.Added in version 1.0.
- classmethod new_vquery()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vquery.Added in version 1.0.
- classmethod new_vtimezone()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vtimezone.Added in version 1.0.
- classmethod new_vtodo()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vtodo.Added in version 1.0.
- classmethod new_vvoter()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be vvoter.Added in version 1.0.
- classmethod new_x(x_name)¶
- Parameters:
x_name (
str) – The name of x property- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a new
ICalGLib.Componentbased on name of x property.Added in version 1.0.
- classmethod new_xavailable()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be xavailable.Added in version 1.0.
- classmethod new_xdaylight()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be xdaylight.Added in version 1.0.
- classmethod new_xstandard()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be xstandard.Added in version 1.0.
- classmethod new_xvote()¶
- Returns:
The newly created
ICalGLib.Component.- Return type:
Creates a
ICalGLib.Componentwith the type to be xvote.Added in version 1.0.
- add_component(child)¶
- Parameters:
child (
ICalGLib.Component) – A childICalGLib.Component
Adds a
ICalGLib.Componentinto anotherICalGLib.Componentas a child component.Added in version 1.0.
- add_property(property)¶
- Parameters:
property (
ICalGLib.Property) – AnICalGLib.Property
Adds an
ICalGLib.PropertyintoICalGLib.Component.Added in version 1.0.
- as_ical_string()¶
- Returns:
The string representation of
ICalGLib.Component.- Return type:
Converts a
ICalGLib.Componentto a string.Added in version 1.0.
- begin_component(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – AICalGLib.ComponentKind- Returns:
- Return type:
Gets the
ICalGLib.CompIterpointing to the first childICalGLib.Component.Added in version 1.0.
- check_restrictions()¶
- Returns:
The number of restrictions in self
- Return type:
Checks the number of restrictions in
ICalGLib.Component.Added in version 1.0.
- clone()¶
- Returns:
The newly deeply cloned
ICalGLib.Component.- Return type:
Deeply clone a
ICalGLib.Component.Added in version 1.0.
- convert_errors()¶
Converts some X-LIC-ERROR properties into RETURN-STATUS properties.
Added in version 1.0.
- count_components(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – The targetICalGLib.ComponentKind- Returns:
The count of child
ICalGLib.Componentin the parent one.- Return type:
Counts the child
ICalGLib.Componentwith the target kind in the parent one.Added in version 1.0.
- count_errors()¶
- Returns:
The count of errors.
- Return type:
Counts the number of errors in
ICalGLib.Component.Added in version 1.0.
- count_properties(kind)¶
- Parameters:
kind (
ICalGLib.PropertyKind) – AICalGLib.PropertyKind- Returns:
The number of
ICalGLib.Property.- Return type:
Counts the number of
ICalGLib.PropertyinICalGLib.Component.Added in version 1.0.
- end_component(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – AICalGLib.ComponentKind- Returns:
- Return type:
Gets the
ICalGLib.CompIterpointing to the end childICalGLib.Component.Added in version 1.0.
- foreach_recurrence(start, end, callback, *user_data)¶
- Parameters:
start (
ICalGLib.Time) – Ignore timespans before thisend (
ICalGLib.Time) – Ignore timespans after thiscallback (
ICalGLib.ComponentForeachRecurrenceFunc) – Function called for each timespan within the rangeuser_data (
objectorNone) – The user data for callback function
Cycles through all recurrences of an event. This function will call the specified callback function for once for the base value of DTSTART, and foreach recurring date/time value. It will filter out events that are specified as an EXDATE or an EXRULE.
Added in version 3.0.5.
- foreach_tzid(callback, *user_data)¶
- Parameters:
callback (
ICalGLib.ComponentForeachTZIDFunc) – The callback function
Applies the same manipulation on every tzid in
ICalGLib.Component.Added in version 3.0.5.
- get_comment()¶
- Returns:
The comment of self.
- Return type:
Gets the comment of the
ICalGLib.Component.Added in version 1.0.
- get_current_component()¶
- Returns:
The current
ICalGLib.Component.- Return type:
Gets the current
ICalGLib.ComponentinICalGLib.Component.Added in version 1.0.
- get_current_property()¶
- Returns:
The current
ICalGLib.Property.- Return type:
Gets the current
ICalGLib.PropertyinICalGLib.Component.Added in version 1.0.
- get_description()¶
- Returns:
The description of self.
- Return type:
Gets the description of the
ICalGLib.Component.Added in version 1.0.
- get_dtend()¶
- Returns:
- Return type:
Gets the dtend of the
ICalGLib.Component.Added in version 1.0.
- get_dtstamp()¶
- Returns:
- Return type:
Gets the dtstamp of the
ICalGLib.Component.Added in version 1.0.
- get_dtstart()¶
- Returns:
- Return type:
Gets the dtstart of the
ICalGLib.Component.Added in version 1.0.
- get_due()¶
- Returns:
- Return type:
Gets the due of the
ICalGLib.Component.Added in version 1.0.
- get_duration()¶
- Returns:
- Return type:
Gets the duration of the
ICalGLib.Component.Added in version 1.0.
- get_first_component(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – AICalGLib.ComponentKind- Returns:
The first
ICalGLib.Component.- Return type:
Gets the first
ICalGLib.Componentwith specific kind inICalGLib.Component.Added in version 1.0.
- get_first_property(kind)¶
- Parameters:
kind (
ICalGLib.PropertyKind) – AICalGLib.PropertyKind- Returns:
The first
ICalGLib.Property.- Return type:
Gets the first
ICalGLib.Propertywith specific kind inICalGLib.Component.Added in version 1.0.
- get_first_real_component()¶
- Returns:
A reference to the first VEVENT, VTODO or VJOURNAL
- Return type:
For VCOMPONENT: Returns a reference to the first VEVENT, VTODO or VJOURNAL.
Added in version 1.0.
- get_inner()¶
- Returns:
The first VEVENT, VTODO or VJOURNAL sub-component.
- Return type:
Returns the first VEVENT, VTODO or VJOURNAL sub-component of cop, or comp if it is one of those types.
Added in version 1.0.
- get_location()¶
- Returns:
The location of self.
- Return type:
Gets the location of the
ICalGLib.Component.Added in version 1.0.
- get_method()¶
- Returns:
- Return type:
Gets the method of the
ICalGLib.Component.Added in version 1.0.
- get_next_component(kind)¶
- Parameters:
kind (
ICalGLib.ComponentKind) – AICalGLib.ComponentKind- Returns:
The next
ICalGLib.Component.- Return type:
Gets the next
ICalGLib.Componentwith specific kind inICalGLib.Component.Added in version 1.0.
- get_next_property(kind)¶
- Parameters:
kind (
ICalGLib.PropertyKind) – AICalGLib.PropertyKind- Returns:
The next
ICalGLib.Property.- Return type:
Gets the next
ICalGLib.Propertywith specific kind inICalGLib.Component.Added in version 1.0.
- get_parent()¶
- Returns:
The parent
ICalGLib.Componentof the self.- Return type:
Gets the parent component of the self.
Added in version 3.0.
- get_recurrenceid()¶
- Returns:
- Return type:
Gets the recurrenceid of the
ICalGLib.Component.Added in version 1.0.
- get_relcalid()¶
- Returns:
The relcalid of self.
- Return type:
Gets the relcalid of the
ICalGLib.Component.Added in version 1.0.
- get_sequence()¶
- Returns:
The sequence of self.
- Return type:
Gets the sequence of the
ICalGLib.Component.Added in version 1.0.
- get_span()¶
- Returns:
- Return type:
For VEVENT, VTODO, VJOURNAL and VTIMEZONE: reports the start and end times of an event in UTC.
Added in version 1.0.
- get_status()¶
- Returns:
- Return type:
Gets the status of the
ICalGLib.Component.Added in version 1.0.
- get_summary()¶
- Returns:
The summary of self.
- Return type:
Gets the summary of the
ICalGLib.Component.Added in version 1.0.
- get_timezone(tzid)¶
- Parameters:
tzid (
str) – A string representing timezone- Returns:
- Return type:
Returns the icaltimezone in the component corresponding to the TZID, or
Noneif it can’t be found.Added in version 1.0.
- get_uid()¶
- Returns:
The uid of self.
- Return type:
Gets the uid of the
ICalGLib.Component.Added in version 1.0.
- is_valid()¶
- Returns:
1 if yes, 0 if not.
- Return type:
Checks whether
ICalGLib.Componentis valid.Added in version 1.0.
- isa()¶
- Returns:
- Return type:
Gets the type of
ICalGLib.Component.Added in version 1.0.
- isa_component()¶
- Returns:
1 if yes, 0 if not.
- Return type:
Checks whether the native part of
ICalGLib.Componentis icalcomponent.Added in version 1.0.
- merge_component(comp_to_merge)¶
- Parameters:
comp_to_merge (
ICalGLib.Component) – AICalGLib.Component. After merged it will not exist any more.
Takes 2 VCALENDAR components and merges the second one into the first, resolving any problems with conflicting TZIDs. comp_to_merge will no longer exist after calling this function.
Added in version 1.0.
- remove_component(child)¶
- Parameters:
child (
ICalGLib.Component) – A childICalGLib.Component
Removes a child
ICalGLib.Componentfrom anotherICalGLib.Component.Added in version 1.0.
- remove_property(property)¶
- Parameters:
property (
ICalGLib.Property) – AICalGLib.Property
Removes
ICalGLib.PropertyfromICalGLib.Component. Caution: The compare is based on address. So you must use the originalICalGLib.Propertyas the target.Added in version 1.0.
- set_comment(v)¶
- Parameters:
v (
str) – A string representing comment
Sets the comment of the
ICalGLib.Component.Added in version 1.0.
- set_description(v)¶
- Parameters:
v (
str) – A string representing description
Sets the description of the
ICalGLib.Component.Added in version 1.0.
- set_dtend(v)¶
- Parameters:
v (
ICalGLib.Time) – AICalGLib.Time
Sets the dtend of the
ICalGLib.Component.Added in version 1.0.
- set_dtstamp(v)¶
- Parameters:
v (
ICalGLib.Time) – AICalGLib.Time
Sets the dtstamp of the
ICalGLib.Component.Added in version 1.0.
- set_dtstart(v)¶
- Parameters:
v (
ICalGLib.Time) – AICalGLib.Time
Sets the dtstart of the
ICalGLib.Component.Added in version 1.0.
- set_due(v)¶
- Parameters:
v (
ICalGLib.Time) – AICalGLib.Time
Sets the due of the
ICalGLib.Component.Added in version 1.0.
- set_duration(v)¶
- Parameters:
v (
ICalGLib.Duration) – AICalGLib.Duration
Sets the duration of the
ICalGLib.Component.Added in version 1.0.
- set_location(v)¶
- Parameters:
v (
str) – A string representing location
Sets the location of the
ICalGLib.Component.Added in version 1.0.
- set_method(method)¶
- Parameters:
method (
ICalGLib.PropertyMethod) – AICalGLib.PropertyMethod
Sets the method of the
ICalGLib.Component.Added in version 1.0.
- set_parent(parent)¶
- Parameters:
parent (
ICalGLib.ComponentorNone) – AnICalGLib.Component, a new parent
Sets the parent
ICalGLib.Componentof the specified self.Added in version 3.0.
- set_recurrenceid(v)¶
- Parameters:
v (
ICalGLib.Time) – AICalGLib.Time
Sets the recurrenceid of the
ICalGLib.Component.Added in version 1.0.
- set_relcalid(v)¶
- Parameters:
v (
str) – A string representing relcalid
Sets the relcalid of the
ICalGLib.Component.Added in version 1.0.
- set_sequence(v)¶
- Parameters:
v (
int) – The sequence number
Sets the sequence of the
ICalGLib.Component.Added in version 1.0.
- set_status(status)¶
- Parameters:
status (
ICalGLib.PropertyStatus) – AICalGLib.PropertyStatus
Sets the status of the
ICalGLib.Component.Added in version 1.0.
- set_summary(v)¶
- Parameters:
v (
str) – A string representing summary
Sets the summary of the
ICalGLib.Component.Added in version 1.0.
- set_uid(v)¶
- Parameters:
v (
str) – A string representing uid
Sets the uid of the
ICalGLib.Component.Added in version 1.0.
- strip_errors()¶
Removes all X-LIC-ERROR properties.
Added in version 1.0.