|
1 /* |
|
2 * Copyright (c) 2005 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: Declaration of the CSecModUIContainerBase class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SECMODUICONTAINERBASE_H |
|
20 #define SECMODUICONTAINERBASE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 #include "SecModUISyncWrapper.h" |
|
25 // FORWARD DECLARATIONS |
|
26 class CEikLabel; // for example labels |
|
27 //class CAknColumnListBox; |
|
28 class CEikTextListBox; |
|
29 class CSecModUIModel; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * CSecModUIContainerBase container control class. |
|
35 * |
|
36 */ |
|
37 class CSecModUIContainerBase : public CCoeControl |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Overrided Default constructor |
|
43 */ |
|
44 CSecModUIContainerBase(CSecModUIModel& aModel, const TDesC& aContextName); |
|
45 |
|
46 /** |
|
47 * EPOC default constructor. |
|
48 * @param aRect Frame rectangle for container. |
|
49 */ |
|
50 virtual void ConstructL(const TRect& aRect); |
|
51 |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CSecModUIContainerBase(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 CEikTextListBox& ListBox(); |
|
61 virtual void SetupListItemsL(); |
|
62 |
|
63 //CCoeControl |
|
64 void FocusChanged( TDrawNow aDrawNow ); |
|
65 |
|
66 protected: // New functions |
|
67 |
|
68 virtual void CreateListL(); |
|
69 virtual void CreateResourceReaderLC(TResourceReader& aReader); |
|
70 virtual void ConstructListL(); |
|
71 |
|
72 |
|
73 protected: // Functions from base classes |
|
74 |
|
75 /** |
|
76 * From CoeControl,SizeChanged. |
|
77 */ |
|
78 virtual void SizeChanged(); |
|
79 |
|
80 /** |
|
81 * From CoeControl,CountComponentControls. |
|
82 */ |
|
83 virtual TInt CountComponentControls() const; |
|
84 |
|
85 /** |
|
86 * From CCoeControl,ComponentControl. |
|
87 */ |
|
88 virtual CCoeControl* ComponentControl(TInt aIndex) const; |
|
89 |
|
90 /** |
|
91 * From CCoeControl, OfferKeyEventL. |
|
92 */ |
|
93 virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
94 |
|
95 /** |
|
96 * From CCoeControl, GetHelpContext. |
|
97 */ |
|
98 void GetHelpContext(TCoeHelpContext& aContext) const; |
|
99 |
|
100 /** |
|
101 * Handles resource change |
|
102 */ |
|
103 void HandleResourceChange(TInt aType); |
|
104 |
|
105 protected: |
|
106 CEikTextListBox* iListBox; |
|
107 CSecModUIModel& iModel; |
|
108 private: //data |
|
109 TCoeContextName iContextName; |
|
110 |
|
111 |
|
112 |
|
113 }; |
|
114 |
|
115 #endif // SECMODUICONTAINERMAIN_H |
|
116 |
|
117 // End of File |