1 /* |
|
2 * Copyright (c) 2005-2006 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: Simulation PSY Configuration UI application container class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSIMPSYUICONTAINER_H_ |
|
20 #define CSIMPSYUICONTAINER_H_ |
|
21 |
|
22 #include <coecntrl.h> |
|
23 #include <eiklbo.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CAknDoubleStyleListBox; |
|
27 class CSimPsyUiAppUi; |
|
28 |
|
29 class CSimPsyUiContainer : public CCoeControl |
|
30 { |
|
31 public: |
|
32 void ConstructL(const TRect& aRect, |
|
33 CSimPsyUiAppUi* aAppUi); |
|
34 |
|
35 ~CSimPsyUiContainer(); |
|
36 |
|
37 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
38 |
|
39 void UpdateListBox(); |
|
40 |
|
41 protected: |
|
42 void FocusChanged(TDrawNow aDrawNow); |
|
43 void HandleResourceChange(TInt aType); |
|
44 |
|
45 private: // From CCoeControl |
|
46 /** |
|
47 * From CoeControl,SizeChanged. |
|
48 */ |
|
49 void SizeChanged(); |
|
50 |
|
51 /** |
|
52 * From CoeControl,CountComponentControls. |
|
53 */ |
|
54 TInt CountComponentControls() const; |
|
55 |
|
56 /** |
|
57 * From CCoeControl,ComponentControl. |
|
58 */ |
|
59 CCoeControl* ComponentControl(TInt aIndex) const; |
|
60 |
|
61 private: |
|
62 void CreateListboxL(); |
|
63 |
|
64 private: //data |
|
65 CAknDoubleStyleListBox* iListBox; |
|
66 CSimPsyUiAppUi* iAppUi; |
|
67 }; |
|
68 |
|
69 #endif // CSIMPSYUICONTAINER_H_ |
|