ReviewFiles
Object Hierarchy:
Description:
public class ReviewFiles : Object, ListModel
Manages files in a project that need approval (flat list for approvals UI).
V2 client: implements GLib.ListModel over
FileWithHistory rows from
Folder.fetch_pending_approvals
. Call
refresh to reload the list model, or
fetch_pending for the snapshot only.
Content:
Properties:
Creation methods:
Methods:
- public void append (FileWithHistory item)
Append an item to the list (ListStore-compatible).
- public void clear ()
Clear all items from the list.
- public bool contains (FileWithHistory file)
Check if a row is in the list.
- public async ArrayList<FileWithHistory> fetch_pending ()
Fetch files pending approval from the daemon (Folder.fetch_pending_approvals
wire).
- 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 async void refresh ()
Reload pending-approval rows from the daemon into this list model.
- public void remove (FileWithHistory item)
Remove an item from the list by item reference.
- public void remove_at (uint position)
Remove an item at a specific position (ListStore-compatible).
Signals:
- public signal void refreshed ()
Emitted after
refresh finishes (success or empty RPC result).
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