phoneuis/BubbleManager/Src/BMBubbleOutlookHide.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Outlook Hide
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "BMBubbleManager.h" //for enumerations
       
    21 #include    "BMBubbleOutlookHide.h"
       
    22 #include    "BMBubbleImageManager.h"
       
    23 #include    "BMResourceManager.h"
       
    24 #include    "BMBubbleHeader.h"
       
    25 #include    "BMLayout.h"
       
    26 #include    "BMUtils.h"
       
    27 
       
    28 #include    <eiklabel.h> 
       
    29 #include    <eikimage.h>
       
    30 #include    <AknsUtils.h>
       
    31 
       
    32 // ========================= MEMBER FUNCTIONS ================================
       
    33 
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // CBubbleOutlookHide::CBubbleOutlookHide
       
    37 //
       
    38 //  
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CBubbleOutlookHide::CBubbleOutlookHide( CBubbleManager& aBubbleManager) 
       
    42 : CBubbleOutlook( aBubbleManager )
       
    43     {
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CBubbleOutlookHide::ConstructL
       
    48 // 
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 
       
    52 void CBubbleOutlookHide::ConstructL()
       
    53     {     
       
    54     CBubbleOutlook::ConstructL( );
       
    55     ActivateL();
       
    56     }
       
    57 
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // CBubbleOutlookHide::~CBubbleOutlookHide
       
    61 //
       
    62 //  
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 CBubbleOutlookHide::~CBubbleOutlookHide()
       
    66     {
       
    67     Reset();
       
    68     }
       
    69 
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // CBubbleOutlookHide::Reset
       
    73 //
       
    74 //  
       
    75 // ---------------------------------------------------------------------------
       
    76 //
       
    77 void CBubbleOutlookHide::Reset()
       
    78     {
       
    79     iBubbleManager.ResourceManager().ReleaseEikImage( iBubble );
       
    80     }
       
    81 
       
    82 
       
    83 // ---------------------------------------------------------------------------
       
    84 // CBubbleOutlookHide::ReadBubbleHeader
       
    85 //
       
    86 //  
       
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 void CBubbleOutlookHide::ReadBubbleHeader( CBubbleHeader& /*aHeader*/ )
       
    90     {
       
    91     iBubble = iBubbleManager.ResourceManager().ReserveEikImage( ETrue );
       
    92     iBubbleManager.ImageManager().SetBitmapToImage( 
       
    93         iBubble , 
       
    94         EQgn_graf_call_hidden_held , 
       
    95         EQgn_graf_call_hidden_held_mask );
       
    96     SizeChanged();
       
    97     }
       
    98 
       
    99 
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // CBubbleOutlookHide::SizeChanged
       
   103 // called by framwork when the view size is changed
       
   104 //  
       
   105 // ---------------------------------------------------------------------------
       
   106 //
       
   107 void CBubbleOutlookHide::SizeChanged()
       
   108     {
       
   109     AknsUtils::RegisterControlPosition( this );
       
   110     BubbleUtils::LayoutBackgroundImage( 
       
   111         iBubble , 
       
   112         Rect(), 
       
   113         BubbleLayout::popup_call_audio_first_window_6_graphics_1() );
       
   114     }
       
   115 
       
   116 
       
   117 // ---------------------------------------------------------------------------
       
   118 // CBubbleOutlookHide::DrawTimerCostNow
       
   119 //
       
   120 //  Pure virtual in base class.
       
   121 // ---------------------------------------------------------------------------
       
   122 //
       
   123 void CBubbleOutlookHide::DrawTimerCostNow()
       
   124     {
       
   125     }
       
   126 
       
   127 // ---------------------------------------------------------------------------
       
   128 // CBubbleOutlookHide::DrawCLINow
       
   129 //
       
   130 //  Pure virtual in base class.
       
   131 // ---------------------------------------------------------------------------
       
   132 //
       
   133 void CBubbleOutlookHide::DrawCLINow()
       
   134     {
       
   135     }
       
   136 
       
   137 // ---------------------------------------------------------------------------
       
   138 // CBubbleOutlookHide::DrawBitmaps
       
   139 //
       
   140 //  
       
   141 // ---------------------------------------------------------------------------
       
   142 //
       
   143 void CBubbleOutlookHide::DrawBitmaps( CBitmapContext& aGc ) const
       
   144     {
       
   145     aGc.SetBrushColor( AKN_LAF_COLOR( BubbleLayout::LayoutColourWhite() ) );
       
   146     BubbleUtils::DrawMaskedImage( aGc , iBubble );    
       
   147     }
       
   148 
       
   149 // ---------------------------------------------------------------------------
       
   150 // CBubbleOutlookHide::HandleAnimationStartL
       
   151 //
       
   152 //  Pure virtual in base class.
       
   153 // ---------------------------------------------------------------------------
       
   154 //
       
   155 void CBubbleOutlookHide::HandleAnimationStartL() const
       
   156     {
       
   157     }
       
   158 
       
   159 // ---------------------------------------------------------------------------
       
   160 //  CBubbleOutlookHide::DrawCallHeaderText
       
   161 // ---------------------------------------------------------------------------
       
   162 //
       
   163 void CBubbleOutlookHide::DrawCallHeaderText()
       
   164     {
       
   165     }
       
   166 
       
   167 
       
   168 // End of File