|
1 /* |
|
2 * Copyright (c) 2009 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: This file contains CTestSetInsertMenuContainer |
|
15 * class definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TESTSETINSERTMENUCONTAINER_H |
|
20 #define TESTSETINSERTMENUCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "Container.h" |
|
24 |
|
25 #include <coecntrl.h> |
|
26 #include <eiklbo.h> // MEikListBoxObserver |
|
27 #include <bamdesca.h> // MDesCArray |
|
28 #include <aknsfld.h> |
|
29 |
|
30 //#include "RRefArray.h" |
|
31 //#include "UIEngine.h" |
|
32 //#include "UIStoreIf.h" |
|
33 //#include "UIStoreContainer.h" |
|
34 |
|
35 #include <stifinternal/RRefArray.h> |
|
36 #include <stifinternal/UIEngine.h> |
|
37 #include <stifinternal/UIStoreIf.h> |
|
38 #include <stifinternal/UIStoreContainer.h> |
|
39 |
|
40 |
|
41 |
|
42 // FORWARD DECLARATIONS |
|
43 class CEikTextListBox; |
|
44 class CDesC16Array; |
|
45 |
|
46 class CTestSetInsertMenuView; |
|
47 class CEikColumnListBox; |
|
48 class CStartedTestCase; |
|
49 |
|
50 class CUIStoreHandler; |
|
51 class CUIStore; |
|
52 class CUIStoreIf; |
|
53 class CUIEngineContainer; |
|
54 class CUIEngine; |
|
55 |
|
56 // CLASS DECLARATION |
|
57 /** |
|
58 * CTestSetInsertMenuContainer container control class. |
|
59 * |
|
60 */ |
|
61 class CTestSetInsertMenuContainer : public CContainer //public CCoeControl /*, MEikListBoxObserver */ /* MCoeControlObserver */ |
|
62 { |
|
63 public: // Constructors and destructor |
|
64 |
|
65 /** |
|
66 * Symbian OS default constructor. |
|
67 * @param aRect Frame rectangle for container. |
|
68 */ |
|
69 void ConstructL(const TRect& aRect, MEikListBoxObserver* aListBoxObserver); |
|
70 |
|
71 /** |
|
72 * Destructor. |
|
73 */ |
|
74 ~CTestSetInsertMenuContainer(); |
|
75 |
|
76 public: // New functions |
|
77 |
|
78 /** |
|
79 * Stores current position of focus of iListBox to the CAppUiAppUi object |
|
80 */ |
|
81 void SaveActiveLine(); |
|
82 |
|
83 public: // Functions from base classes |
|
84 |
|
85 private: // Functions from base classes |
|
86 |
|
87 /** |
|
88 * From CoeControl,SizeChanged. |
|
89 * Called by framework when the view size is changed. |
|
90 */ |
|
91 void SizeChanged(); |
|
92 |
|
93 /** |
|
94 * From CoeControl,CountComponentControls. |
|
95 * Gets a count of the component controls of this list box control. |
|
96 * This information is used for DrawNow(). |
|
97 */ |
|
98 TInt CountComponentControls() const; |
|
99 |
|
100 /** |
|
101 * From CCoeControl,ComponentControl. |
|
102 * Gets a pointer to the specified component control. |
|
103 * @param aIndex Index of the component control to look up. |
|
104 * @return The control at aIndex. |
|
105 */ |
|
106 CCoeControl* ComponentControl(TInt aIndex) const; |
|
107 |
|
108 /** |
|
109 * From CCoeControl,Draw. |
|
110 * Draw a control, called by window server. |
|
111 * @param aRect The region of the control to be redrawn. Co-ordinates |
|
112 * are relative to the control's origin (top left corner). |
|
113 */ |
|
114 void Draw(const TRect& aRect) const; |
|
115 |
|
116 /** |
|
117 * From CCoeControl,OfferKeyEventL |
|
118 * Handles key events. |
|
119 * @param aKeyEvent The key event. |
|
120 * @param aType The type of key event. |
|
121 * @return Indicates whether or not the key event was used |
|
122 * by this control. |
|
123 */ |
|
124 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
125 |
|
126 private: //data |
|
127 |
|
128 CTestSetInsertMenuView* iParentView; |
|
129 }; |
|
130 |
|
131 #endif // CTestSetInsertMenuContainer_H |
|
132 |
|
133 // End of File |