Show
Ignore:
Timestamp:
03/15/10 14:31:50 (2 years ago)
Author:
rakshasa
Message:

* Cleaned up torrent/download.h.

* Removed raw_value as it is redundant.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/torrent/download.h

    r1144 r1145  
    9393  bool                is_valid() const { return m_ptr; } 
    9494 
    95 //   bool                is_open() const; 
    96 //   bool                is_active() const; 
    97  
    9895  bool                is_hash_checked() const; 
    9996  bool                is_hash_checking() const; 
    10097 
    101 //   bool                is_private() const; 
    102 //   bool                is_pex_active() const; 
    103 //   bool                is_pex_enabled() const; 
    10498  void                set_pex_enabled(bool enabled); 
    105  
    106 //   bool                is_meta_download() const; 
    107  
    108   // Returns "" if the object is not valid. 
    109   const std::string&  name() const; 
    110  
    111   const HashString&   info_hash() const; 
    112   const HashString&   info_hash_obfuscated() const; 
    113   const HashString&   local_id() const; 
    114  
    115   // Unix epoche, 0 == unknown. 
    116   uint32_t            creation_date() const; 
    117   uint32_t            load_date() const; 
    11899 
    119100  Object*             bencode(); 
     
    129110  ConnectionList*       connection_list(); 
    130111  const ConnectionList* connection_list() const; 
    131  
    132   // Remove the old non-const versions. 
    133   Rate*               down_rate(); 
    134   const Rate*         down_rate() const; 
    135   Rate*               mutable_down_rate(); 
    136  
    137   Rate*               up_rate(); 
    138   const Rate*         up_rate() const; 
    139   Rate*               mutable_up_rate(); 
    140  
    141   Rate*               skip_rate(); 
    142   const Rate*         skip_rate() const; 
    143   Rate*               mutable_skip_rate(); 
    144112 
    145113  // Bytes completed.