uiresources_pub/pictograph_api/tsrc/src/testsdkpictographblocksintiu.cpp
author James Aley <jamesa@symbian.org>
Wed, 16 Jun 2010 14:20:09 +0100
branchGCC_SURGE
changeset 65 38e4cecf6e95
parent 0 05e9090e2422
permissions -rw-r--r--
Most issues for Bug 2960 fixed

/*
* 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;

    }