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