Object#
Superclasses: Object
Subclasses: Array, Attach, CompIter, Component, Datetimeperiod, Duration, Geo, Parameter, Parser, Period, Property, RecurIterator, Recurrence, Reqstat, Time, TimeSpan, Timezone, Trigger, Value
This is an ICalObject instance struct.
Methods#
- class Object
- add_depender(depender: Object) None#
Adds a
dependerinto the list of objects which should not be destroyed before thisiobject. It’s usually used for cases where theiobjectuses native libical structure from thedepender. Thedependeris referenced. It’s illegal to try to add onedependermultiple times.Added in version 1.0.
- Parameters:
depender – a
Objectdepender
- classmethod free_global_objects() None#
Frees all global objects. Any references to them are invalidated by this call, unless they had been
ref()-ed manually.Added in version 3.0.5.
- get_always_destroy() bool#
Obtain the
ICalObject::always-destroy property value.Added in version 3.0.11.
- get_is_global_memory() bool#
Obtains whether the native libical structure is a global shared memory, thus should not be destroyed. This can be set only during construction time.
Added in version 1.0.
- remove_depender(depender: Object) None#
Removes a
dependerfrom the list of objects which should not be destroyed before thisiobject, previously added withadd_depender(). It’s illegal to try to remove thedependerwhich is not in the internal list.Added in version 1.0.
- Parameters:
depender – a
Objectdepender
- set_always_destroy(value: bool) None#
Sets the
ICalObject::always-destroy property value. WhenTrue, the native libical structure is always freed, even when an owner of theiobjectis set.Added in version 3.0.11.
- Parameters:
value – value to set
Properties#
- class Object