browserui/browser/FeedsSrc/FeedsClientUtilities.cpp
changeset 10 57d5b8e231c4
parent 0 84ad3b177aa3
child 15 e45c3f40ea5f
equal deleted inserted replaced
0:84ad3b177aa3 10:57d5b8e231c4
   114 	// Set up MimeTypes
   114 	// Set up MimeTypes
   115 	iMimeTypes = HBufC::NewL( KSupportedMimeTypes().Length() + 1 );
   115 	iMimeTypes = HBufC::NewL( KSupportedMimeTypes().Length() + 1 );
   116     TPtr ptr( iMimeTypes->Des() );
   116     TPtr ptr( iMimeTypes->Des() );
   117     ptr.Append( KSupportedMimeTypes() );
   117     ptr.Append( KSupportedMimeTypes() );
   118     ptr.ZeroTerminate();
   118     ptr.ZeroTerminate();
       
   119 	      
       
   120     iWaitDialog = CFeedsWaitDialog::NewL(*this);
   119     }
   121     }
   120 
   122 
   121 // -----------------------------------------------------------------------------
   123 // -----------------------------------------------------------------------------
   122 // CFolderItem::Search
   124 // CFolderItem::Search
   123 //
   125 //
   620     if (aTransType == iCanceledRequest)
   622     if (aTransType == iCanceledRequest)
   621         {
   623         {
   622         iCanceledRequest = CTransaction::ENone;
   624         iCanceledRequest = CTransaction::ENone;
   623         return;
   625         return;
   624         }
   626         }
   625     // Close the wait dialog.
   627 
   626     if (iWaitDialog)
   628     iWaitDialog->Close();
   627         {
   629  
   628         iWaitDialog->Close();
       
   629         }
       
   630     iIsWaitDialogDisplayed = EFalse;
   630     iIsWaitDialogDisplayed = EFalse;
   631     	
   631     	
   632     // Show the view if everything went ok.
   632     // Show the view if everything went ok.
   633     if (aStatus == KErrNone)
   633     if (aStatus == KErrNone)
   634         {
   634         {
  1515 	    TRect rect(iAppUI.ClientRect());
  1515 	    TRect rect(iAppUI.ClientRect());
  1516 	    iFolderView = CFeedsFolderView::NewL( iApiProvider, rect );
  1516 	    iFolderView = CFeedsFolderView::NewL( iApiProvider, rect );
  1517 	    iAppUI.AddViewL( iFolderView ); // transfer ownership to CAknViewAppUi
  1517 	    iAppUI.AddViewL( iFolderView ); // transfer ownership to CAknViewAppUi
  1518 		}
  1518 		}
  1519 		
  1519 		
  1520     // Create the WaitDialog
  1520 
  1521     if (iWaitDialog == NULL)
       
  1522         {        
       
  1523         iWaitDialog = CFeedsWaitDialog::NewL(*this);
       
  1524         }
       
  1525     
  1521     
  1526     // Connect to the server.
  1522     // Connect to the server.
  1527     ConnectToServerL(aGetRootFolder);
  1523     ConnectToServerL(aGetRootFolder);
  1528     }
  1524     }
  1529     
  1525