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