javamanager/javainstaller/installer/src.s60/applicationregistrator/sifnotifier.cpp
changeset 80 d6dafc5d983f
parent 67 63b81d807542
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
    57     JNIEnv *aEnv, CPublishSifOperationInfo *aNotifier, jint aOperation,
    57     JNIEnv *aEnv, CPublishSifOperationInfo *aNotifier, jint aOperation,
    58     jstring aGlobalComponentId, jstring aComponentName,
    58     jstring aGlobalComponentId, jstring aComponentName,
    59     jobjectArray aApplicationNames, jobjectArray aApplicationIcons,
    59     jobjectArray aApplicationNames, jobjectArray aApplicationIcons,
    60     jint aComponentSize, jstring aIconDir, jstring /*aComponentIcon*/)
    60     jint aComponentSize, jstring aIconDir, jstring /*aComponentIcon*/)
    61 {
    61 {
    62     __UHEAP_MARK;
    62     //__UHEAP_MARK;
    63     HBufC *globalComponentId = CreateHBufCFromJavaStringLC(aEnv, aGlobalComponentId);
    63     HBufC *globalComponentId = CreateHBufCFromJavaStringLC(aEnv, aGlobalComponentId);
    64     HBufC *componentName = CreateHBufCFromJavaStringLC(aEnv, aComponentName);
    64     HBufC *componentName = CreateHBufCFromJavaStringLC(aEnv, aComponentName);
    65     HBufC *iconDir = NULL;
    65     HBufC *iconDir = NULL;
    66     if (NULL != aIconDir)
    66     if (NULL != aIconDir)
    67     {
    67     {
   123     {
   123     {
   124         CleanupStack::PopAndDestroy(iconDir);
   124         CleanupStack::PopAndDestroy(iconDir);
   125     }
   125     }
   126     CleanupStack::PopAndDestroy(componentName);
   126     CleanupStack::PopAndDestroy(componentName);
   127     CleanupStack::PopAndDestroy(globalComponentId);
   127     CleanupStack::PopAndDestroy(globalComponentId);
   128     __UHEAP_MARKEND;
   128     //__UHEAP_MARKEND;
   129 }
   129 }
   130 
   130 
   131 /*
   131 /*
   132  * Class:     com_nokia_mj_impl_installer_applicationregistrator_SifNotifier
   132  * Class:     com_nokia_mj_impl_installer_applicationregistrator_SifNotifier
   133  * Method:    _notifyStart
   133  * Method:    _notifyStart
   233 void NotifyProgressL(
   233 void NotifyProgressL(
   234     JNIEnv *aEnv, CPublishSifOperationInfo *aNotifier,
   234     JNIEnv *aEnv, CPublishSifOperationInfo *aNotifier,
   235     jstring aGlobalComponentId, jint aOperation, jint aSubOperation,
   235     jstring aGlobalComponentId, jint aOperation, jint aSubOperation,
   236     jint aCurrent, jint aTotal)
   236     jint aCurrent, jint aTotal)
   237 {
   237 {
   238     __UHEAP_MARK;
   238     //__UHEAP_MARK;
   239     HBufC *globalComponentId = CreateHBufCFromJavaStringLC(aEnv, aGlobalComponentId);
   239     HBufC *globalComponentId = CreateHBufCFromJavaStringLC(aEnv, aGlobalComponentId);
   240     CSifOperationProgressData *progressData = CSifOperationProgressData::NewLC(
   240     CSifOperationProgressData *progressData = CSifOperationProgressData::NewLC(
   241                 *globalComponentId, (TSifOperationPhase)aOperation,
   241                 *globalComponentId, (TSifOperationPhase)aOperation,
   242                 (TSifOperationSubPhase)aSubOperation, aCurrent, aTotal);
   242                 (TSifOperationSubPhase)aSubOperation, aCurrent, aTotal);
   243 
   243 
   244     aNotifier->PublishProgressL(*progressData);
   244     aNotifier->PublishProgressL(*progressData);
   245 
   245 
   246     CleanupStack::PopAndDestroy(progressData);
   246     CleanupStack::PopAndDestroy(progressData);
   247     CleanupStack::PopAndDestroy(globalComponentId);
   247     CleanupStack::PopAndDestroy(globalComponentId);
   248     __UHEAP_MARKEND;
   248     //__UHEAP_MARKEND;
   249 }
   249 }
   250 
   250 
   251 /*
   251 /*
   252  * Class:     com_nokia_mj_impl_installer_applicationregistrator_SifNotifier
   252  * Class:     com_nokia_mj_impl_installer_applicationregistrator_SifNotifier
   253  * Method:    _notifyProgress
   253  * Method:    _notifyProgress