messagingappbase/sendui/genericmtmplugin/src/genericmtmplugin.cpp
branchRCL_3
changeset 24 e00582ce7ecd
parent 21 c6838af47512
child 42 1367103c24e2
equal deleted inserted replaced
22:52d61119153d 24:e00582ce7ecd
   208     									  doContinue );
   208     									  doContinue );
   209     	if( service == KMsvUnkownServiceIndexEntryIdValue &&
   209     	if( service == KMsvUnkownServiceIndexEntryIdValue &&
   210     		!onlineSharing )
   210     		!onlineSharing )
   211     		{
   211     		{
   212     		// cancel pressed on "selecta email account" query
   212     		// cancel pressed on "selecta email account" query
       
   213     	    // OR SMTP UID is provided,  
       
   214     	    // but no cmail mailbox is not configured, shonw note to user to
       
   215     	    // configured mailbox and return from here.
   213     		return;
   216     		return;
   214     		}
   217     		}
   215     	}
   218     	}
   216     TInt cleanupItems(0);
   219     TInt cleanupItems(0);
   217 
   220 
  1260 				iClientMtm = iSingleton.ClientMtmRegistryL().NewMtmL( aMtmUid );
  1263 				iClientMtm = iSingleton.ClientMtmRegistryL().NewMtmL( aMtmUid );
  1261 				iMtmUi = iSingleton.MtmUiRegistryL().NewMtmUiL( *iClientMtm );
  1264 				iMtmUi = iSingleton.MtmUiRegistryL().NewMtmUiL( *iClientMtm );
  1262 				}
  1265 				}
  1263 			
  1266 			
  1264 			if( service == KMsvUnknownServiceIndexEntryId )
  1267 			if( service == KMsvUnknownServiceIndexEntryId )
  1265 				{
  1268 			    {
  1266 				service = EmailDefaultServiceL();		        
  1269 			    //donot launch wizard
  1267 				}
  1270 			    // show info note to user to configured
       
  1271 			    //mailbox from mail app.
       
  1272 			    CAknGlobalNote* note = CAknGlobalNote::NewL();
       
  1273 			    CleanupStack::PushL( note );
       
  1274 			    HBufC* text = NULL;
       
  1275 			    text = StringLoader::LoadLC( R_SENDUI_SETTINGS_EMAIL_NOT_OK, &iCoeEnv );
       
  1276 			    note->ShowNoteL( EAknGlobalErrorNote, *text );
       
  1277 			    CleanupStack::PopAndDestroy( 2, note ); // note, stringLoader
       
  1278 			    aContinue = EFalse;
       
  1279 			    return KMsvUnknownServiceIndexEntryId;
       
  1280 			    }
  1268             }
  1281             }
  1269         else
  1282         else
  1270             {
  1283             {
  1271             service = MsvUiServiceUtilitiesInternal::DefaultServiceForMTML(
  1284             service = MsvUiServiceUtilitiesInternal::DefaultServiceForMTML(
  1272                 iSingleton.MsvSessionL(), aMtmUid, ETrue);
  1285                 iSingleton.MsvSessionL(), aMtmUid, ETrue);