ncdengine/provider/deviceinteraction/inc/ncdinstallationserviceimpl.h
branchRCL_3
changeset 11 3ba40be8e484
parent 9 51c0f5edf5ef
child 25 7333d7932ef7
equal deleted inserted replaced
9:51c0f5edf5ef 11:3ba40be8e484
     1 /*
     1 /*
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 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 "Eclipse Public License v1.0"
     5 * under the terms of "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".
    31 
    31 
    32 #include "ncdinstallationservice.h"
    32 #include "ncdinstallationservice.h"
    33 #include "ncditempurpose.h"
    33 #include "ncditempurpose.h"
    34 #include "ncdasyncoperationobserver.h"
    34 #include "ncdasyncoperationobserver.h"
    35 #include "ncdasyncsilentinstallobserver.h"
    35 #include "ncdasyncsilentinstallobserver.h"
       
    36 
       
    37 #include "ncdwidgetregistrydata.h"
    36 
    38 
    37 
    39 
    38 /**
    40 /**
    39  * New Java registry API was introduced in 3.2. We start using it 
    41  * New Java registry API was introduced in 3.2. We start using it 
    40  * from 5.0 onwards because it seems that some 3.2 devices don't support
    42  * from 5.0 onwards because it seems that some 3.2 devices don't support
   146                              const TDesC& aMimeType,
   148                              const TDesC& aMimeType,
   147                              const TDesC8& aDescriptorData,
   149                              const TDesC8& aDescriptorData,
   148                              const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg );
   150                              const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg );
   149     
   151     
   150     /**
   152     /**
       
   153      * @see MNcdInstallationService::SilentInstallWidgetJavaL
       
   154      */
       
   155     void SilentInstallWidgetL( RFile& aFile,
       
   156                                const SwiUI::TInstallOptionsPckg& aInstallOptionsPckg );
       
   157     
       
   158     /**
   151      * @see MNcdInstallationService::MNcdCancelSilentInstall
   159      * @see MNcdInstallationService::MNcdCancelSilentInstall
   152      */
   160      */
   153     void CancelSilentInstall( HBufC*& aFileName,
   161     void CancelSilentInstall( HBufC*& aFileName,
   154                               TUid& aAppUid,
   162                               TUid& aAppUid,
   155                               TInt& aError );
   163                               TInt& aError );
   174     /**
   182     /**
   175      * @see MNcdInstallationService::IsApplicationInstalledL
   183      * @see MNcdInstallationService::IsApplicationInstalledL
   176      */
   184      */
   177     TNcdApplicationStatus IsApplicationInstalledL( 
   185     TNcdApplicationStatus IsApplicationInstalledL( 
   178         const TUid& aUid, const TCatalogsVersion& aVersion );
   186         const TUid& aUid, const TCatalogsVersion& aVersion );
       
   187     
       
   188     /**
       
   189      * @see MNcdInstallationService::IsWidgetInstalledL
       
   190      */
       
   191     TNcdApplicationStatus IsWidgetInstalledL(
       
   192         const TDesC& aIdentifier, const TCatalogsVersion& aVersion);
       
   193     
       
   194     /**
       
   195      * @see MNcdInstallationService::WidgetUidL
       
   196      */
       
   197     TUid WidgetUidL( const TDesC& aIdentifier);
   179     
   198     
   180     /**
   199     /**
   181      * @see MNcdInstallationService::SidFromSisRegistryL
   200      * @see MNcdInstallationService::SidFromSisRegistryL
   182      */
   201      */
   183     TUid SidFromSisRegistryL( const TUid& aUid );
   202     TUid SidFromSisRegistryL( const TUid& aUid );
   384     
   403     
   385     TUid InstalledMidletUidL();
   404     TUid InstalledMidletUidL();
   386     
   405     
   387     void PopulateInstalledWidgetUidsL();
   406     void PopulateInstalledWidgetUidsL();
   388     
   407     
       
   408     void PopulateInstalledWidgetsL(RExtendedWidgetInfoArray& aWidgets);
       
   409     
   389     TUid InstalledWidgetUidL();
   410     TUid InstalledWidgetUidL();
   390     
   411     
   391     HBufC* InstalledWidgetNameLC();
   412     HBufC* InstalledWidgetNameLC();
   392     
   413     
   393     static TBool MatchWidget( RFile& aFile, const TDesC& aMime );
   414     static TBool MatchWidget( RFile& aFile, const TDesC& aMime );
   394     
   415     
   395     void HandleInstalledWidgetL();
   416     void HandleInstalledWidgetL();
   396     
   417     
   397     TBool WidgetExistsL( const TUid& aUid );
   418     TBool WidgetExistsL( const TUid& aUid );
       
   419     
       
   420     TBool WidgetExistsL( const TDesC& aIdentifier, TCatalogsVersion& aVersion );
       
   421     
       
   422     TBool WidgetExistsL( const TUid& aUid, TCatalogsVersion& aVersion );
   398     
   423     
   399 private:
   424 private:
   400     
   425     
   401     enum TInstallType
   426     enum TInstallType
   402         {
   427         {
   466     // needed for cancelling install correctly
   491     // needed for cancelling install correctly
   467     SwiUI::TServerRequest iCancelCode;  
   492     SwiUI::TServerRequest iCancelCode;  
   468     
   493     
   469     
   494     
   470     RWidgetRegistryClientSession iWidgetRegistry;    
   495     RWidgetRegistryClientSession iWidgetRegistry;    
       
   496     
   471     RWidgetInfoArray iInstalledWidgets;    
   497     RWidgetInfoArray iInstalledWidgets;    
       
   498     RPointerArray<CExtendedWidgetInfo> iInstalledWidgetsInfos; 
   472     };
   499     };
   473 
   500 
   474 #endif // C_NCD_INSTALLATION_SERVICE_IMPL_H
   501 #endif // C_NCD_INSTALLATION_SERVICE_IMPL_H