phoneapp/phoneuiview/src/cphonedialerview.cpp
branchRCL_3
changeset 6 38529f706030
parent 4 24062c24fe38
equal deleted inserted replaced
5:2a26698d78ba 6:38529f706030
    63 // CPhoneDialerView::CPhoneDialerView
    63 // CPhoneDialerView::CPhoneDialerView
    64 // C++ default constructor can NOT contain any code, that
    64 // C++ default constructor can NOT contain any code, that
    65 // might leave.
    65 // might leave.
    66 // -----------------------------------------------------------------------------
    66 // -----------------------------------------------------------------------------
    67 //
    67 //
    68 CPhoneDialerView::CPhoneDialerView() :
    68 CPhoneDialerView::CPhoneDialerView()
    69     iSecurityMode ( EFalse )
       
    70     {
    69     {
    71     }
    70     }
    72 
    71 
    73 // -----------------------------------------------------------------------------
    72 // -----------------------------------------------------------------------------
    74 // CPhoneDialerView::ConstructL
    73 // CPhoneDialerView::ConstructL
   238         {
   237         {
   239         CWindowGc& gc = SystemGc();
   238         CWindowGc& gc = SystemGc();
   240         MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   239         MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   241         MAknsControlContext* cc = AknsDrawUtils::ControlContext( this );
   240         MAknsControlContext* cc = AknsDrawUtils::ControlContext( this );
   242         
   241         
   243         if ( iSecurityMode || 
   242         if ( !AknsDrawUtils::Background( skin, cc, this, gc, aRect ) )
   244             !AknsDrawUtils::Background( skin, cc, this, gc, aRect ) )
       
   245             {
   243             {
   246             gc.SetPenStyle(CGraphicsContext::ENullPen);
   244             gc.SetPenStyle(CGraphicsContext::ENullPen);
   247             gc.SetBrushColor( AKN_LAF_COLOR( 0 ) ); // 0 for white
   245             gc.SetBrushColor( AKN_LAF_COLOR( 0 ) ); // 0 for white
   248             gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
   246             gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
   249             gc.DrawRect( aRect ); 
   247             gc.DrawRect( aRect ); 
   360         UpdateControlRect();
   358         UpdateControlRect();
   361         }
   359         }
   362     CCoeControl::MakeVisible( aVisible );
   360     CCoeControl::MakeVisible( aVisible );
   363     }
   361     }
   364 
   362 
   365 // -----------------------------------------------------------------------------
       
   366 // CPhoneDialerView::SetSecurityMode
       
   367 // -----------------------------------------------------------------------------
       
   368 //
       
   369 void CPhoneDialerView::SetSecurityMode ( TBool aStatus )
       
   370     {
       
   371     if ( iSecurityMode != aStatus ) 
       
   372         {
       
   373         iSecurityMode = aStatus;
       
   374         SizeChanged();    
       
   375         }
       
   376     }
       
   377     
       
   378 // -----------------------------------------------------------------------------
       
   379 // CPhoneDialerView::IsSecurityMode
       
   380 // -----------------------------------------------------------------------------
       
   381 //
       
   382 TBool CPhoneDialerView::IsSecurityMode()    
       
   383     {
       
   384     return iSecurityMode;
       
   385     }
       
   386 
       
   387 // End of File
   363 // End of File