phoneuis/BubbleManager/bmcustomization/src/telbubbleimage.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:  Default image implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <AknsUtils.h>
       
    20 
       
    21 
       
    22 #include "telbubbleimage.h"
       
    23 
       
    24 // ======== LOCAL FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // Constructor
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C CTelBubbleImage::CTelBubbleImage()
       
    31     {
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // CBubbleAnim::NewL
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 EXPORT_C CTelBubbleImage* CTelBubbleImage::NewL()
       
    39     {
       
    40     CTelBubbleImage* self = new( ELeave )CTelBubbleImage();
       
    41     CleanupStack::PushL( self );
       
    42     self->ConstructL();
       
    43     CleanupStack::Pop( self );
       
    44     return self;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // Destructor
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 EXPORT_C CTelBubbleImage::~CTelBubbleImage()
       
    52     {
       
    53     AknsUtils::DeregisterControlPosition( this );
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // CTelBubbleImage::SizeChanged
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 EXPORT_C void CTelBubbleImage::SizeChanged()
       
    61     { 
       
    62     AknsUtils::RegisterControlPosition( this );
       
    63 
       
    64     if ( this->Bitmap() )
       
    65         {
       
    66         AknIconUtils::SetSize( 
       
    67             const_cast<CFbsBitmap*> ( this->Bitmap() ), 
       
    68             Rect().Size() );
       
    69         }
       
    70 
       
    71     CEikImage::SizeChanged();
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // CTelBubbleImage::PositionChanged
       
    76 // ---------------------------------------------------------------------------
       
    77 //
       
    78 EXPORT_C void CTelBubbleImage::PositionChanged()
       
    79     {
       
    80     AknsUtils::RegisterControlPosition( this );
       
    81     CEikImage::PositionChanged();
       
    82     }
       
    83 
       
    84 // ---------------------------------------------------------------------------
       
    85 // CTelBubbleImage::ConstructL
       
    86 // ---------------------------------------------------------------------------
       
    87 //
       
    88 EXPORT_C void CTelBubbleImage::ConstructL()
       
    89     {
       
    90     }
       
    91 
       
    92 // end of file