securitydialogs/Autolock/src/AutolockContainer.cpp
branchRCL_3
changeset 11 9971b621ef6c
parent 1 d5423fbb4f29
child 13 53af9c3d61e4
equal deleted inserted replaced
10:bbcfd14ce6a7 11:9971b621ef6c
    27 #include <data_caging_path_literals.hrh>
    27 #include <data_caging_path_literals.hrh>
    28 #include "AutolockAppUiPS.h"
    28 #include "AutolockAppUiPS.h"
    29 #include <Autolock.rsg>
    29 #include <Autolock.rsg>
    30 #include "autolock.hrh"
    30 #include "autolock.hrh"
    31 #include <eikdef.h>
    31 #include <eikdef.h>
       
    32 #include <aknnotedialog.h>
       
    33 #include <aknkeylock.h>
       
    34 #include <AknSoftNotifier.h>
    32 
    35 
    33 #include <coreapplicationuisdomainpskeys.h>
    36 #include <coreapplicationuisdomainpskeys.h>
    34 
    37 
    35 #include <AknsLayeredBackgroundControlContext.h>
    38 #include <AknsLayeredBackgroundControlContext.h>
    36 #include <AknsDrawUtils.h>
    39 #include <AknsDrawUtils.h>
   301 					gc.SetBrushColor(KRgbRed); 
   304 					gc.SetBrushColor(KRgbRed); 
   302 					gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
   305 					gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
   303 					gc.SetPenStyle(CGraphicsContext::EDottedPen);
   306 					gc.SetPenStyle(CGraphicsContext::EDottedPen);
   304 					gc.DrawRoundRect(box,cornerSize);
   307 					gc.DrawRoundRect(box,cornerSize);
   305         	gc.BitBltMasked(TPoint(aCallRect_x,aCallRect_y),iBitmapCall,TRect(TPoint(0,0),TPoint(aCallRect_width,aCallRect_height)), iMaskCall, ETrue);
   308         	gc.BitBltMasked(TPoint(aCallRect_x,aCallRect_y),iBitmapCall,TRect(TPoint(0,0),TPoint(aCallRect_width,aCallRect_height)), iMaskCall, ETrue);
   306     	  	aCallRect_y+=100;	// coordinates are realtive to TRect, not to Screen
   309     	  	aCallRect_y+=100;	// coordinates are relative to TRect, not to Screen
       
   310     	  	
       
   311     	  	// if active call, dismiss all pending notes. This avoids them on top of the BigRedButton
       
   312     	  	CAknSoftNotifier *softNotifier = NULL;
       
   313 			    TRAPD (err, {
       
   314 			            softNotifier = CAknSoftNotifier::NewL();
       
   315 			            softNotifier->AddNotificationL(ESetIdleState, 0);
       
   316 			            // softNotifier->SetIdleStateL(EFalse);
       
   317 			    };)
       
   318 			    delete softNotifier;
       
   319 			    // during any call ,the touch need to be enabled, so that BigRedButton is available
       
   320 			    // It will be re-enabled when the call ends
       
   321 		    	RAknKeyLock keylock;
       
   322 			    if ( keylock.Connect() == KErrNone )
       
   323 				    {
       
   324 				    keylock.DisableWithoutNote();
       
   325 				    keylock.Close();
       
   326 				    }
   307         	}
   327         	}
   308         }
   328         }
   309     else if (iBitmap && !iMask)
   329     else if (iBitmap && !iMask)
   310         {
   330         {
   311         gc.BitBlt(TPoint(x,y),iBitmap);
   331         gc.BitBlt(TPoint(x,y),iBitmap);