connectivitymodules/SeCon/services/pcd/inc/sconinstaller.h
changeset 40 b63e67867dcd
parent 19 2691f6aa1921
child 64 a62b67d1f67c
equal deleted inserted replaced
39:9905f7d46607 40:b63e67867dcd
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include <e32cons.h>
    25 #include <e32cons.h>
    26 #include <SWInstApi.h>
    26 #include <usif/sif/sif.h>
    27 
    27 
    28 #include "sconinstqueue.h"
    28 #include "sconinstqueue.h"
    29 
    29 
    30 class CSConUninstall;
    30 class CSConUninstall;
    31 
    31 
    33 // Class CSConAppInstaller declaration
    33 // Class CSConAppInstaller declaration
    34 //============================================================	
    34 //============================================================	
    35 NONSHARABLE_CLASS ( CSConAppInstaller ): public CActive
    35 NONSHARABLE_CLASS ( CSConAppInstaller ): public CActive
    36 	{
    36 	{
    37 	public:
    37 	public:
    38 		/**
    38         /**
    39 		 * Constructor
    39          * Constructor
    40 		 * @param aQueue The address of CSConInstallerQueu
    40          * @param aQueue The address of CSConInstallerQueu
    41     	 * @return none
    41          * @return none
    42 		 */
    42          */
    43 		CSConAppInstaller( CSConInstallerQueue* aQueue, RFs& aFs );
    43         static CSConAppInstaller* NewL( CSConInstallerQueue* aQueue, RFs& aFs );
    44 		
    44 		
    45 		/**
    45 		/**
    46 		 * Destructor
    46 		 * Destructor
    47 		 * @return none
    47 		 * @return none
    48 		 */
    48 		 */
    66 		 */
    66 		 */
    67 		TBool InstallerActive() const;
    67 		TBool InstallerActive() const;
    68 		
    68 		
    69 	private:
    69 	private:
    70 		/**
    70 		/**
       
    71          * Constructor
       
    72          * @param aQueue The address of CSConInstallerQueu
       
    73          * @return none
       
    74          */
       
    75         CSConAppInstaller( CSConInstallerQueue* aQueue, RFs& aFs );
       
    76         
       
    77 		void ConstructL();
       
    78 		/**
    71 		 * Implementation of CActive::DoCancel()
    79 		 * Implementation of CActive::DoCancel()
    72 		 * @return none
    80 		 * @return none
    73 		 */
    81 		 */
    74 		void DoCancel();
    82 		void DoCancel();
    75 		/**
    83 		/**
    76 		 * Implementation of CActive::RunL()
    84 		 * Implementation of CActive::RunL()
    77 		 * @return none
    85 		 * @return none
    78 		 */
    86 		 */
    79 		void RunL();
    87 		void RunL();
       
    88 		
       
    89 		void WriteTaskDataL( CSConTask& aTask );
       
    90 		
       
    91 		void ExternalizeResultArrayIntValL( const TDesC& aName, RWriteStream& aStream );
       
    92 		void ExternalizeResultIntValL( const TDesC& aName, RWriteStream& aStream );
       
    93 		void ExternalizeResultStringValL( const TDesC& aName, RWriteStream& aStream );
    80 		/**
    94 		/**
    81 		 * Executes ListInstalledApps task
    95 		 * Executes ListInstalledApps task
    82 		 * @return none
    96 		 * @return none
    83 		 */
    97 		 */
    84 		void ProcessListInstalledAppsL();
    98 		void ProcessListInstalledAppsL();
    85 		/**
    99 		/**
    86 		 * Execures UnInstall task
   100          * Executes Install task
       
   101          * @param CSConInstall install params
       
   102          * @return none
       
   103          */
       
   104         void ProcessInstallL( const CSConInstall& aInstallParams );
       
   105 		/**
       
   106 		 * Executes UnInstall task
    87 		 * @param CSConUninstall uninstall params
   107 		 * @param CSConUninstall uninstall params
    88     	 * @return none
   108     	 * @return none
    89 		 */
   109 		 */
    90 		void ProcessUninstallL( const CSConUninstall& aUninstallParams );
   110 		void ProcessUninstallL( const CSConUninstall& aUninstallParams );
    91 		
   111 		
    92 		void UninstallSisL( const CSConUninstall& aUninstallParams );
   112 		//void UninstallSisL( const CSConUninstall& aUninstallParams );
    93 		void UninstallJavaL( const TUid& aUid, const TSConInstallMode aMode );
   113 		//void UninstallJavaL( const TUid& aUid, const TSConInstallMode aMode );
    94 		void UninstallWidget( const TUid& aUid, const TSConInstallMode aMode );
   114 		//void UninstallWidget( const TUid& aUid, const TSConInstallMode aMode );
    95 		void DeleteFile( const TDesC& aPath );
   115 		void DeleteFile( const TDesC& aPath );
    96 		
   116 		
    97 	private:
   117 	private:
    98 	    enum TInstallerState
   118 	    enum TInstallerState
    99 	        {
   119 	        {
   104 	        ESilentUninstalling,
   124 	        ESilentUninstalling,
   105 	        ECustomUninstalling,
   125 	        ECustomUninstalling,
   106 	        ESilentCustomUnistalling,
   126 	        ESilentCustomUnistalling,
   107 	        EListingInstalledApps
   127 	        EListingInstalledApps
   108 	        };
   128 	        };
   109 	    TInstallerState                 iInstallerState;
   129 	    //TInstallerState                 iInstallerState;
   110 		CSConInstallerQueue*			iQueue; // Not owned
   130 		CSConInstallerQueue*			iQueue; // Not owned
   111 		SwiUI::RSWInstLauncher			iSWInst;
   131 		//SwiUI::RSWInstLauncher			iSWInst;
   112 		SwiUI::TInstallOptions          iOptions;
   132 		//SwiUI::TInstallOptions          iOptions;
   113         SwiUI::TInstallOptionsPckg      iOptionsPckg;   
   133         //SwiUI::TInstallOptionsPckg      iOptionsPckg;   
       
   134 		Usif::RSoftwareInstall          iSwInstaller;
       
   135 		Usif::COpaqueNamedParams*       iSifOptions;
       
   136 		Usif::COpaqueNamedParams*       iSifResults;
   114 		TInt							iCurrentTask;
   137 		TInt							iCurrentTask;
   115 		RFs&                            iFs;
   138 		RFs&                            iFs;
   116 	};
   139 	};
   117 	
   140 	
   118 #endif // _SCONINSTALLER_H_
   141 #endif // _SCONINSTALLER_H_