92 api->handle_create_replace_path_canonical(newItem,item,p_to[index]);
102 bool changed =
false;
108 api->handle_create_replace_path_canonical(newItem,item,p_to[index]);
120 for(
t_size walk = 0; walk < total; ++walk) {
123 mask.
set(walk,
true); found =
true;
125 mask.
set(walk,
false);
void ensure_main_thread()
Triggers a bug check if the calling thread is not the main app thread.
static void g_on_files_moved_sorted(const pfc::list_base_const_t< const char * > &p_from, const pfc::list_base_const_t< const char * > &p_to)
const t_item * get_ptr() const
t_size add_item(const T &item)
static void g_fill(t_int *p_order, const t_size p_count)
virtual void replace_item(t_size p_index, const T &p_item)=0
static void g_on_files_copied_sorted(const pfc::list_base_const_t< const char * > &p_from, const pfc::list_base_const_t< const char * > &p_to)
static bool run(const t_container &p_container, t_size p_base, t_size p_count, const t_param &p_param, t_size &p_result)
static void g_on_files_moved(const pfc::list_base_const_t< const char * > &p_from, const pfc::list_base_const_t< const char * > &p_to)
void dynamic_assert(bool p_condition, const char *p_msg)
virtual void set(t_size n, bool val)=0
static void g_on_files_deleted(const pfc::list_base_const_t< const char * > &p_items)
void set_size(t_size p_size)
virtual t_size get_count() const =0
static void g_on_files_deleted_sorted(const pfc::list_base_const_t< const char * > &p_items)
static bool g_update_list_on_moved_ex(metadb_handle_list_ref p_list, t_pathlist p_from, t_pathlist p_to, metadb_handle_list_ref itemsAdded, metadb_handle_list_ref itemsRemoved)
static bool g_search_sorted_list(const pfc::list_base_const_t< const char * > &p_list, const char *p_string, t_size &p_index)
Bit array interface class, variable version (you can both set and retrieve values). As with the constant version, valid index range depends on the context.
static void g_on_files_copied(const pfc::list_base_const_t< const char * > &p_from, const pfc::list_base_const_t< const char * > &p_to)
bool assert_main_thread()
Tests whether calling thread is main app thread, and shows diagnostic message in debugger output if i...
static bool g_update_list_on_moved(metadb_handle_list_ref p_list, t_pathlist p_from, t_pathlist p_to)
void sort_get_permutation_t(t_compare p_compare, t_permutation const &p_permutation) const
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
static bool g_mark_dead_entries(metadb_handle_list_cref items, bit_array_var &mask, t_pathlist deadPaths)
Interface to notify component system about files being deleted or moved. Operates in app's main threa...