uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksintiu.cpp
changeset 0 05e9090e2422
--- /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 <e32base.h>
+#include <fbs.h>
+#include <akninternaliconutils.h>
+#include <akniconutils.h>
+#include <avkon.mbg>
+
+#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;
+
+    }
+