00001 #ifndef _foobar2000_helpers_file_list_helper_ 00002 #define _foobar2000_helpers_file_list_helper_ 00003 00004 00005 namespace file_list_helper 00006 { 00007 //list guaranteed to be sorted by metadb::path_compare 00008 class file_list_from_metadb_handle_list : public pfc::list_base_const_t<const char*> { 00009 public: 00010 00011 void init_from_list(const list_base_const_t<metadb_handle_ptr> & p_list); 00012 void init_from_list_display(const list_base_const_t<metadb_handle_ptr> & p_list); 00013 00014 t_size get_count() const; 00015 void get_item_ex(const char * & p_out,t_size n) const; 00016 00017 ~file_list_from_metadb_handle_list(); 00018 00019 private: 00020 void __add(const char * p_what); 00021 pfc::ptr_list_t<char> m_data; 00022 }; 00023 00024 00025 }; 00026 00027 00028 #endif //_foobar2000_helpers_file_list_helper_
1.5.5