ProjectList
Object Hierarchy:
Description:
public class ProjectList : Object, ListModel
Manages project list with deduplication.
Implements ListModel interface using Gee.ArrayList as backing store. Provides ListStore-compatible methods that update the backing store
and emit items_changed signals. Projects are Folders with is_project = true.
Content:
Properties:
Creation methods:
Methods:
- public void append (Folder item)
Append an item to the list (ListStore-compatible). Checks for
duplicates by both id and path before adding.
- public Folder? get_active_project ()
Get the active project from the projects list.
- public Folder? get_folder_in_any_project (string path)
Return a Folder at the given path if it exists in any project's
folder_map. Uses the backing store (items) so we can foreach; does not use ListModel.
- public Object? get_item (uint position)
ListModel interface implementation: Get item at position.
- public Type get_item_type ()
ListModel interface implementation: Get the item type.
- public uint get_n_items ()
ListModel interface implementation: Get the number of items.
- public void remove (Folder item)
Remove an item from the list by item reference.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.ListModel