btobexprofiles/obexsendservices/obexservicesendutils/src/BTSBIPController.cpp
changeset 63 bcf742120177
parent 40 997690c3397a
equal deleted inserted replaced
52:4545c04e61e1 63:bcf742120177
    47 //temp file path drive letter
    47 //temp file path drive letter
    48 _LIT(KBTSBIPTempPathDrive,"c:");
    48 _LIT(KBTSBIPTempPathDrive,"c:");
    49 const TInt KBTSUMaxPathLenght=256;
    49 const TInt KBTSUMaxPathLenght=256;
    50 const TInt KBTSUMaxPrivatePathLenght=20;
    50 const TInt KBTSUMaxPrivatePathLenght=20;
    51 
    51 
       
    52 _LIT(KLocFileName, "btdialogs_");
       
    53 _LIT(KPath, "z:/resource/qt/translations/");  
       
    54 
    52 _LIT(KBTNotSendSomeText,"txt_bt_info_receiving_device_does_not_support_all");
    55 _LIT(KBTNotSendSomeText,"txt_bt_info_receiving_device_does_not_support_all");
    53 _LIT(KBTNotSendOneText,"txt_bt_info_receiving_device_does_not_support_this");
    56 _LIT(KBTNotSendOneText,"txt_bt_info_receiving_device_does_not_support_this");
    54 
    57 
    55 
    58 
    56 
    59 
   295         
   298         
   296         TBTSUImageParam imageparam = iListPtr->ImageAtL( iFileIndex );        
   299         TBTSUImageParam imageparam = iListPtr->ImageAtL( iFileIndex );        
   297         RBuf filename;
   300         RBuf filename;
   298         filename.CreateL(KMaxFileName);
   301         filename.CreateL(KMaxFileName);
   299         CleanupClosePushL(filename);
   302         CleanupClosePushL(filename);
   300         imageparam.iFile.Name(filename);
   303         User::LeaveIfError(imageparam.iFile.Name(filename));
   301         
   304         
   302         iObserverPtr->UpdateProgressNoteL(imageparam.iFileSize,iFileIndex,filename);
   305         iObserverPtr->UpdateProgressNoteL(imageparam.iFileSize,iFileIndex,filename);
   303         CleanupStack::PopAndDestroy(&filename);
   306         CleanupStack::PopAndDestroy(&filename);
   304         
   307         
   305         iListPtr->MarkAsSendL(iFileIndex);
   308         iListPtr->MarkAsSendL(iFileIndex);
   630 		
   633 		
   631 	remoteCapabilityList->Close();
   634 	remoteCapabilityList->Close();
   632 	delete remoteCapabilityList;
   635 	delete remoteCapabilityList;
   633     CleanupStack::PopAndDestroy( xmlParser ); 
   636     CleanupStack::PopAndDestroy( xmlParser ); 
   634     
   637     
       
   638     HbTextResolverSymbian::Init(KLocFileName, KPath);
   635     if(!allSupported  && iListPtr->ImageCount() > 1)
   639     if(!allSupported  && iListPtr->ImageCount() > 1)
   636     	{      	
   640     	{      	
   637         HBufC* sendText = HbTextResolverSymbian::LoadLC(KBTNotSendSomeText);
   641         HBufC* sendText = HbTextResolverSymbian::LoadLC(KBTNotSendSomeText);
   638     	iObserverPtr->LaunchConfirmationQuery(sendText->Des());
   642     	iObserverPtr->LaunchConfirmationQuery(sendText->Des());
   639     	CleanupStack::PopAndDestroy( sendText );
   643     	CleanupStack::PopAndDestroy( sendText );