Show
Ignore:
Timestamp:
12/29/07 23:43:05 (4 years ago)
Author:
rakshasa
Message:

* Properly use d.set_directory_base when

* Added get_{up,down}_{rate,total}.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/src/utils/directory.h

    r1022 r1023  
    4444 
    4545struct directory_entry { 
     46  // Fix. 
     47  bool is_file() const { return true; } 
     48 
    4649  // The name and types should match POSIX. 
    4750  uint32_t            d_fileno; 
     
    7275  using base_type::erase; 
    7376 
     77  static const uint32_t buffer_size = 64 * 1024; 
     78 
     79  static const int update_sort     = 0x1; 
     80  static const int update_hide_dot = 0x2; 
     81 
    7482  Directory() {} 
    7583  Directory(const std::string& path) : m_path(path) {} 
     
    7785  bool                is_valid() const; 
    7886 
    79   bool                update(bool hideDot = true); 
    80  
    81   // Ergh... 
    82   const std::string&  get_path() { return m_path; } 
     87  const std::string&  path()                            { return m_path; } 
    8388  void                set_path(const std::string& path) { m_path = path; } 
    8489 
    85   // Make a list with full path names. 
    86   // 
    87   // Fix the uses of this, real bad stuff. 
    88   std::vector<std::string> make_list(); 
     90  bool                update(int flags); 
    8991 
    9092private: