phoneuis/BubbleManager/Src/BMCallStatusIndi.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Call status indicator
       
    15 *
       
    16 */
       
    17 
       
    18 #include "BMCallStatusIndi.h"
       
    19 #include "BMBubbleImageManager.h"
       
    20 #include "BMBubbleHeader.h"
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // C++ constructor
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 CBubbleCallStatusIndi::CBubbleCallStatusIndi( 
       
    27     CBubbleImageManager& aImageManager ) :
       
    28     iImageManager( aImageManager )
       
    29     {
       
    30     }
       
    31 
       
    32 // ---------------------------------------------------------------------------
       
    33 // ReadBubbleHeader
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 void CBubbleCallStatusIndi::ReadBubbleHeader( const CBubbleHeader& aHeader )
       
    37     {
       
    38     iCallState = aHeader.CallState();
       
    39     iCallFlags = aHeader.CallFlags();
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // MakeVisible
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 void CBubbleCallStatusIndi::MakeVisible(TBool aVisible)
       
    47     {
       
    48     CTelBubbleImage::MakeVisible( aVisible );
       
    49     
       
    50     if ( aVisible )
       
    51         {
       
    52         SetImageAndMask();
       
    53         }
       
    54     else
       
    55         {
       
    56         SetPicture( NULL, NULL );
       
    57         }
       
    58     };
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // SetImageAndMask
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 void CBubbleCallStatusIndi::SetImageAndMask()
       
    65     {
       
    66     SetPicture( NULL, NULL );
       
    67     }
       
    68 
       
    69 // End of file