ncdengine/provider/deviceinteraction/inc/ncdinstallationserviceimpl.h
changeset 53 ae54820ef82c
parent 52 92f864ef0288
child 72 a0dc14075813
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
    24 #include <AknsSrvClient.h>
    24 #include <AknsSrvClient.h>
    25 #include <swi/sisregistrysession.h>
    25 #include <swi/sisregistrysession.h>
    26 #include <swi/sisregistryentry.h>
    26 #include <swi/sisregistryentry.h>
    27 #include <apgcli.h>
    27 #include <apgcli.h>
    28 #include <centralrepository.h>
    28 #include <centralrepository.h>
    29 #include <SWInstApi.h>
       
    30 //#include <WidgetRegistryClient.h>
       
    31 #include <usif/sif/sif.h>
    29 #include <usif/sif/sif.h>
    32 #include <usif/scr/scr.h>
    30 #include <usif/scr/scr.h>
    33 
    31 
    34 #include "ncdinstallationservice.h"
    32 #include "ncdinstallationservice.h"
    35 #include "ncditempurpose.h"
    33 #include "ncditempurpose.h"
   121      * @see MNcdInstallationService::SilentInstallL
   119      * @see MNcdInstallationService::SilentInstallL
   122      */
   120      */
   123     void SilentInstallL( RFile& aFile,
   121     void SilentInstallL( RFile& aFile,
   124                          const TDesC& aMimeType,
   122                          const TDesC& aMimeType,
   125                          const TNcdItemPurpose& aPurpose,
   123                          const TNcdItemPurpose& aPurpose,
   126                          const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg );
   124                          const Usif::COpaqueNamedParams* aInstallOptionsPckg );
   127     
   125     
   128     /**
   126     /**
   129      * @see MNcdInstallationService::SilentInstallJavaL
   127      * @see MNcdInstallationService::SilentInstallJavaL
   130      */
   128      */
   131     void SilentInstallJavaL( RFile& aFile,
   129     void SilentInstallJavaL( RFile& aFile,
   132                              const TDesC& aMimeType,
   130                              const TDesC& aMimeType,
   133                              const TDesC8& aDescriptorData,
   131                              const TDesC8& aDescriptorData,
   134                              const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg );
   132                              const Usif::COpaqueNamedParams* aInstallOptionsPckg );
   135     
   133     
   136     /**
   134     /**
   137      * @see MNcdInstallationService::SilentInstallWidgetJavaL
   135      * @see MNcdInstallationService::SilentInstallWidgetJavaL
   138      */
   136      */
   139     void SilentInstallWidgetL( RFile& aFile,
   137     void SilentInstallWidgetL( RFile& aFile,
   140                                const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg );
   138                                const Usif::COpaqueNamedParams* aInstallOptionsPckg );
   141     
   139     
   142     /**
   140     /**
   143      * @see MNcdInstallationService::MNcdCancelSilentInstall
   141      * @see MNcdInstallationService::MNcdCancelSilentInstall
   144      */
   142      */
   145     void CancelSilentInstall( HBufC*& aFileName,
   143     void CancelSilentInstall( HBufC*& aFileName,
   293      * options. Ownership is not transferred.
   291      * options. Ownership is not transferred.
   294      */
   292      */
   295     void InstallL( RFile& aFile,
   293     void InstallL( RFile& aFile,
   296                    const TDesC& aMimeType,
   294                    const TDesC& aMimeType,
   297                    const TNcdItemPurpose& aPurpose,
   295                    const TNcdItemPurpose& aPurpose,
   298                    const SwiUI::TInstallOptionsPckg* aSilentInstallOptionsPckg );
   296                    const Usif::COpaqueNamedParams* aSilentInstallOptions );
   299 
   297 
   300     /**
   298     /**
   301      * @see MNcdInstallationService::InstallJavaL
   299      * @see MNcdInstallationService::InstallJavaL
   302      * @param aSilentInstallOptionsPckg If NULL, then installation is done normally.
   300      * @param aSilentInstallOptionsPckg If NULL, then installation is done normally.
   303      * If not NULL, then the installation is done silently by using the given 
   301      * If not NULL, then the installation is done silently by using the given 
   304      * options. Ownership is not transferred.
   302      * options. Ownership is not transferred.
   305      */
   303      */
   306     void InstallJavaL( RFile& aFile,
   304     void InstallJavaL( RFile& aFile,
   307                        const TDesC& aMimeType,
   305                        const TDesC& aMimeType,
   308                        const TDesC8& aDescriptorData,
   306                        const TDesC8& aDescriptorData,
   309                        const SwiUI::TInstallOptionsPckg* aSilentInstallOptionsPckg );
   307                        const Usif::COpaqueNamedParams* aSilentInstallOptions );
   310 
   308 
   311     
   309     
   312     void InstallWidgetL( 
   310     void InstallWidgetL( 
   313         RFile& aFile,
   311         RFile& aFile,
   314         const SwiUI::TInstallOptionsPckg* aSilentInstallOptionsPckg );
   312         const Usif::COpaqueNamedParams* aSilentInstallOptions );
   315         
   313         
   316 
   314 
   317     // Sets correct values for member variables after installation has finished
   315     // Sets correct values for member variables after installation has finished
   318     // or if it has been cancelled.
   316     // or if it has been cancelled.
   319     void InstallationFinishedSetup( TInt aReason );
   317     void InstallationFinishedSetup( TInt aReason );
   446     // Observer
   444     // Observer
   447     CNcdSilentInstallActiveObserver* iSilentInstallActiveObserver;
   445     CNcdSilentInstallActiveObserver* iSilentInstallActiveObserver;
   448     
   446     
   449     CNcdActiveOperationObserver* iInstallStatusObserver;
   447     CNcdActiveOperationObserver* iInstallStatusObserver;
   450 
   448 
   451     SwiUI::RSWInstLauncher iInstaller;
   449     //SwiUI::RSWInstLauncher iInstaller;
   452         
   450     Usif::RSoftwareInstall iInstaller;
       
   451     Usif::COpaqueNamedParams* iArguments; 
       
   452     Usif::COpaqueNamedParams* iResults;
       
   453     
   453     // ROM application UIDS
   454     // ROM application UIDS
   454     RArray<TUid> iRomUids; 
   455     RArray<TUid> iRomUids; 
   455     
       
   456     // needed for cancelling install correctly
       
   457     SwiUI::TServerRequest iCancelCode;  
       
   458     
       
   459     
   456     
   460     //RWidgetRegistryClientSession iWidgetRegistry; 
   457     //RWidgetRegistryClientSession iWidgetRegistry; 
   461     Usif::RSoftwareComponentRegistry iScrSession;
   458     Usif::RSoftwareComponentRegistry iScrSession;
   462     
   459     
   463     //RWidgetInfoArray iInstalledWidgets;    
   460     //RWidgetInfoArray iInstalledWidgets;