ProjectFiles
Object Hierarchy:
Description:
public class ProjectFiles :
Object,
ListModel,
Traversable<
ProjectFile>,
Iterable<
ProjectFile>
V2 client flat file list for one project (GLib.ListModel).
Populated by refresh from
Folder.fetch_files RPC. Not a live mirror of daemon
ProjectFiles
— call
refresh after index changes (open project, write file,
approvals, notifications).
**🚫** no
folder_map
,
all_files
, or
update_from
— path lookup uses
get_by_path /
ProjectManager.fetch_file
.
Content:
Properties:
Creation methods:
Methods:
- public bool @foreach (ForallFunc<ProjectFile> f)
Gee.Traversable interface implementation: Execute function for each
item.
- public void append (ProjectFile item)
Append a row (local UI update; prefer
refresh after daemon index changes).
- public bool contains (ProjectFile item)
Check if an item exists in the list.
- public bool find (ProjectFile item, out uint position)
Find an item in the list and return its position.
- public File? get_active_file ()
Active file in this list snapshot.
- public File? get_by_id (int64 file_id)
Lookup File by
database id in the current snapshot.
- public File? get_by_path (string path)
Lookup File by
absolute path in the current snapshot.
- public ArrayList<string> get_ids (string language = "")
File ids as strings, optionally filtered by language.
- 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 ArrayList<File> get_recent_list (int days)
Recently modified open files, most recent first.
- public void insert (uint position, ProjectFile item)
Insert an item at a specific position.
- public Iterator<ProjectFile> iterator ()
Gee.Iterable interface implementation: Get iterator over items.
- public async void load_more ()
Append the next Folder.fetch_files
page when more rows exist.
- public async void refresh (string query = "")
Reload file rows from the daemon (Folder.fetch_files
), first page.
- public void remove (ProjectFile item)
Remove an item from the list by item reference.
- public void remove_all ()
Remove all items from the list (ListStore-compatible).
- public void remove_at (uint position)
Remove an item at a specific position (ListStore-compatible).
Signals:
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
All known members inherited from interface Gee.Traversable
- @foreach
- all_match
- any_match
- chop
- element_type
- filter
- first_match
- flat_map
- fold
- map
- max
- min
- order_by
- scan
- stream
- tee
All known members inherited from interface Gee.Iterable