|
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::TestCHgGridNewL |
|
26 // -------------------------------------------------------------------------- |
|
27 // |
|
28 TInt CTestPlatGane::TestCHgGridNewL( CStifItemParser& /*aItem*/ ) |
|
29 { |
|
30 _LIT(Kctestplatgane, "CTestPlatGane"); |
|
31 _LIT(Ktestchggridnewl, "In TestCHgGridNewL"); |
|
32 TestModuleIf().Printf(0, Kctestplatgane, Ktestchggridnewl); |
|
33 iLog->Log(Ktestchggridnewl); |
|
34 |
|
35 TInt left = 0; |
|
36 TInt wrigth = KTest; |
|
37 TInt item = 0; |
|
38 TRect rect(TPoint( left, left), TPoint( wrigth, wrigth) ); |
|
39 CHgGrid* temp = CHgGrid::NewL( rect, item); |
|
40 CleanupStack::PushL( temp ); |
|
41 CleanupStack::PopAndDestroy( temp ); |
|
42 |
|
43 return KErrNone; |
|
44 } |
|
45 |
|
46 // -------------------------------------------------------------------------- |
|
47 // CTestPlatGane::TestCHgGridPreferredImageSize |
|
48 // -------------------------------------------------------------------------- |
|
49 // |
|
50 TInt CTestPlatGane::TestCHgGridPreferredImageSize( CStifItemParser& /*aItem*/ ) |
|
51 { |
|
52 _LIT(Kctestplatgane, "CTestPlatGane"); |
|
53 _LIT(KTestCHgGridPreferredImageSize, "In TestCHgGridPreferredImageSize"); |
|
54 TestModuleIf().Printf(0, Kctestplatgane, KTestCHgGridPreferredImageSize); |
|
55 iLog->Log(KTestCHgGridPreferredImageSize); |
|
56 |
|
57 CHgGrid::PreferredImageSize(); |
|
58 |
|
59 return KErrNone; |
|
60 } |
|
61 |
|
62 TInt CTestPlatGane::TestCHgGridSetLandscapeScrollingSupport( CStifItemParser& /*aItem*/ ) |
|
63 { |
|
64 _LIT(Kctestplatgane, "CTestPlatGane"); |
|
65 _LIT(KTestCHgGridSetLandscapeScrollingSupport, "In TestCHgGridSetLandscapeScrollingSupport"); |
|
66 TestModuleIf().Printf(0, Kctestplatgane, KTestCHgGridSetLandscapeScrollingSupport); |
|
67 iLog->Log(KTestCHgGridSetLandscapeScrollingSupport); |
|
68 |
|
69 TInt left = 0; |
|
70 TInt wrigth = KTest; |
|
71 TInt item = 0; |
|
72 TRect rect(TPoint( left, left), TPoint( wrigth, wrigth) ); |
|
73 CHgGrid* temp = CHgGrid::NewL( rect, item); |
|
74 temp->SetLandscapeScrollingSupport(ETrue); |
|
75 CleanupStack::PushL( temp ); |
|
76 CleanupStack::PopAndDestroy( temp ); |
|
77 |
|
78 return KErrNone; |
|
79 } |