code: function downloadManager_getAllDownloads() {
      var dbConn = this._dms.DBConnection;
      var stmt = null;
  
      if (dbConn.schemaVersion < 3)
        return new Array();
  
      // Run a SQL query and iterate through all results which have been found
      var downloads = [];
      stmt = dbConn.createStatement("SELECT * FROM moz_downloads");
      while (stmt.executeStep()) {
        downloads.push({
          id: stmt.row.id, name: stmt.row.name, target: stmt.row.target,
          tempPath: stmt.row.tempPath, startTime: stmt.row.startTime,
          endTime: stmt.row.endTime, state: stmt.row.state,
          referrer: stmt.row.referrer, entityID: stmt.row.entityID,
          currBytes: stmt.row.currBytes, maxBytes: stmt.row.maxBytes,
          mimeType : stmt.row.mimeType, autoResume: stmt.row.autoResume,
          preferredApplication: stmt.row.preferredApplication,
          preferredAction: stmt.row.preferredAction
        });
      };
      stmt.reset();
  
      return downloads;
    }
docs: Get the list of all downloaded files in the database
  
  @returns List of downloads
  @type {Array of download}