installationservices/swinstallationfw/common/inc/usifcommon.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * This header defines common USIF entities
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedAll
       
    23  @released
       
    24 */
       
    25 
       
    26 #ifndef USIFCOMMON_H
       
    27 #define USIFCOMMON_H
       
    28 
       
    29 #include <e32base.h>
       
    30 
       
    31 namespace Usif
       
    32 	{
       
    33 	/**
       
    34 		This enumeration defines the possible states of a software component. According to the SCOMO specification
       
    35 		a component may be Deactivated or Activated. New software components are activated during installation by
       
    36 		default. However, the 'InstallInactive' param can be passed to the SIF in order not to activated a newly installed
       
    37 		component. Please refer to the SIF API documentation for more details.
       
    38 	 */
       
    39 	enum TScomoState
       
    40 		{
       
    41 		EDeactivated = 0,
       
    42 		EActivated   = 1
       
    43 		};
       
    44 
       
    45 	/**
       
    46 		This enumeration defines the possible options for user dialogs. 
       
    47 		If EAllowed is selected then the response to the user option dialog is treated as 'Yes'
       
    48 		If ENotAllowed is selected then the response to the user option dialog is treated as 'No'
       
    49 		If EUserConfirm is selected then user option dialog is presented to the user.
       
    50 	*/
       
    51 	enum TSifPolicy
       
    52 		{
       
    53 		EAllowed		= 0,
       
    54 		ENotAllowed		= 1,
       
    55 		EUserConfirm	= 2
       
    56 		};
       
    57 
       
    58 	/**
       
    59 		TComponentId defines an instance of a software component in the Software Component Registry. Two different components cannot 
       
    60 		have the same id on the system, however, it is not global and different components may have the same component id
       
    61 		on separate devices.Please refer to @see GlobalId for a unique identifier for software components across different devices.
       
    62 	*/
       
    63 	typedef TInt TComponentId;
       
    64 	
       
    65 	/**
       
    66 		Pre-defined software type names for the Universal Software Install Framework. 
       
    67 		'native' stands for Symbian native components delivered in the SIS/SISX packages.
       
    68 		'java' stands for Java MIDlets.
       
    69 		'widget' stands for Widgets
       
    70 	*/
       
    71 	_LIT(KSoftwareTypeNative, "native");
       
    72 	_LIT(KSoftwareTypeJava, "java");
       
    73 	_LIT(KSoftwareTypeWidget, "widget");
       
    74 
       
    75 	
       
    76 	} // end namespace Usif
       
    77 
       
    78 #endif