foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
dropped_files_data_impl

#include <playlist.h>

+ Inheritance diagram for dropped_files_data_impl:

Public Member Functions

 dropped_files_data_impl ()
 
void set_handles (const pfc::list_base_const_t< metadb_handle_ptr > &p_handles)
 
void set_paths (pfc::string_list_const const &p_paths)
 
bool to_handles (pfc::list_base_t< metadb_handle_ptr > &p_out, bool p_filter, HWND p_parentwnd)
 
void to_handles_async (bool p_filter, HWND p_parentwnd, service_ptr_t< process_locations_notify > p_notify)
 
void to_handles_async_ex (t_uint32 p_op_flags, HWND p_parentwnd, service_ptr_t< process_locations_notify > p_notify)
 

Private Attributes

metadb_handle_list m_handles
 
bool m_is_paths
 
pfc::string_list_impl m_paths
 

Additional Inherited Members

- Protected Member Functions inherited from dropped_files_data
 dropped_files_data ()
 
 ~dropped_files_data ()
 

Detailed Description

Implementation of dropped_files_data.

Definition at line 822 of file playlist.h.

Constructor & Destructor Documentation

dropped_files_data_impl::dropped_files_data_impl ( )
inline

Definition at line 824 of file playlist.h.

824 : m_is_paths(false) {}

Member Function Documentation

void dropped_files_data_impl::set_handles ( const pfc::list_base_const_t< metadb_handle_ptr > &  p_handles)
inlinevirtual

Implements dropped_files_data.

Definition at line 829 of file playlist.h.

829  {
830  m_is_paths = false;
831  m_handles = p_handles;
832  }
metadb_handle_list m_handles
Definition: playlist.h:840
void dropped_files_data_impl::set_paths ( pfc::string_list_const const &  p_paths)
inlinevirtual

Implements dropped_files_data.

Definition at line 825 of file playlist.h.

825  {
826  m_is_paths = true;
827  m_paths = p_paths;
828  }
pfc::string_list_impl m_paths
Definition: playlist.h:839
bool dropped_files_data_impl::to_handles ( pfc::list_base_t< metadb_handle_ptr > &  p_out,
bool  p_filter,
HWND  p_parentwnd 
)

Definition at line 731 of file playlist.cpp.

731  {
732  if (m_is_paths) {
733  return static_api_ptr_t<playlist_incoming_item_filter>()->process_locations(m_paths,p_out,p_filter,NULL,NULL,p_parentwnd);
734  } else {
735  if (static_api_ptr_t<metadb_io>()->load_info_multi(m_handles,metadb_io::load_info_default,p_parentwnd,true) == metadb_io::load_info_aborted) return false;
736  p_out = m_handles;
737  return true;
738  }
739 }
metadb_handle_list m_handles
Definition: playlist.h:840
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533
pfc::string_list_impl m_paths
Definition: playlist.h:839
void dropped_files_data_impl::to_handles_async ( bool  p_filter,
HWND  p_parentwnd,
service_ptr_t< process_locations_notify p_notify 
)

Definition at line 727 of file playlist.cpp.

727  {
729 }
void to_handles_async_ex(t_uint32 p_op_flags, HWND p_parentwnd, service_ptr_t< process_locations_notify > p_notify)
Definition: playlist.cpp:711
Set this to disable presorting (according to user settings) and duplicate removal in output list...
Definition: playlist.h:787
void dropped_files_data_impl::to_handles_async_ex ( t_uint32  p_op_flags,
HWND  p_parentwnd,
service_ptr_t< process_locations_notify p_notify 
)
Parameters
p_op_flagsCan be null, or one or more of playlist_incoming_item_filter_v2::op_flag_* enum values combined, altering behaviors of the operation.

Definition at line 711 of file playlist.cpp.

711  {
712  if (m_is_paths) {
713  static_api_ptr_t<playlist_incoming_item_filter_v2>()->process_locations_async(
714  m_paths,
715  p_op_flags,
716  NULL,
717  NULL,
718  p_parentwnd,
719  p_notify);
720  } else {
721  t_uint32 flags = 0;
725  }
726 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
metadb_handle_list m_handles
Definition: playlist.h:840
Set this flag to delay the progress dialog becoming visible, so it does not appear at all during shor...
Definition: metadb.h:122
Set this flag to make the progress dialog not steal focus on creation.
Definition: playlist.h:789
Set this flag to delay the progress dialog becoming visible, so it does not appear at all during shor...
Definition: playlist.h:791
Set this flag to make the progress dialog not steal focus on creation.
Definition: metadb.h:120
Helper template used to easily access core services. Usage: static_api_ptr_t<myclass> api; api->doso...
Definition: service.h:533
pfc::string_list_impl m_paths
Definition: playlist.h:839
uint32_t t_uint32
Definition: int_types.h:5

Field Documentation

metadb_handle_list dropped_files_data_impl::m_handles
private

Definition at line 840 of file playlist.h.

bool dropped_files_data_impl::m_is_paths
private

Definition at line 841 of file playlist.h.

pfc::string_list_impl dropped_files_data_impl::m_paths
private

Definition at line 839 of file playlist.h.


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