installationservices/swi/inc/swi/siscontroller.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
    31 #include "sisfield.h"
    31 #include "sisfield.h"
    32 #include "sisdataindex.h"
    32 #include "sisdataindex.h"
    33 #include "sissignaturecertificatechain.h"
    33 #include "sissignaturecertificatechain.h"
    34 #include "sispackagetrust.h"
    34 #include "sispackagetrust.h"
    35 #include <hash.h>
    35 #include <hash.h>
    36 #include "nativecomponentinfo.h"
       
    37 
    36 
    38 namespace Swi
    37 namespace Swi
    39 {
    38 {
    40 
    39 
    41 class TSisTrustStatus;
    40 class TSisTrustStatus;
    42 class CCertChainConstraints;
    41 class CCertChainConstraints;
    43 
    42 
    44 namespace Sis
    43 namespace Sis
    45 {
    44  {
    46 
    45 
    47 class CInfo;
    46 class CInfo;
    48 class CPrerequisites;
    47 class CPrerequisites;
    49 class CSupportedLanguages;
    48 class CSupportedLanguages;
    50 class CSupportedOptions;
    49 class CSupportedOptions;
   319 	/** Sets the status of flag 
   318 	/** Sets the status of flag 
   320 	 @param aHasExe TBool
   319 	 @param aHasExe TBool
   321     */
   320     */
   322 	inline void SetHasExecutable(TBool aHasExe);
   321 	inline void SetHasExecutable(TBool aHasExe);
   323 	
   322 	
   324 	/** Returns a flag 
   323 	#endif
   325 	@return iIsDriveSelectionRequired TBool flag
       
   326 	*/
       
   327 	inline TBool CController::DriveSelectionRequired() const;
       
   328 	
       
   329 	/** Sets the status of flag 
       
   330 	@param aIsDriveSelectionRequired TBool
       
   331     */
       
   332     inline void CController::SetDriveSelectionRequired(TBool aIsDriveSelectionRequired);
       
   333 	
       
   334 	/** Returns a pointer array of CNativeApplicationInfo 
       
   335 	@return RPointerArray iApplicationInfo
       
   336 	*/
       
   337     inline RCPointerArray<CNativeComponentInfo::CNativeApplicationInfo>& CController::GetApplicationInfo();
       
   338 	
       
   339     /** Adds the application Info to the array of CNativeApplicationInfo 
       
   340 	@param aApplicationInfo The info for a native application
       
   341 	*/
       
   342     inline void CController::AddApplicationInfoL(const CNativeComponentInfo::CNativeApplicationInfo* aApplicationInfo);
       
   343     
       
   344     #endif
       
   345 	
   324 	
   346 private:
   325 private:
   347 
   326 
   348 	CController();
   327 	CController();
   349 
   328 
   391 	
   370 	
   392 	CCertChainConstraints* iCertChainConstraints;
   371 	CCertChainConstraints* iCertChainConstraints;
   393 	
   372 	
   394 	TBool iHasExe;						   ///< Indicates Whether the component has an exe or not
   373 	TBool iHasExe;						   ///< Indicates Whether the component has an exe or not
   395 	
   374 	
   396 	TBool iIsDriveSelectionRequired;       ///< Indicates Whether drive selection is required or not.
       
   397 		
       
   398 	mutable TSisTrustStatus* iTrustStatus; ///< The install trust status
   375 	mutable TSisTrustStatus* iTrustStatus; ///< The install trust status
   399 
   376 
   400     mutable RArray<TInt> iCertChainIndices; ///< Contains the indexes of the chains
   377     mutable RArray<TInt> iCertChainIndices; ///< Contains the indexes of the chains
   401                                             ///< check for revocation at install time
   378                                             ///< check for revocation at install time
   402 	mutable TInt iRemoveWithLastDependent;  ///< Whether uninstall with last dependent
   379 	mutable TInt iRemoveWithLastDependent;  ///< Whether uninstall with last dependent
   403 	
   380 	
   404 	#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   381 	#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
   405 	RCPointerArray<CNativeComponentInfo::CNativeApplicationInfo> iApplicationInfo;  ///< Pointer Array of application info objects CNativeApplicationInfo.
       
   406 	TCapabilitySet iUserGrantableCapabilities;
   382 	TCapabilitySet iUserGrantableCapabilities;
   407 	#endif
   383 	#endif
   408 	
   384 	
   409 	};
   385 	};
   410 
   386 
   503 
   479 
   504 inline void CController::SetHasExecutable(TBool aHasExe)
   480 inline void CController::SetHasExecutable(TBool aHasExe)
   505 	{
   481 	{
   506 	iHasExe = aHasExe;
   482 	iHasExe = aHasExe;
   507 	}
   483 	}
   508 
       
   509 inline TBool CController::DriveSelectionRequired() const
       
   510     {
       
   511     return iIsDriveSelectionRequired;
       
   512     }
       
   513 
       
   514 inline void CController::SetDriveSelectionRequired(TBool aIsDriveSelectionRequired)
       
   515     {
       
   516     iIsDriveSelectionRequired = aIsDriveSelectionRequired;
       
   517     }
       
   518 
       
   519 inline RCPointerArray<CNativeComponentInfo::CNativeApplicationInfo>& CController::GetApplicationInfo()
       
   520     {
       
   521     return iApplicationInfo;
       
   522     }
       
   523 
       
   524 inline void CController::AddApplicationInfoL(const CNativeComponentInfo::CNativeApplicationInfo* aApplicationInfo)
       
   525     {
       
   526     iApplicationInfo.AppendL(aApplicationInfo);
       
   527     }
       
   528 
       
   529 #endif
   484 #endif
   530 
   485 
   531 } // namespace Sis
   486  } // namespace Sis
   532 
   487 
   533 } // namespace Swi
   488 } // namespace Swi
   534 
   489 
   535 #endif
   490 #endif