diff -r 000000000000 -r 05e9090e2422 uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksint.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksint.cpp Thu Dec 17 09:14:12 2009 +0200 @@ -0,0 +1,74 @@ +/* +* 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: test aknpictographinterface.h + akniconsrvclient.h + akniconutils.h + akninternaliconutils.h +* +*/ + + +#include +#include + +#include "testsdkpictograph.h" +#include "aknpictographdrawerinterfaceext.h" +#include "testsdkpictographcontrol.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraph::TestIntfaceNewL +// ----------------------------------------------------------------------------- +// +TInt CTestSDKPicToGraph::TestIntfaceNewL( CStifItemParser& /*aItem*/ ) + { + + // Print to UI + _LIT( KTestSDKPicToGraph, "testsdkpictograph" ); + _LIT( KTestIntfaceNewL, "In Interface NewL" ); + TestModuleIf().Printf( 0, KTestSDKPicToGraph, KTestIntfaceNewL ); + // Print to log file + iLog->Log( KTestIntfaceNewL ); + + CTestSDKPicToGraphControl* control = CTestSDKPicToGraphControl::NewL(); + CleanupStack::PushL( control ); + CAknPictographAnimatorCallBackExt* callBack = new ( ELeave ) + CAknPictographAnimatorCallBackExt; + CleanupStack::PushL( callBack ); + + FeatureManager::InitializeLibL(); + + TBool pictographsSupported = + FeatureManager::FeatureSupported( KFeatureIdJapanesePicto ); + + FeatureManager::UnInitializeLib(); + + CAknPictographInterface* intface = CAknPictographInterface::NewL( *control, + *callBack ); + + + CleanupStack::PushL( intface ); + if( pictographsSupported ) + { + STIF_ASSERT_NOT_NULL( intface ); + } + + CleanupStack::PopAndDestroy( intface ); + CleanupStack::PopAndDestroy( callBack ); + CleanupStack::PopAndDestroy( control ); + return KErrNone; + + } +