diff -r 000000000000 -r 05e9090e2422 uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksintiu.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksintiu.cpp Thu Dec 17 09:14:12 2009 +0200 @@ -0,0 +1,60 @@ +/* +* 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 +#include +#include + +#include "testsdkpictograph.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraph::TestIntUtilSetAppIconL +// ----------------------------------------------------------------------------- +// +TInt CTestSDKPicToGraph::TestIntUtilSetAppIconL( CStifItemParser& /*aItem*/ ) + { + + // Print to UI + _LIT( KTestSDKPicToGraph, "testsdkpictograph" ); + _LIT( KTestIntUtilSetAppIcon, "In InternalUtils SetAppIcon" ); + TestModuleIf().Printf( 0, KTestSDKPicToGraph, KTestIntUtilSetAppIcon ); + // Print to log file + iLog->Log( KTestIntUtilSetAppIcon ); + + CFbsBitmap* bitmap = NULL; + CFbsBitmap* mask = NULL; + AknIconUtils::CreateIconL( bitmap, mask, AknIconUtils::AvkonIconFileName(), + EMbmAvkonQgn_indi_mic, EMbmAvkonQgn_indi_mic_mask ); + CleanupStack::PushL( bitmap ); + CleanupStack::PushL( mask ); + AknInternalIconUtils::SetAppIcon( bitmap ); + + CleanupStack::PopAndDestroy( mask ); + CleanupStack::PopAndDestroy( bitmap ); + return KErrNone; + + } +