diff -r 000000000000 -r ba25891c3a9e installationservices/swi/source/swis/server/installswtypehelper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/installationservices/swi/source/swis/server/installswtypehelper.h Thu Dec 17 08:51:10 2009 +0200 @@ -0,0 +1,63 @@ +/* +* 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 + +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& 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& aInfoArray); + } + } + +#endif // INSTALLSWTYPEHELPER_H