// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#include <ecom/registryinfo.rh>
#include <mmfplugininterfaceuids.hrh>
#include <mmfformatimplementationuids.hrh>
#include "MP3Uids.hrh"

RESOURCE REGISTRY_INFO theInfo
	{
	dll_uid = KUidMP3DllFormat;
	interfaces = 
		{
		INTERFACE_INFO
			{
			interface_uid = KMmfUidPluginInterfaceFormatDecode;    
			implementations = 
				{
				IMPLEMENTATION_INFO
					{
					implementation_uid = KUidMP3ImplementationFormat;  
					version_no = 1;
					display_name = "MP3 Raw Read Format||Copyright 2003 Symbian Ltd. All Rights Reserved.||";
					// KMmfUidControllerAudio = 0x101F5022
					default_data = "0x101f5022"; //Preferred Controller
					// KUidMediaTypeAudio = 0x101F5D07
					// match by extension only
					opaque_data = "<s>Symbian<i>0x101f5d07<e>.mp3<m>audio/mp3<m>audio/x-mp3";
					}
				};
			},
		INTERFACE_INFO
			{
			interface_uid = KMmfUidPluginInterfaceFormatDecode;    
			implementations = 
				{
				IMPLEMENTATION_INFO
					{
					implementation_uid = KUidMP3ImplementationFormatID3;
					version_no = 1;
					display_name = "MP3 ID3 Read Format||Copyright 2003 Symbian Ltd. All Rights Reserved.||";
					// KMmfUidControllerAudio = 0x101F5022
					default_data = "0x101f5022"; //Preferred Controller
					// match by ID3 header & extension
					opaque_data = "<s>Symbian<i>0x101f5d07<e>.mp3<h>ID3?????????<m>audio/mp3<m>audio/x-mp3";
					}
				};
			},
		INTERFACE_INFO
			{
			interface_uid = KMmfUidPluginInterfaceFormatDecode;    
			implementations = 
				{
				IMPLEMENTATION_INFO
					{
					implementation_uid = KUidMP3ImplementationFormatWAV;
					version_no = 1;
					display_name = "MP3 WAV Read Format||Copyright 2003 Symbian Ltd. All Rights Reserved.||";

					// KMmfUidControllerAudio = 0x101F5022
					default_data = "?"; //Preferred Controller
					
					// KUidMediaTypeAudio = 0x101F5D07
					// match by header & extension - for testing
					// (need to report a wav mime type so that it gets picked up by the audio app)
					// opaque_data = "<s>Symbian<i>0x101f5d07<e>.mp3<h>ID3?????????<h>RIFF????WAVE<m>audio/wav<m>audio/x-wav";
					
					// match by WAV header & extension
					opaque_data = "<s>Symbian<i>0x101f5d07<e>.wav<h>RIFF????WAVE<m>audio/wav<m>audio/x-wav";
					}
				};
			}
		};
	}

