file_operation_callback Class Reference

Interface to notify component system about files being deleted or moved. Operates in app's main thread only. More...

#include <file_operation_callback.h>

Inheritance diagram for file_operation_callback:

service_base

List of all members.

Public Types

typedef const
pfc::list_base_const_t< const
char * > & 
t_pathlist
typedef file_operation_callback t_interface_entrypoint
typedef file_operation_callback t_interface
typedef service_base t_interface_parent

Public Member Functions

virtual void on_files_deleted_sorted (t_pathlist p_items)=0
 p_items is a metadb::path_compare sorted list of files that have been deleted.
virtual void on_files_moved_sorted (t_pathlist p_from, t_pathlist p_to)=0
 p_from is a metadb::path_compare sorted list of files that have been moved, p_to is a list of corresponding target locations.
virtual void on_files_copied_sorted (t_pathlist p_from, t_pathlist p_to)=0
 p_from is a metadb::path_compare sorted list of files that have been copied, p_to is a list of corresponding target locations.

Static Public Member Functions

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 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 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)
static bool g_mark_dead_entries (metadb_handle_list_cref items, bit_array_var &mask, t_pathlist deadPaths)

Static Public Attributes

static const GUID class_guid


Detailed Description

Interface to notify component system about files being deleted or moved. Operates in app's main thread only.

Member Typedef Documentation

Reimplemented from service_base.


Member Function Documentation

virtual void file_operation_callback::on_files_deleted_sorted ( t_pathlist  p_items  )  [pure virtual]

p_items is a metadb::path_compare sorted list of files that have been deleted.

virtual void file_operation_callback::on_files_moved_sorted ( t_pathlist  p_from,
t_pathlist  p_to 
) [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.

virtual void file_operation_callback::on_files_copied_sorted ( t_pathlist  p_from,
t_pathlist  p_to 
) [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.

static void file_operation_callback::g_on_files_deleted ( const pfc::list_base_const_t< const char * > &  p_items  )  [static]

static void file_operation_callback::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]

static void file_operation_callback::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]

static bool file_operation_callback::g_search_sorted_list ( const pfc::list_base_const_t< const char * > &  p_list,
const char *  p_string,
t_size p_index 
) [static]

static bool file_operation_callback::g_update_list_on_moved ( metadb_handle_list_ref  p_list,
t_pathlist  p_from,
t_pathlist  p_to 
) [static]

static bool file_operation_callback::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]

static bool file_operation_callback::g_mark_dead_entries ( metadb_handle_list_cref  items,
bit_array_var mask,
t_pathlist  deadPaths 
) [static]


Member Data Documentation

Initial value:

 
{ 0x5570a2d2, 0x8f9e, 0x48a7, { 0xaf, 0xac, 0xda, 0xc0, 0xa, 0x3c, 0x16, 0x36 } }


The documentation for this class was generated from the following files:

Generated on Fri Apr 25 18:49:44 2008 for foobar2000 SDK by  doxygen 1.5.5