<?xml version="1.0" encoding="utf-8"?>
<!--
//
// Copyright (2007) Debajyoti Bera
// Copyright (2007) Nirbheek Chauhan
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
-->

<!-- 
	Notes about this xml file:
	- `Category/@Name` is the div id under which the Hit which matches will be put
	- The order of each `Category` node is how they'll be displayed in <div id="topbar"> and <div id="results">
	- Hits are matched in the following way:
	  (! match any of the <NotType>s) && (match any one of the <Type>s)
	- The classification has been kept extremely simple/limited on purpose to make classification easy
	- Each <Type> must be unique across Categories (ie, it must not be repeated. Ever.)
	- <NotType> is used to exclude Hits from a Category, all of them *must* be listed first
		 * That <NotType> should ideally come up as a <Type> for some other Category
		 * Though if it doesn't, the code(javascript/xsl) *should* put it into "Others"
-->

<Mappings>

<Categories>
	<Category Name="Documents">
		<NotType Key="beagle:HitType" Value="MailMessage"/>
		<NotType Key="beagle:HitType" Value="WebHistory"/>
		<Type Key="beagle:FileType" Value="document"/>
		<Type Key="beagle:FileType" Value="archive"/>
		<Type Key="beagle:FileType" Value="source"/>
		<Type Key="beagle:HitType" Value="Note"/>
	</Category>
	<Category Name="Images">
		<Type Key="beagle:FileType" Value="image"/>
	</Category>
	<Category Name="Media">
		<Type Key="beagle:FileType" Value="audio"/>
		<Type Key="beagle:FileType" Value="video"/>
	</Category>
	<Category Name="Mail">
		<Type Key="beagle:HitType" Value="MailMessage"/>
	</Category>
	<Category Name="IM Logs">
		<Type Key="beagle:HitType" Value="IMLog"/>
	</Category>
	<Category Name="Websites">
		<Type Key="beagle:HitType" Value="WebHistory"/>
		<Type Key="beagle:HitType" Value="Bookmark"/>
		<Type Key="beagle:HitType" Value="FeedItem"/>
	</Category>
	<Category Name="Others">
		<Type Key="beagle:FileType" Value="directory"/>
	</Category>
</Categories>

</Mappings>
