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/rtorrent/src/ui/download.cc

    r1144 r1145  
    150150  // Get these bindings with some kind of string map. 
    151151 
    152   element->push_column("Name:",             te_command("d.get_name=")); 
    153   element->push_column("Local id:",         te_command("d.get_local_id_html=")); 
    154   element->push_column("Info hash:",        te_command("d.get_hash=")); 
    155   element->push_column("Created:",          te_command("cat=$to_date=$d.get_creation_date=,\" \",$to_time=$d.get_creation_date=")); 
     152  element->push_column("Name:",             te_command("d.name=")); 
     153  element->push_column("Local id:",         te_command("d.local_id_html=")); 
     154  element->push_column("Info hash:",        te_command("d.hash=")); 
     155  element->push_column("Created:",          te_command("cat=$to_date=$d.creation_date=,\" \",$to_time=$d.creation_date=")); 
    156156 
    157157  element->push_back(""); 
    158158  element->push_column("Directory:",        te_command("d.get_directory=")); 
    159   element->push_column("Base Path:",        te_command("d.get_base_path=")); 
     159  element->push_column("Base Path:",        te_command("d.base_path=")); 
    160160  element->push_column("Tied to file:",     te_command("d.get_tied_to_file=")); 
    161161  element->push_column("File stats:",       te_command("cat=$if=$d.is_multi_file=\\,multi\\,single,\" \",$d.get_size_files=,\" files\"")); 
     
    192192 
    193193  element->push_back(""); 
    194   element->push_column("Upload:",           te_command("cat=$to_kb=$d.get_up_rate=,\" KB / \",$to_xb=$d.get_up_total=")); 
    195   element->push_column("Download:",         te_command("cat=$to_kb=$d.get_down_rate=,\" KB / \",$to_xb=$d.get_down_total=")); 
    196   element->push_column("Skipped:",          te_command("cat=$to_kb=$d.get_skip_rate=,\" KB / \",$to_xb=$d.get_skip_total=")); 
     194  element->push_column("Upload:",           te_command("cat=$to_kb=$d.up.rate=,\" KB / \",$to_xb=$d.up.total=")); 
     195  element->push_column("Download:",         te_command("cat=$to_kb=$d.down.rate=,\" KB / \",$to_xb=$d.down.total=")); 
     196  element->push_column("Skipped:",          te_command("cat=$to_kb=$d.skip.rate=,\" KB / \",$to_xb=$d.skip.total=")); 
    197197  element->push_column("Preload:",          te_command("cat=$pieces.preload.type=,\" / \",$pieces.stats_preloaded=,\" / \",$pieces.stats_preloaded=")); 
    198198 
     
    290290  switch (displayType) { 
    291291  case DISPLAY_MAX_SIZE: break; 
    292   default: control->ui()->window_title()->set_title(m_download->download()->name()); break; 
     292  default: control->ui()->window_title()->set_title(m_download->info()->name()); break; 
    293293  } 
    294294