Ignore:
Timestamp:
04/03/09 21:17:30 (12 years ago)
Author:
Eoin
Message:

Cleaning up torrent removal code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/halTorrent.hpp

    r714 r739  
    498498typedef boost::function<bool (size_t, size_t, std::wstring)> progress_callback; 
    499499typedef boost::function<void (int)> report_num_active; 
     500typedef boost::function<void (wpath path, boost::shared_ptr<file_details_vec> files)> remove_files; 
    500501typedef std::pair<wstring, wstring> wstring_pair; 
    501502typedef std::pair<float, float> float_pair; 
     
    725726        void add_torrent(boost::filesystem::wpath file, boost::filesystem::wpath saveDirectory,  
    726727                bool startPaused=false, bool managed=false, allocations alloc=hal::bit::sparse_allocation,  
    727                 boost::filesystem::wpath moveToDirectory=L"", bool useMoveTo=false); 
     728                boost::filesystem::wpath moveToDirectory=L""); 
    728729         
    729730        void get_all_peer_details(const std::string& filename, peer_details_vec& peerContainer); 
     
    762763 
    763764        template<typename S> 
    764         void remove_torrent_wipe_files(S filename) 
     765        void remove_torrent_wipe_files(S filename, remove_files fn) 
    765766        {  
    766                 remove_torrent_wipe_files_wstr(to_wstr_shim(filename));  
     767                remove_torrent_wipe_files_wstr(to_wstr_shim(filename), fn);  
    767768        }        
    768769 
     
    788789         
    789790        void remove_torrent_wstr(const std::wstring& filename); 
    790         void remove_torrent_wipe_files_wstr(const std::wstring&  filename); 
     791        void remove_torrent_wipe_files_wstr(const std::wstring&  filename, remove_files fn); 
    791792         
    792793        torrent_details_manager torrentDetails_; 
Note: See TracChangeset for help on using the changeset viewer.