diff -r 000000000000 -r f72a12da539e idlehomescreen/xmluirendering/renderingplugins/xnbitmapfactory/src/xnbitmap.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/idlehomescreen/xmluirendering/renderingplugins/xnbitmapfactory/src/xnbitmap.cpp Thu Dec 17 08:40:49 2009 +0200 @@ -0,0 +1,98 @@ +/* +* Copyright (c) 2002-2006 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: Xuikon Bitmap component. +* +*/ + + + +#include "xnbitmap.h" +#include "xnbitmapadapter.h" +// ============================ MEMBER FUNCTIONS =============================== + + + + +// ----------------------------------------------------------------------------- +// CXnBitmap::NewL +// Symbian static 1st phase constructor +// ----------------------------------------------------------------------------- +// +CXnBitmap* CXnBitmap::NewL() + { + CXnBitmap* self = new( ELeave ) CXnBitmap; + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + + return self; + } + +// ----------------------------------------------------------------------------- +// CXnBitmap::ConstructL +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CXnBitmap::ConstructL() + { + } + +// ----------------------------------------------------------------------------- +// CXnBitmap::CXnBitmap +// C++ default constructor +// ----------------------------------------------------------------------------- +// +CXnBitmap::CXnBitmap() + { + } + +// ----------------------------------------------------------------------------- +// CXnBitmap::~CXnBitmap +// C++ destructor +// ----------------------------------------------------------------------------- +// +CXnBitmap::~CXnBitmap() + { + } + +// ----------------------------------------------------------------------------- +// CXnBitmap::SetContentBitmaps +// ----------------------------------------------------------------------------- +// +void CXnBitmap::SetContentBitmaps(CFbsBitmap* aBitmap, CFbsBitmap* aMask) + { + (static_cast(ControlAdapter()))->SetContentBitmaps(aBitmap, aMask); + } + +// ----------------------------------------------------------------------------- +// CXnBitmap::ContentBitmaps +// ----------------------------------------------------------------------------- +// +void CXnBitmap::ContentBitmaps(CFbsBitmap*& aBitmap, CFbsBitmap*& aMask) + { + (static_cast(ControlAdapter()))->ContentBitmaps(aBitmap, aMask); + } + +// --------------------------------------------------------- +// --------------------------------------------------------- +XnComponentInterface::MXnComponentInterface* CXnBitmap::MakeInterfaceL(const TDesC8& aType) + { + if (aType != XnImageInterface::KType) + { + return NULL; + } + XnImageInterface::MXnImageInterface* imgintr = static_cast(this); + return imgintr; + }