Changeset 32

Show
Ignore:
Timestamp:
2007-01-16 13:24:34 (2 years ago)
Author:
MaierMan
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/down.js

    r29 r32  
    2323const FileFactory = new Components.Constructor("@mozilla.org/file/local;1", "nsILocalFile", "initWithPath"); 
    2424 
     25var downPrefs = { 
     26         
     27 
     28}; 
     29 
    2530var Prefs = { 
    2631        // default values 
     
    8691var Stats = { 
    8792        totalDownloads : 0, 
    88         completedDownloads : 0, 
     93         
     94        // Debug this crap, 
     95        _completedDownloads : 0, 
     96        get completedDownloads() : { return this._completedDownloads; }, 
     97        set completedDownloads(nv) : { if (--this._completedDownloads < 0) { throw "Stats::Completed downloads less than 1"; } }, 
     98         
    8999        zippedToWait : 0, 
    90100        downloadedBytes : 0, 
     
    92102} 
    93103 
    94 function URLManager(urls) 
    95 
     104function URLManager(urls) { 
    96105        this._urls = []; 
    97106        this._idx = 0; 
  • trunk/chrome/content/dta/overlayFunctions.js

    r25 r32  
    4040                        return def; 
    4141                } 
     42        }, 
     43        getDTA: function DP_getDTA(key, def) { 
     44                return this._get('extensions.dta' + key, def); 
    4245        }, 
    4346        set : function(key, value) { 
  • trunk/install.rdf

    r17 r32  
    33        <rdf:Description about="urn:mozilla:install-manifest"> 
    44                 
    5                 <id>{DDC359D1-844A-42a7-9AA1-88A850A938A8}</id> 
     5                <id>dtamod@tn123.ath.cx</id> 
    66                <name>DownThemAll! Mod</name> 
    77                <description>The mass downloader for Firefox.</description> 
     8                <version>0.5</version> 
    89                 
    910                <creator>Nils Maier</creator> 
    10                 <contributor>Federico Parodi</contributor> 
    11                 <contributor>Stefano Verna</contributor> 
    12                 <version>0.5</version> 
     11                <developer>Federico Parodi</developer> 
     12                <developer>Stefano Verna</developer> 
    1313                 
    1414                <!--<aboutURL>chrome://dta/content/about/about.xul</aboutURL>-->