classicui_plat/ganes_api/tsrc/src/testplatganeblockshgvgitem.cpp
changeset 47 2f0c06423c72
parent 46 0e1e0022bd03
child 53 3c67ea82fafc
equal deleted inserted replaced
46:0e1e0022bd03 47:2f0c06423c72
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  ganes_api
       
    15 *
       
    16 */
       
    17 
       
    18 // [INCLUDE FILES]
       
    19 #include "testplatgane.h"
       
    20 
       
    21 // ============================ MEMBER FUNCTIONS =========================
       
    22 
       
    23 
       
    24 // --------------------------------------------------------------------------
       
    25 // CTestPlatGane::TestCHgItemNewL
       
    26 // --------------------------------------------------------------------------
       
    27 //
       
    28 TInt CTestPlatGane::TestCHgVgItemNewL( CStifItemParser& /*aItem*/ )
       
    29     {
       
    30     _LIT(Kctestplatgane, "CTestPlatGane");
       
    31     _LIT(Ktestchgitemnewl, "In TestCHgVgItemNewL");
       
    32     TestModuleIf().Printf(0, Kctestplatgane, Ktestchgitemnewl);
       
    33     iLog->Log(Ktestchgitemnewl);
       
    34 
       
    35     CHgVgItem* temp = CHgVgItem::NewL();
       
    36     CleanupStack::PushL( temp );
       
    37     CleanupStack::PopAndDestroy( temp );
       
    38 
       
    39     return KErrNone;
       
    40     }
       
    41 
       
    42 // --------------------------------------------------------------------------
       
    43 // CTestPlatGane::TestCHgItemNewLCL
       
    44 // --------------------------------------------------------------------------
       
    45 //
       
    46 TInt CTestPlatGane::TestCHgVgItemNewLC( CStifItemParser& /*aItem*/ )
       
    47     {
       
    48     _LIT(Kctestplatgane, "CTestPlatGane");
       
    49     _LIT(Ktestchgitemnewlcl, "In TestCHgVgItemNewLC");
       
    50     TestModuleIf().Printf(0, Kctestplatgane, Ktestchgitemnewlcl);
       
    51     iLog->Log(Ktestchgitemnewlcl);
       
    52 
       
    53     CHgVgItem* temp = CHgVgItem::NewLC();
       
    54     CleanupStack::PopAndDestroy( temp );
       
    55 
       
    56     return KErrNone;
       
    57     }
       
    58 
       
    59 // --------------------------------------------------------------------------
       
    60 // CTestPlatGane::TestCHgItemSetIconL
       
    61 // --------------------------------------------------------------------------
       
    62 //
       
    63 TInt CTestPlatGane::TestCHgVgItemSetIcon( CStifItemParser& /*aItem*/ )
       
    64     {
       
    65     _LIT(Kctestplatgane, "CTestPlatGane");
       
    66     _LIT(Ktestchgitemseticonl, "In TestCHgVgItemSetIcon");
       
    67     TestModuleIf().Printf(0, Kctestplatgane, Ktestchgitemseticonl);
       
    68     iLog->Log(Ktestchgitemseticonl);
       
    69 
       
    70     CHgVgItem* temp = CHgVgItem::NewL();
       
    71     CleanupStack::PushL( temp );
       
    72     temp->SetIcon( NULL );
       
    73     CleanupStack::PopAndDestroy( temp );
       
    74 
       
    75     return KErrNone;
       
    76     }
       
    77