diff -r 41a7f70b3818 -r 5266b1f337bd phoneuis/BubbleManager/bmcustomization/src/telbubbleimage.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneuis/BubbleManager/bmcustomization/src/telbubbleimage.cpp Wed Sep 01 12:30:10 2010 +0100 @@ -0,0 +1,92 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Default image implementation. +* +*/ + + +#include + + +#include "telbubbleimage.h" + +// ======== LOCAL FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +EXPORT_C CTelBubbleImage::CTelBubbleImage() + { + } + +// --------------------------------------------------------------------------- +// CBubbleAnim::NewL +// --------------------------------------------------------------------------- +// +EXPORT_C CTelBubbleImage* CTelBubbleImage::NewL() + { + CTelBubbleImage* self = new( ELeave )CTelBubbleImage(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +EXPORT_C CTelBubbleImage::~CTelBubbleImage() + { + AknsUtils::DeregisterControlPosition( this ); + } + +// --------------------------------------------------------------------------- +// CTelBubbleImage::SizeChanged +// --------------------------------------------------------------------------- +// +EXPORT_C void CTelBubbleImage::SizeChanged() + { + AknsUtils::RegisterControlPosition( this ); + + if ( this->Bitmap() ) + { + AknIconUtils::SetSize( + const_cast ( this->Bitmap() ), + Rect().Size() ); + } + + CEikImage::SizeChanged(); + } + +// --------------------------------------------------------------------------- +// CTelBubbleImage::PositionChanged +// --------------------------------------------------------------------------- +// +EXPORT_C void CTelBubbleImage::PositionChanged() + { + AknsUtils::RegisterControlPosition( this ); + CEikImage::PositionChanged(); + } + +// --------------------------------------------------------------------------- +// CTelBubbleImage::ConstructL +// --------------------------------------------------------------------------- +// +EXPORT_C void CTelBubbleImage::ConstructL() + { + } + +// end of file