uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksintiu.cpp
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  test aknpictographinterface.h
       
    15                       akniconsrvclient.h
       
    16                       akniconutils.h
       
    17                       akninternaliconutils.h
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <fbs.h>
       
    25 #include <akninternaliconutils.h>
       
    26 #include <akniconutils.h>
       
    27 #include <avkon.mbg>
       
    28 
       
    29 #include "testsdkpictograph.h"
       
    30 
       
    31 // ============================ MEMBER FUNCTIONS ===============================
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // CTestSDKPicToGraph::TestIntUtilSetAppIconL
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 TInt CTestSDKPicToGraph::TestIntUtilSetAppIconL( CStifItemParser& /*aItem*/ )
       
    38     {
       
    39 
       
    40     // Print to UI
       
    41     _LIT( KTestSDKPicToGraph, "testsdkpictograph" );
       
    42     _LIT( KTestIntUtilSetAppIcon, "In InternalUtils SetAppIcon" );
       
    43     TestModuleIf().Printf( 0, KTestSDKPicToGraph, KTestIntUtilSetAppIcon );
       
    44     // Print to log file
       
    45     iLog->Log( KTestIntUtilSetAppIcon );
       
    46 
       
    47     CFbsBitmap* bitmap = NULL;
       
    48     CFbsBitmap* mask = NULL;
       
    49     AknIconUtils::CreateIconL( bitmap, mask, AknIconUtils::AvkonIconFileName(),
       
    50             EMbmAvkonQgn_indi_mic, EMbmAvkonQgn_indi_mic_mask );
       
    51     CleanupStack::PushL( bitmap );
       
    52     CleanupStack::PushL( mask );
       
    53     AknInternalIconUtils::SetAppIcon( bitmap );
       
    54 
       
    55     CleanupStack::PopAndDestroy( mask );
       
    56     CleanupStack::PopAndDestroy( bitmap );
       
    57     return KErrNone;
       
    58 
       
    59     }
       
    60