classicui_plat/ganes_api/tsrc/src/testplatganeblockshgsinglegraphiclist.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::TestCHgSingleGraphicListNewL
       
    26 // --------------------------------------------------------------------------
       
    27 //
       
    28 TInt CTestPlatGane::TestCHgSingleGraphicListNewL( CStifItemParser& /*aItem*/ )
       
    29     {
       
    30     _LIT(Kctestplatgane, "CTestPlatGane");
       
    31     _LIT(Ktestchgsinglegraphiclistnewl, "In TestCHgSingleGraphicListNewL");
       
    32     TestModuleIf().Printf(0, Kctestplatgane, Ktestchgsinglegraphiclistnewl);
       
    33     iLog->Log(Ktestchgsinglegraphiclistnewl);
       
    34 
       
    35     TInt left = 0;
       
    36     TInt wrigth = KTest;
       
    37     TInt item = 0;
       
    38     TRect rect(TPoint( left, left), TPoint( wrigth, wrigth) );
       
    39     
       
    40     CHgSingleGraphicList* list = CHgSingleGraphicList::NewL( rect, item);
       
    41     CleanupStack::PushL( list );
       
    42     CleanupStack::PopAndDestroy( list );
       
    43 
       
    44     return KErrNone;
       
    45     }
       
    46 
       
    47 // --------------------------------------------------------------------------
       
    48 // CTestPlatGane::TestCHgSingleGraphicListPreferredImageSize
       
    49 // --------------------------------------------------------------------------
       
    50 //
       
    51 TInt CTestPlatGane::TestCHgSingleGraphicListPreferredImageSize( CStifItemParser& /*aItem*/ )
       
    52     {
       
    53     _LIT(Kctestplatgane, "CTestPlatGane");
       
    54     _LIT(KTestCHgSingleGraphicListPreferredImageSize, "In TestCHgSingleGraphicListPreferredImageSize");
       
    55     TestModuleIf().Printf(0, Kctestplatgane, KTestCHgSingleGraphicListPreferredImageSize);
       
    56     iLog->Log(KTestCHgSingleGraphicListPreferredImageSize);
       
    57 
       
    58     CHgSingleGraphicList::PreferredImageSize();
       
    59 
       
    60     return KErrNone;
       
    61     }
       
    62