installationservices/swi/inc/swi/nativecomponentinfo.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
child 25 98b66e4fb0be
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* 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 defines the component info structure of the Symbian native components.
*
*/


/**
 @file
 @internalTechnology
 @released
*/

#ifndef NATIVECOMPONENTINFO_H
#define NATIVECOMPONENTINFO_H

#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
#include <e32base.h>
#include <s32strm.h>
#include <usif/scr/scr.h>
#include <usif/sif/sifcommon.h>

namespace Swi
	{

	class CNativeComponentInfo : public CBase
		{
	public:
		/**
			Creates a new instance of the CNativeComponentInfo class.
			@leave System wide error code
		 */
		IMPORT_C static CNativeComponentInfo* NewL();

		/**
			Creates a new instance of the CNativeComponentInfo class.
			@leave System wide error code
		 */
		IMPORT_C static CNativeComponentInfo* NewLC();
		
		/**
			Destructor.
		*/
		IMPORT_C virtual ~CNativeComponentInfo();
		
		/**
		* Internalizes the object from the given read stream.
		*/
		IMPORT_C void InternalizeL(RReadStream& aStream);
		
		/**
		* Externalizes the object to the given write stream.
		*/		
		IMPORT_C void ExternalizeL(RWriteStream& aStream) const;

	private:
		// Constructor
		CNativeComponentInfo();

	public:		
		HBufC* iComponentName;							///< The name of the software component
		HBufC* iVersion;								///< The Version of the software component 
		HBufC* iVendor;									///< The of the vendor of the software component
		HBufC* iGlobalComponentId;						///< The global id of the component if already installed
		Usif::TScomoState iScomoState;					///< The SCOMO status of the component
		Usif::TInstallStatus iInstallStatus;			///< Informs whether the component is already installed or upgradeable
		Usif::TComponentId iComponentId;				///< The unique id of the component if already installed
		Usif::TAuthenticity iAuthenticity;				///< The authenticity of the component
		TCapabilitySet iUserGrantableCaps;				///< User grantable capabilities required be the component
		TInt iMaxInstalledSize;							///< The maximum size of the component after installation
		TBool iHasExe;									///<Indicates Whether the component has an exe or not						
		RCPointerArray<CNativeComponentInfo> iChildren;	///< The children component info, incase of embedded packages.	
	
		};	
	} // nameSpace Swi
#endif // SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
#endif // NATIVECOMPONENTINFO_H