<?xml version="1.0" encoding="UTF-8"?>
<!-- This is the Media Center restore file, used by the Customization
module. This file also serves as the documentation for Media Center's
registry settings.

There are three generic settings:

* "orientation"
  The value associated with this key should be an unsigned integer
  denoting what orientation Media Center should use:

  0 = Vertical orientation
  1 = Horizontal orientation

* "auto-rotate"
  This key should contain a boolean value indicating whether Media
  Center should use its auto-rotate feature. When auto-rotate is
  enabled, the orientation changes automatically as a result of the
  user moving the handset. Note that this key is ignored if the
  handset does not have a hardware accelerometer.
  
* "customization-updated"
  This key should contain a boolean indicating if the mainmenu has been
  updated with new elements or any change has been made to the existing
  elements. This is by default set to true.

There are two supported keys for the main menu:

* "order"
  This key is no longer set during customization. It is set after startup
  of the phone.
  This key should contain a string value, and this value should be a
  comma-separated list of the content providers that appear as part of
  the main menu (in the order they appear in this key). A content
  provider is identified by its unique identifier.

* "focus"
  This key should contain a string value, and denotes the unique
  identifier of the content provider that should have the initial
  focus (highlight). 
  
Under mainmenu a custom element can be added with the following look:
<CustomTagName>
  <visible>true</visible>
  <order type="str">1</order>
  <customized-order type="str">2</customized-order>
  <settings-menu>
    <visible>true</visible>
    <order type="str">1</order>
    <customized-order type="str">2</customized-order>
    <settings-cp-id>CustomTagName-settings</settings-cp-id>
  </settings-menu>
</CustomTagName>

* "CustomTagName"
  This element should have the same name as the Content Provider will have
  (i.e. PhotoAlbum or Music etc).
  
* "visible"
  This key should contain a boolean stating if the element should be visible
  or not.
  
* "order"
  This key should contain a string with a order value defining the order of
  the current element. This setting is only set in the restore XML file.
  To override this order setting please use customized-order.
  
* "customized-order"
  This key is set if the current element should have an other sort order than
  the default one. This key could be set from the CDA file.
  
* "settings-menu"
  This element can be added if the current Content Provider has a settings menu
  that should be visible under the Settings menu in Media Center. This element
  contains the same tags as the parent element does. It also has its own tag
  "settings-cp-id"
  
* "settings-cp-id"
  This key should be set if the Content Provider has a settings menu it wants
  to display under the settings menu. This key should have the name:
  "CustomTagName-settings" (i.e. "PhotoAlbum-settings")
  -->

<customization>
  <registry>
    <mediacenter>
      <settings reg-path="/apps/mediacenter">
        <orientation type="uint">0</orientation>
        <auto-rotate type="bool">true</auto-rotate>
        <customization-updated>true</customization-updated>
        <mainmenu>
          <!-- <main-order> should only be set as backup if parsing of the registry fails.
               If parsing succeeds then <main-order> will be overwritten during startup to 
               make sure it reflects the correct order specified in this file and the
               default.xml file and the customize.xml file set by the CDA. -->
          <main-order type="wstr">PhotoAlbum,Music,Videos,Games,WebFeeds,Settings</main-order>  

          <focus type="wstr">PhotoAlbum</focus>
          
          <PhotoAlbum>
            <visible>true</visible>
            <order type="str">1</order>
          </PhotoAlbum>
          
          <Music>
            <visible>true</visible>
            <order type="str">2</order>
          </Music>
          
          <Videos>
            <visible>true</visible>
            <order type="str">3</order>
          </Videos>
          
          <Games>
            <visible>true</visible>
            <order type="str">4</order>
          </Games>

          <MobileTV>
            <visible>false</visible>
            <order type="str">5</order>
          </MobileTV>
          
          <WebFeeds>
            <visible>true</visible>
            <order type="str">6</order>
          </WebFeeds>
          
          <Settings>
            <visible>true</visible>
            <order type="str">7</order>
          </Settings>
          
        </mainmenu>
      </settings>
    </mediacenter>
  </registry>
</customization>