:right-sidebar: True Object =================================================================== .. currentmodule:: gi.repository.ICalGLib .. class:: Object(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.ICalGLib.Array`, :class:`~gi.repository.ICalGLib.Attach`, :class:`~gi.repository.ICalGLib.CompIter`, :class:`~gi.repository.ICalGLib.Component`, :class:`~gi.repository.ICalGLib.Datetimeperiod`, :class:`~gi.repository.ICalGLib.Duration`, :class:`~gi.repository.ICalGLib.Geo`, :class:`~gi.repository.ICalGLib.Parameter`, :class:`~gi.repository.ICalGLib.Parser`, :class:`~gi.repository.ICalGLib.Period`, :class:`~gi.repository.ICalGLib.Property`, :class:`~gi.repository.ICalGLib.RecurIterator`, :class:`~gi.repository.ICalGLib.Recurrence`, :class:`~gi.repository.ICalGLib.Reqstat`, :class:`~gi.repository.ICalGLib.Time`, :class:`~gi.repository.ICalGLib.TimeSpan`, :class:`~gi.repository.ICalGLib.Timezone`, :class:`~gi.repository.ICalGLib.Trigger`, :class:`~gi.repository.ICalGLib.Value` This is an ICalObject instance struct. Methods ------- .. rst-class:: interim-class .. class:: Object :no-index: .. method:: add_depender(depender: ~gi.repository.GObject.Object) -> None Adds a ``depender`` into the list of objects which should not be destroyed before this ``iobject``\. It's usually used for cases where the ``iobject`` uses native libical structure from the ``depender``\. The ``depender`` is referenced. It's illegal to try to add one ``depender`` multiple times. .. versionadded:: 1.0 :param depender: a :obj:`~gi.repository.GObject.Object` depender .. classmethod:: free_global_objects() -> None Frees all global objects. Any references to them are invalidated by this call, unless they had been :func:`~gi.repository.GObject.GObject.Object.ref`-ed manually. .. versionadded:: 3.0.5 .. method:: get_always_destroy() -> bool Obtain the ``ICalObject``\::always-destroy property value. .. versionadded:: 3.0.11 .. method:: 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. .. versionadded:: 1.0 .. method:: remove_depender(depender: ~gi.repository.GObject.Object) -> None Removes a ``depender`` from the list of objects which should not be destroyed before this ``iobject``\, previously added with :func:`~gi.repository.ICalGLib.Object.add_depender`. It's illegal to try to remove the ``depender`` which is not in the internal list. .. versionadded:: 1.0 :param depender: a :obj:`~gi.repository.GObject.Object` depender .. method:: remove_owner() -> None Unref and remove the owner. .. versionadded:: 1.0 .. method:: set_always_destroy(value: bool) -> None Sets the ``ICalObject``\::always-destroy property value. When :const:`True`, the native libical structure is always freed, even when an owner of the ``iobject`` is set. .. versionadded:: 3.0.11 :param value: value to set .. method:: set_native_destroy_func(native_destroy_func: ~collections.abc.Callable[[~typing.Any], None]) -> None Sets a function to be used to destroy the native libical structure. .. versionadded:: 1.0 :param native_destroy_func: Function to be used to destroy the native libical structure .. method:: set_owner(owner: ~gi.repository.GObject.Object) -> None Sets an owner of the native libical structure, that is an object responsible for a destroy of the native libical structure. .. versionadded:: 1.0 :param owner: Owner of the native libical structure Properties ---------- .. rst-class:: interim-class .. class:: Object :no-index: .. attribute:: props.always_destroy :type: bool The type of the None singleton. .. versionadded:: 3.0.11 .. attribute:: props.is_global_memory :type: bool The type of the None singleton. .. attribute:: props.native :type: ~typing.Any The type of the None singleton. .. attribute:: props.native_destroy_func :type: ~typing.Any The type of the None singleton. .. attribute:: props.owner :type: ~gi.repository.GObject.Object The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: Object :no-index: .. attribute:: parent .. attribute:: priv