file_info_update_helper.h

Go to the documentation of this file.
00001 
00002 class __declspec(deprecated("Use metadb_io_v2::update_info_async instead whenever possible.")) file_info_update_helper {
00003 public:
00004         file_info_update_helper(const pfc::list_base_const_t<metadb_handle_ptr> & p_data);
00005         file_info_update_helper(metadb_handle_ptr p_item);
00006 
00007         bool read_infos(HWND p_parent,bool p_show_errors);
00008 
00009         enum t_write_result
00010         {
00011                 write_ok,
00012                 write_aborted,
00013                 write_error
00014         };
00015         t_write_result write_infos(HWND p_parent,bool p_show_errors);
00016 
00017         t_size get_item_count() const;
00018         bool is_item_valid(t_size p_index) const;//returns false where info reading failed
00019         
00020         file_info & get_item(t_size p_index);
00021         metadb_handle_ptr get_item_handle(t_size p_index) const;
00022 
00023         void invalidate_item(t_size p_index);
00024 
00025 private:
00026         metadb_handle_list m_data;
00027         pfc::array_t<file_info_impl> m_infos;
00028         pfc::array_t<bool> m_mask;
00029 };

Generated on Thu Aug 28 21:15:30 2008 for foobar2000 SDK by  doxygen 1.5.5