69 #include "mimcvenginefactory.h" |
69 #include "mimcvenginefactory.h" |
70 #include <imconnectionproviderconsts.h> |
70 #include <imconnectionproviderconsts.h> |
71 #include <e32property.h> |
71 #include <e32property.h> |
72 |
72 |
73 // AIW Include Files |
73 // AIW Include Files |
74 #include <aiwgenericparam.h> |
74 #include <AiwGenericParam.h> |
75 #include <aiwcontactassigndatatypes.h> |
75 #include <AiwContactAssignDataTypes.h> |
76 #include <aiwdialdataext.h> |
76 #include <aiwdialdataext.h> |
77 #include <aiwcommon.hrh> |
77 #include <AiwCommon.hrh> |
78 #include <aiwservicehandler.h> |
78 #include <AiwServiceHandler.h> |
79 #include <aiwdialdata.h> |
79 #include <aiwdialdata.h> |
80 #include <CommonPhoneParser.h> |
80 #include <commonphoneparser.h> |
81 |
81 |
82 |
82 |
83 // Dll Uid of vimpstui, to maintain uniqueness of help uid |
83 // Dll Uid of vimpstui, to maintain uniqueness of help uid |
84 const TUid KHelpUid = { 0x2001FDC2 } ; |
84 const TUid KHelpUid = { 0x2001FDC2 } ; |
85 // ============================ MEMBER FUNCTIONS =============================== |
85 // ============================ MEMBER FUNCTIONS =============================== |
583 iViewDeactivated = ETrue; |
583 iViewDeactivated = ETrue; |
584 } |
584 } |
585 else |
585 else |
586 { |
586 { |
587 TPtrC activeRecipientId = iEngineFactory->GetActiveItemL (); |
587 TPtrC activeRecipientId = iEngineFactory->GetActiveItemL (); |
588 iActiveEngine->MessageHandler().StartNewConversationL (activeRecipientId); |
588 if(activeRecipientId.Length()) |
589 SetStatusPaneIconsL(); |
|
590 if (iStatusPane) |
|
591 { |
589 { |
592 iStatusPane->BringToForegroundL(); |
590 iActiveEngine->MessageHandler().StartNewConversationL (activeRecipientId); |
593 } |
591 SetStatusPaneIconsL(); |
594 iViewDeactivated = EFalse; |
592 if (iStatusPane) |
|
593 { |
|
594 iStatusPane->BringToForegroundL(); |
|
595 } |
|
596 iViewDeactivated = EFalse; |
|
597 } |
595 } |
598 } |
596 |
|
597 if( iContainer ) |
|
598 { |
|
599 //don't read messages if we're not in foreground |
|
600 // iContainer->FetchMessages( aForeground ); |
|
601 } |
|
602 |
|
603 IM_CV_LOGS(TXT("CIMCVAppView::HandleForegroundEventL() end") ); |
599 IM_CV_LOGS(TXT("CIMCVAppView::HandleForegroundEventL() end") ); |
604 } |
600 } |
605 |
601 |
606 |
602 |
607 |
603 |
1420 { |
1416 { |
1421 // active service |
1417 // active service |
1422 if (KErrNone != aReason) |
1418 if (KErrNone != aReason) |
1423 IMCVUiAppNoteMapper::ShowNoteL( aReason , KNullDesC ); |
1419 IMCVUiAppNoteMapper::ShowNoteL( aReason , KNullDesC ); |
1424 } |
1420 } |
1425 // This will be deleted by Engine factory later. |
1421 // if application is in the background, then on logout |
1426 //iActiveEngine = NULL; |
1422 // clean up the container, and if the cca was open then close. |
|
1423 // only for the logged out service. |
|
1424 if( aServiceId == iServiceId ) |
|
1425 { |
|
1426 if(iConnection) |
|
1427 { |
|
1428 iConnection->Close(); |
|
1429 iConnection = NULL; |
|
1430 } |
|
1431 if(iViewDeactivated) |
|
1432 { |
|
1433 ViewRefreshL(); |
|
1434 // set this to KNullDesC since conversation is getting closed. |
|
1435 iRecipientUserId->Des().Copy( KNullDesC()); |
|
1436 } |
|
1437 } |
|
1438 |
1427 break; |
1439 break; |
1428 } |
1440 } |
1429 } |
1441 } |
1430 IM_CV_LOGS(TXT("CIMCVAppView::HandleConnectionEventL() End") ); |
1442 IM_CV_LOGS(TXT("CIMCVAppView::HandleConnectionEventL() End") ); |
1431 } |
1443 } |