uifw/AvKon/src/aknemptycontrol.cpp
branchRCL_3
changeset 55 aecbbf00d063
parent 9 aabf2c525e0f
child 56 d48ab3b357f1
equal deleted inserted replaced
51:fcdfafb36fe7 55:aecbbf00d063
    42 // ---------------------------------------------------------------------------
    42 // ---------------------------------------------------------------------------
    43 //
    43 //
    44 CAknEmptyControl::CAknEmptyControl()
    44 CAknEmptyControl::CAknEmptyControl()
    45 	{
    45 	{
    46 	AKNTASHOOK_ADD( this, "CAknEmptyControl" );
    46 	AKNTASHOOK_ADD( this, "CAknEmptyControl" );
    47 //  iIsActiveIdle = AknStatuspaneUtils::IsActiveIdle();
    47     iIsActiveIdle = AknStatuspaneUtils::IsActiveIdle();
    48 // Use interface of statuspane transparency instead of check if it is active idle
       
    49   iStatusPane = CEikStatusPaneBase::Current();	
       
    50     }
    48     }
    51 
    49 
    52 
    50 
    53 // ---------------------------------------------------------------------------
    51 // ---------------------------------------------------------------------------
    54 // Destructor
    52 // Destructor
   106 // CAknEmptyControl::Draw
   104 // CAknEmptyControl::Draw
   107 // (other items were commented in a header).
   105 // (other items were commented in a header).
   108 // ---------------------------------------------------------------------------
   106 // ---------------------------------------------------------------------------
   109 //
   107 //
   110 void CAknEmptyControl::Draw( const TRect& /*aRect*/ ) const
   108 void CAknEmptyControl::Draw( const TRect& /*aRect*/ ) const
   111     {      
   109     {
   112     if ( iStatusPane && iStatusPane->IsTransparent() )
   110     if ( iIsActiveIdle )
   113         {
   111         {
   114         return;
   112         return;
   115         }
   113         }
   116 
   114 
   117     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   115     MAknsSkinInstance* skin = AknsUtils::SkinInstance();