contentstorage/srvsrc/cainstallstrategy.cpp
changeset 96 5d243a69bdda
parent 92 782e3408c2ab
child 98 d2f833ab7940
equal deleted inserted replaced
95:c739008478cc 96:5d243a69bdda
    16  */
    16  */
    17 #include <e32property.h>
    17 #include <e32property.h>
    18 #include <SWInstallerInternalPSKeys.h>
    18 #include <SWInstallerInternalPSKeys.h>
    19 #include <javadomainpskeys.h>
    19 #include <javadomainpskeys.h>
    20 #include "cainstallstrategy.h"
    20 #include "cainstallstrategy.h"
       
    21 #include <swi/swispubsubdefs.h>
    21 
    22 
    22 // ---------------------------------------------------------------------------
    23 // ---------------------------------------------------------------------------
    23 //
    24 //
    24 // ---------------------------------------------------------------------------
    25 // ---------------------------------------------------------------------------
    25 //
    26 //
   138 // ---------------------------------------------------------------------------
   139 // ---------------------------------------------------------------------------
   139 //
   140 //
   140 void CCaUsifUninstallStrategy::NotifyListenerL(
   141 void CCaUsifUninstallStrategy::NotifyListenerL(
   141 		RProperty& aProperty, MCaInstallListener& aListener )
   142 		RProperty& aProperty, MCaInstallListener& aListener )
   142     {
   143     {
   143     TInt appUid;
   144     TInt status;
   144     User::LeaveIfError( aProperty.Get( KPSUidSWInstallerUiNotification,
   145     // TODO: Temporary solution for incorrect USIF notifications     
   145             KSWInstallerUninstallation, appUid ) );
   146     User::LeaveIfError( aProperty.Get( KUidSystemCategory,
   146     // if there is some value!=0 in iAppUid and appUid==0 that means
   147             Swi::KUidSoftwareInstallKey, status ) );
   147     // application with uid==iAppUid was uninstalled, so we notify aListener
   148     //if( status == ( Swi::ESwisStatusSuccess | Swi::ESwisUninstall ) )
   148     if( iAppUid && !appUid )
   149     if( iUninstallStatus == Swi::ESwisUninstall && !status )
   149         {
   150         {
   150         aListener.HandleInstallNotifyL( iAppUid );
   151         aListener.HandleInstallNotifyL( iUninstallStatus );
   151         }
   152         }    
   152     iAppUid = appUid;
   153     iUninstallStatus = status;
   153     }
   154     }
   154 
   155 
   155 // ---------------------------------------------------------------------------
   156 // ---------------------------------------------------------------------------
   156 //
   157 //
   157 // ---------------------------------------------------------------------------
   158 // ---------------------------------------------------------------------------
   158 //
   159 //
   159 CCaUsifUninstallStrategy::CCaUsifUninstallStrategy( RProperty& aProperty )
   160 CCaUsifUninstallStrategy::CCaUsifUninstallStrategy( RProperty& aProperty )
   160     {
   161     {
   161 	aProperty.Attach(
   162 	aProperty.Attach( KUidSystemCategory, Swi::KUidSoftwareInstallKey );
   162 			KPSUidSWInstallerUiNotification, KSWInstallerUninstallation );
       
   163     }
   163     }
   164 
   164 
   165 // ---------------------------------------------------------------------------
   165 // ---------------------------------------------------------------------------
   166 //
   166 //
   167 // ---------------------------------------------------------------------------
   167 // ---------------------------------------------------------------------------