ComponentBag
Object Hierarchy:
Description:
[
CCode ( type_id =
"e_cal_component_bag_get_type ()" ) ]
public class ComponentBag :
Object
Content:
Properties:
Creation methods:
Methods:
- public void @foreach (ComponentBagForeachFunc func)
Calls the func for each item in the
this, or until the func returns false, to stop the
traversal earlier.
- public void @lock ()
Locks the this, to prevent changes
from other threads.
- public void @unlock ()
Unlocks the this, previously locked
by the @unlock.
- public void add (Client client, Component comp)
Adds a component into the bag.
- public void add_with_user_data (Client client, Component comp, void* user_data, BoxedCopyFunc? copy_user_data, BoxedFreeFunc? free_user_data)
Adds a component into the bag.
- public void clear ()
Removes all components from the bag.
- public ComponentBagItem? dup_item (Client client, string uid, string? rid)
Looks up for an item identified by the client, uid
and optionally rid, and returns a copy of it.
- public GenericArray<unowned ComponentBagItem>? dup_span (uint index)
Similar to the
get_span, except the returned array is a copy of the span, thus it is
thread safe.
- public unowned ComponentBagItem? get_item (Client client, string uid, string? rid)
Looks up for an item identified by the client, uid
and optionally rid, and returns it.
- public uint get_min_duration_minutes ()
- public uint get_n_items ()
Gets how many items are in the bag across all the spans.
- public uint get_n_spans ()
Gets how many spans all the components in the
this occupy.
- public unowned GenericArray<ComponentBagItem>? get_span (uint index)
Peeks a current span content.
- public unowned Timezone? get_timezone ()
Gets an
Timezone used to calculate component times in.
- public GenericArray<unowned ComponentBagItem> list ()
Lists all components stored in the this
.
- public void rebuild ()
Rebuilds the spans with the current content, like if all the items are
added from scratch.
- public void remove (Client client, string uid, string? rid)
Removes a component from the bag.
- public void set_min_duration_minutes (uint value)
Sets minimum duration to be used for the components, in minutes.
- public void set_timezone (Timezone zone)
Sets the zone as a time zone to be used to calculate
component times in.
Signals:
Inherited Members:
All known members inherited from class GLib.Object