EDataCal.IntervalTree

g EDataCal.IntervalTree EDataCal.IntervalTree GObject.Object GObject.Object GObject.Object->EDataCal.IntervalTree

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

destroy ()

dump ()

insert (start, end, comp)

remove (uid, rid)

search (start, end)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class EDataCal.IntervalTree(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

EDataCal.IntervalTreeClass

Contains only private data that should be read and manipulated using the functions below.

New in version 2.32.

classmethod new()
Returns:

The newly-created EDataCal.IntervalTree.

Return type:

EDataCal.IntervalTree

Creates a new EDataCal.IntervalTree.

New in version 2.32.

destroy()

New in version 2.32.

dump()
insert(start, end, comp)
Parameters:
  • start (int) – start of the interval

  • end (int) – end of the interval

  • comp (ECal.Component) – Component

Return type:

bool

New in version 2.32.

remove(uid, rid)
Parameters:
  • uid (str) – the uid of the component to remove

  • rid (str) – the recurrance id of the component to remove

Return type:

bool

New in version 2.32.

search(start, end)
Parameters:
  • start (int) – start of the interval

  • end (int) – end of the interval

Returns:

list of ECal.Component-s that overlap given interval, or None.

Return type:

[ECal.Component] or None

New in version 2.32.