|
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: Test grids_api |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_TESTSDKGRIDSEXT_H |
|
19 #define C_TESTSDKGRIDSEXT_H |
|
20 |
|
21 /* |
|
22 * INCLUDES |
|
23 */ |
|
24 #include <e32base.h> |
|
25 #include <akngrid.h> |
|
26 #include <gulicon.h> |
|
27 #include <e32cmn.h> |
|
28 #include <eikclb.h> |
|
29 |
|
30 /** |
|
31 * Test Class CMPslnFWMSKObserverExt |
|
32 */ |
|
33 class CAknGridExt : public CAknGrid |
|
34 { |
|
35 public: |
|
36 /* |
|
37 * Constructor |
|
38 */ |
|
39 CAknGridExt(); |
|
40 /* |
|
41 * Destructor |
|
42 */ |
|
43 virtual ~CAknGridExt(); |
|
44 /* |
|
45 * This function is wrote for testing CAknGridView's protected function |
|
46 */ |
|
47 TInt HorizontalNudgeValue() const; |
|
48 /* |
|
49 * This function is wrote for testing CAknGridView's protected function |
|
50 */ |
|
51 TInt HorizScrollGranularityInPixels() const; |
|
52 /* |
|
53 * This function is wrote for testing CAknGridView's protected function |
|
54 */ |
|
55 void AdjustTopItemIndex() const; |
|
56 /* |
|
57 * This function is wrote for testing CAknGridView's protected function |
|
58 */ |
|
59 void HandleDragEventL(TPoint aPointerPos); |
|
60 /* |
|
61 * This function is wrote for testing CAknGridView's protected function |
|
62 */ |
|
63 void RestoreClientRectFromViewRect(TRect& aClientRect) const; |
|
64 /* |
|
65 * This function is wrote for testing CAknGridView's protected function |
|
66 */ |
|
67 TInt AdjustRectHeightToWholeNumberOfItems(TRect& aRect) const; |
|
68 /* |
|
69 * This function is wrote for testing CAknGridView's protected function |
|
70 */ |
|
71 void UpdateScrollBarThumbs() const; |
|
72 /* |
|
73 * This function is wrote for testing CAknGridView's protected function |
|
74 */ |
|
75 TInt CountComponentControls() const; |
|
76 /* |
|
77 * This function is wrote for testing CAknGridView's protected function |
|
78 */ |
|
79 void MoveToNextOrPreviousItemL(TPoint aPoint); |
|
80 /* |
|
81 * This function is wrote for testing CAknGridView's protected function |
|
82 */ |
|
83 void CalcGridSizeL(); |
|
84 /* |
|
85 * This function is wrote for testing CAknGridView's protected function |
|
86 */ |
|
87 void CreateItemDrawerL(); |
|
88 /* |
|
89 * This function is wrote for testing CAknGridView's protected function |
|
90 */ |
|
91 void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType); |
|
92 /* |
|
93 * This function is wrote for testing CAknGridView's protected function |
|
94 */ |
|
95 TTypeUid::Ptr MopSupplyObject(TTypeUid aId); |
|
96 }; |
|
97 |
|
98 #endif /*TESTSDKGRIDSEXT_H_*/ |
|
99 |
|
100 /* |
|
101 * End files |
|
102 */ |