phoneapp/phoneuiview/src/cphoneview.cpp
branchRCL_3
changeset 31 ba54057fe027
parent 17 38529f706030
child 39 b8d67d6176f5
--- a/phoneapp/phoneuiview/src/cphoneview.cpp	Tue Apr 27 16:37:10 2010 +0300
+++ b/phoneapp/phoneuiview/src/cphoneview.cpp	Tue May 11 16:13:03 2010 +0300
@@ -38,7 +38,8 @@
 #include "cphonestatuspane.h"
 #include "tphonecmdparambitmap.h"
 #include "phonelogger.h"
-#include "mphoneviewobserver.h" 
+#include "mphoneviewobserver.h"
+#include "mphoneviewcontrollerobserver.h"
 
 #include <AknUtils.h> // needed for AKN_LAF_COLOR in 3.0 environment
 
@@ -65,8 +66,10 @@
 // might leave.
 // -----------------------------------------------------------------------------
 //
-CPhoneView::CPhoneView( CEikButtonGroupContainer& aCba ) :
-    iCba ( aCba )
+CPhoneView::CPhoneView( CEikButtonGroupContainer& aCba, MPhoneViewControllerObserver* aViewController ) :
+    iSecurityMode( ETrue ),
+    iCba ( aCba ),
+    iViewControllerObserver ( aViewController )
     {
     }
 
@@ -97,9 +100,9 @@
 // Two-phased constructor.
 // -----------------------------------------------------------------------------
 //
-CPhoneView* CPhoneView::NewL( TRect aRect, CEikButtonGroupContainer& aCba )
+CPhoneView* CPhoneView::NewL( TRect aRect, CEikButtonGroupContainer& aCba, MPhoneViewControllerObserver* aViewController )
     {
-    CPhoneView* self = new ( ELeave ) CPhoneView( aCba );
+    CPhoneView* self = new ( ELeave ) CPhoneView( aCba, aViewController );
     
     CleanupStack::PushL( self );
     self->ConstructL( aRect );
@@ -138,6 +141,9 @@
     const TDesC8& /*aCustomMessage*/ )
     {
     __LOGMETHODSTARTEND(EPhoneUIView, "CPhoneView::ViewActivatedL()");
+
+    iViewControllerObserver->AllowInCallBubbleInSpecialCases();
+    
     switch ( aCustomMessageId.iUid )
         {
         case KTouchDiallerViewCommand:
@@ -186,7 +192,7 @@
     {
     __LOGMETHODSTARTEND(EPhoneUIView, "CPhoneView::ViewDeactivated()");
     SetActivatePreviousApp( EFalse );
-  
+    iViewControllerObserver->SetIncallBubbleVisibility( EFalse );
     DrawDeferred();
     }