installationservices/swi/source/swis/server/installswtypehelper.h
author Simon Howkins <simonh@symbian.org>
Mon, 22 Nov 2010 12:04:39 +0000
branchRCL_3
changeset 84 e6c5e34cd9b9
parent 66 8b7f4e561641
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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: 
* This file contains a set of functions used by the installation and restore processors.
* These functions simplify registration of a Layered Execution Environment.
*
*/


/**
 @file
 @internalTechnology
 @released
*/

#ifndef INSTALLSWTYPEHELPER_H
#define INSTALLSWTYPEHELPER_H

#include <e32std.h>

namespace Swi 
	{
	class CSoftwareTypeRegInfo;
	
	namespace InstallSoftwareTypeHelper
		{
		/**
		Indicates if a file is an XML registration file of a software type.
		@param aFileName The file to be examined.
		@param The uid of a component being installed.
		@return ETrue if the files has been recognized as a registration file, EFalse otherwise.
		*/
		TBool IsValidSwRegFileL(const TDesC& aFileName, TInt32 aAppUid);

		/**
		Parses an XML registration file of a software type.
		@param aFs The handle to the file server session
		@param aFileName The file name of an XML file to be parsed.
		@param aInfoArray The output array of registration info objects read from the aFileName.
		*/
		void ParseRegFileL(RFs& aFs, const TDesC& aFileName, RPointerArray<CSoftwareTypeRegInfo>& aInfoArray);

		/**
		Registers software type MIME types to the AppArc. Each Layered Execution Environment must register its
		MIME types so the SifLauncher may handle installation requests.
		@param aInfoArray The array of registration info objects describing new software types to be registered.
		*/
		void RegisterMimeTypesL(const RPointerArray<CSoftwareTypeRegInfo>& aInfoArray);
		}
	}

#endif // INSTALLSWTYPEHELPER_H