installationservices/swinstallationfw/common/inc/usifcommon.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:33:35 +0200
changeset 24 84a16765cd86
child 25 98b66e4fb0be
permissions -rw-r--r--
Revision: 201007 Kit: 201011

/*
* 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 header defines common USIF entities
*
*/


/**
 @file
 @publishedAll
 @released
*/

#ifndef USIFCOMMON_H
#define USIFCOMMON_H

#include <e32base.h>

namespace Usif
	{
	/**
		This enumeration defines the possible states of a software component. According to the SCOMO specification
		a component may be Deactivated or Activated. New software components are activated during installation by
		default. However, the 'InstallInactive' param can be passed to the SIF in order not to activated a newly installed
		component. Please refer to the SIF API documentation for more details.
	 */
	enum TScomoState
		{
		EDeactivated = 0,
		EActivated   = 1
		};

	/**
		TComponentId defines an instance of a software component in the Software Component Registry. Two different components cannot 
		have the same id on the system, however, it is not global and different components may have the same component id
		on separate devices.Please refer to @see GlobalId for a unique identifier for software components across different devices.
	*/
	typedef TInt TComponentId;

	
	/**
		Pre-defined software type names for the Universal Software Install Framework. 
		'native' stands for Symbian native components delivered in the SIS/SISX packages.
		'java' stands for Java MIDlets.
	*/
	_LIT(KSoftwareTypeNative, "native");
	_LIT(KSoftwareTypeJava, "java");
	
	} // end namespace Usif

#endif