<?xml version="1.0" encoding="iso-8859-1"?>
<customization>
  <registry>

    <!-- The following section covers the handling of master reset settings and master reset all -->
    <!-- *************************************************************************************** -->

    <!-- Do the following only at Master reset all -->
    <master-reset-all parse-mask="a">
      <!-- Clear all FTM keys -->
      <reg-op op="delete" reg-path="/apps/download"/>
    </master-reset-all>

    <!-- Do the following only at Master reset settings -->
    <master-reset-settings parse-mask="s">
      <!-- Clear all FTM keys -->
      <reg-op op="delete" reg-path="/apps/download"/>
    </master-reset-settings>

    <download>
      <settings reg-path="/apps/download">
        
        <!--  The maximum number of parallel downloads done by the DUA, if more downloads are requested they will be queued  -->
        <!--  Type: unsigned int  -->
        <!--  Customizable: No, GUI: No  -->
        <max-parallel-downloads type="uint">3</max-parallel-downloads>

        <!--  The maximum number of critical downloads the download user agent can run in parallel. -->
        <!--  The critical slots are dedicated to downloads that a client to DUA or Download User Agent rank as more important than normal downloads. -->
        <!--  A critical download can be a web feed the user wants to update and shall not be blocked due to a music download running in the background. -->
        <!--  The number of critical slots cannot be larger than the number of parallel slots. -->
        <!--  Type: unsigned int  -->
        <!--  Customizable: No, GUI: No  -->
        <max-critical-downloads type="uint">1</max-critical-downloads>
        
        <!--  The maximum number of download attemts that are done of a user-requested download. -->
        <!--  When this number has been reached the download will fail. -->
        <!--  Type: unsigned int  -->
        <!--  Customizable: No, GUI: No  -->
        <max-download-attempts type="uint">1</max-download-attempts>
        
        <!--  The behavior of playing progressive content if no behaviour is set in the download descriptor. -->
        <!--  Type: unsigned int  -->
        <!--    0 = Never play progressive -->
        <!--    1 = Ask user play progressive -->
        <!--    2 = Always play progressive -->
        <!--  Customizable: No, GUI: No  -->
        <progressive-start-behaviour type="uint">2</progressive-start-behaviour>

        <!-- Download Indication ? Duplicate File Exists  -->
        <!-- -->
        <!-- If true, search filesystem for already downloaded files -->
        <!-- with the same name and if one exists, display a dialog -->
        <!-- prompting the user whether to continue downloading the file. -->
        <!-- -->
        <!-- This is from an AT&T requirement to fullfill: -->
        <!-- "Vendors should ensure subscribers have some sort of download indication that includes Duplicate File Exists." -->
        <!-- -->
        <!--  Type: unsigned int  -->
        <!--    0 = Always download to a unique file name -->
        <!--    1 = Search for duplicate file. -->
        <!-- Customizable: Yes, GUI: Yes  -->
        <duplicate-file-exists-dialog type="uint">0</duplicate-file-exists-dialog>




        <!--  A flag to disable the internal handling of jad/jar files -->
        <!--  whithin the download_user_agent module. -->
        <!--  -->
        <!--  This flag has to be present to disable. -->
        <!--  -->
        <!--  Type: unsigned int  -->
        <!--    0 = Jad/Jar files are treated as all other files -->
        <!--    1 = Previous behavior -->
        <!--  Customizable: No, GUI: No  -->
        <!-- <oaf-java-installation type="uint">1</oaf-java-installation> -->

      </settings>

      <!-- Points out the Download use-case file -->
      <usecases reg-path="/apps/contenthandler/usecases">
        <usecase-download-protection>
          <path type="wstr">/tpa/preset/default/download-protection-usecase.xml</path>
        </usecase-download-protection>
      </usecases>
    </download>
  </registry>
</customization>
