installationservices/swi/inc/sisregistrywritablesession.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
     1 /*
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    28 
    28 
    29 #include <e32std.h>
    29 #include <e32std.h>
    30 #include "sisregistrysession.h"
    30 #include "sisregistrysession.h"
    31 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
    31 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
    32 #include <usif/usifcommon.h>
    32 #include <usif/usifcommon.h>
    33 #include <usif/scr/appregentries.h>
       
    34 #include <usif/scr/screntries_platform.h>
       
    35 #endif
    33 #endif
    36 namespace Swi
    34 namespace Swi
    37 {
    35 {
    38 
       
    39 class CApplication;
    36 class CApplication;
    40 class CSisRegistryPackage;
    37 class CSisRegistryPackage;
    41 
    38 
    42 namespace Sis
    39 namespace Sis
    43 	{
    40 	{
   178 	*
   175 	*
   179 	* @param aComponentId		Identifies the installed component, which is to be deactivated.
   176 	* @param aComponentId		Identifies the installed component, which is to be deactivated.
   180 	*
   177 	*
   181 	*/
   178 	*/
   182 	IMPORT_C void DeactivateComponentL(TComponentId aComponentId);
   179 	IMPORT_C void DeactivateComponentL(TComponentId aComponentId);
   183 	
       
   184 	/**
       
   185     * Sets the component presence property for a given component id (If a package contains files 
       
   186     * installed to a removable media, the package is considered as not fully present if the same
       
   187     * media is not present. This property will be used to filter out applications, that are not
       
   188     * fully present, from being diaplayed in the AppLib Menu.).
       
   189     *
       
   190     * @param aComponentId       Identifies a installed component
       
   191     * @param aState             True, if the component is fully present, else False.
       
   192     *
       
   193     */
       
   194 	IMPORT_C void SetComponentPresenceL(TComponentId aComponentId, TBool aState);
       
   195 
   180 
   196 	/**
   181 	/**
   197 	 * Adds a registry entry representing a package containing a Layered Execution Environment
   182 	 * Adds a registry entry representing a package containing a Layered Execution Environment
   198 	 *
   183 	 *
   199 	 * @param aApplication The application description provided by Swi
   184 	 * @param aApplication The application description provided by Swi
   200 	 * @param aController The controller in a buffer
   185 	 * @param aController The controller in a buffer
   201 	 * @param aSwTypeRegInfoArray The array of the software types to be registered
   186 	 * @param aSwTypeRegInfoArray The array of the software types to be registered
   202 	 * @param aTransactionID The TransactionID for IntegrityServices provided by Swis of TInt64 type
   187 	 * @param aTransactionID The TransactionID for IntegrityServices provided by Swis of TInt64 type
   203 	 *
   188 	 *
   204 	 */
   189 	 */
   205 	IMPORT_C void AddEntryL(const CApplication& aApplication, const TDesC8& aController, const RPointerArray<Usif::CSoftwareTypeRegInfo>& aSwTypeRegInfoArray, TInt64 aTransactionID);
   190 	IMPORT_C void AddEntryL(const CApplication& aApplication, const TDesC8& aController, const RPointerArray<CSoftwareTypeRegInfo>& aSwTypeRegInfoArray, TInt64 aTransactionID);
   206 
   191 
   207 	/**
   192 	/**
   208 	 * Updates the registry entry representing a package containing a Layered Execution Environment.
   193 	 * Updates the registry entry representing a package containing a Layered Execution Environment.
   209 	 * The SISRegistryServer checks if the registration info passed in aSwTypeRegInfoArray matches
   194 	 * The SISRegistryServer checks if the registration info passed in aSwTypeRegInfoArray matches
   210 	 * the data passed during the installation of the base package. If they differ the installation terinates.
   195 	 * the data passed during the installation of the base package. If they differ the installation terinates.
   214 	 * @param aController The controller in a buffer
   199 	 * @param aController The controller in a buffer
   215 	 * @param aSwTypeRegInfoArray The array of the software types to be verified against the already registered base package
   200 	 * @param aSwTypeRegInfoArray The array of the software types to be verified against the already registered base package
   216 	 * @param aTransactionID The TransactionID for IntegrityServices provided by Swis of TInt64 type
   201 	 * @param aTransactionID The TransactionID for IntegrityServices provided by Swis of TInt64 type
   217 	 *
   202 	 *
   218 	 */
   203 	 */
   219 	IMPORT_C void UpdateEntryL(const CApplication& aApplication, const TDesC8& aController, const RPointerArray<Usif::CSoftwareTypeRegInfo>& aSwTypeRegInfoArray, TInt64 aTransactionID);
   204 	IMPORT_C void UpdateEntryL(const CApplication& aApplication, const TDesC8& aController, const RPointerArray<CSoftwareTypeRegInfo>& aSwTypeRegInfoArray, TInt64 aTransactionID);
   220 
   205 
   221 	IMPORT_C void AddEntryL(const Usif::CApplicationRegistrationData& aApparcRegFileData, const CSisRegistryPackage& aSisRegistryPackage);
       
   222 	IMPORT_C void UpdateEntryL(const CApplication& aApplication, const Usif::CApplicationRegistrationData& aApparcRegFileData, const CSisRegistryPackage& aSisRegistryPackage);
       
   223 private:
   206 private:
   224 	void SetComponentStateL(TComponentId aComponentId, TScomoState aState);
   207 	void SetComponentStateL(TComponentId aComponentId, TScomoState aState);
   225 	TInt UserSelectedLanguageIndexL(const CApplication& aApplication) const;
       
   226 #endif
   208 #endif
   227 	void AddEntryImplL(TInt aMessage, const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID, TIpcArgs& aIpcArgs);
   209 	void AddEntryImplL(TInt aMessage, const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID, TIpcArgs& aIpcArgs);
   228 	void UpdateEntryImplL(TInt aMessage, const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID, TIpcArgs& aIpcArgs);
   210 	void UpdateEntryImplL(TInt aMessage, const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID, TIpcArgs& aIpcArgs);
   229 	};
   211 	};
   230 
   212