FolderFiles
Object Hierarchy:
Description:
public class FolderFiles : Object, ListModel
Manages immediate children of one Folder (flat list for tree UI).
V2 client: used as Folder.children. Provides list (
GLib.ListModel) and child_map (basename lookup) for one
directory level. The daemon builds the full tree via
read_dir
; this list is not hydrated
automatically — populate via
append /
remove until a
Folder.fetch_children
RPC lands (plan 2.10.4.16). No
cleanup_deleted
on the client (daemon-only).
Content:
Properties:
Creation methods:
Methods:
- public void append (FileBase item)
Append an item to the list (ListStore-compatible). Checks for
duplicates before adding.
- public bool contains (FileBase item)
Check if an item exists in the list.
- public bool find (FileBase item, out uint position)
Find an item in the list and return its position.
- 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 insert (uint position, FileBase item)
Insert an item at a specific position.
- public void remove (FileBase 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).
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