foobar2000 SDK
2015-08-03
|
#include <file_operation_callback.h>
Public Types | |
typedef const pfc::list_base_const_t< const char * > & | t_pathlist |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Public Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (file_operation_callback) | |
virtual void | on_files_copied_sorted (t_pathlist p_from, t_pathlist p_to)=0 |
virtual void | on_files_deleted_sorted (t_pathlist p_items)=0 |
virtual void | on_files_moved_sorted (t_pathlist p_from, t_pathlist p_to)=0 |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Static Public Member Functions | |
static bool | g_mark_dead_entries (metadb_handle_list_cref items, bit_array_var &mask, t_pathlist deadPaths) |
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) |
static void | g_on_files_deleted (const pfc::list_base_const_t< const char * > &p_items) |
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) |
static bool | g_search_sorted_list (const pfc::list_base_const_t< const char * > &p_list, const char *p_string, t_size &p_index) |
static bool | g_update_list_on_moved (metadb_handle_list_ref p_list, t_pathlist p_from, t_pathlist p_to) |
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) |
Additional Inherited Members | |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Interface to notify component system about files being deleted or moved. Operates in app's main thread only.
Definition at line 6 of file file_operation_callback.h.
typedef const pfc::list_base_const_t<const char *>& file_operation_callback::t_pathlist |
Definition at line 8 of file file_operation_callback.h.
file_operation_callback::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | file_operation_callback | ) |
|
static |
Definition at line 117 of file file_operation_callback.cpp.
|
static |
Definition at line 60 of file file_operation_callback.cpp.
|
static |
Definition at line 25 of file file_operation_callback.cpp.
|
static |
Definition at line 42 of file file_operation_callback.cpp.
|
static |
Definition at line 79 of file file_operation_callback.cpp.
|
static |
Definition at line 100 of file file_operation_callback.cpp.
|
static |
Definition at line 83 of file file_operation_callback.cpp.
|
pure virtual |
p_from is a metadb::path_compare sorted list of files that have been copied, p_to is a list of corresponding target locations.
|
pure virtual |
p_items is a metadb::path_compare sorted list of files that have been deleted.
|
pure virtual |
p_from is a metadb::path_compare sorted list of files that have been moved, p_to is a list of corresponding target locations.