|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LOADGEN_VALUESCONTAINER_H |
|
20 #define LOADGEN_VALUESCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 #include <eiklbo.h> |
|
25 #include <aknlists.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CLoadGenModel; |
|
29 class CLoadGenCAknSingleGraphicStyleListBox; |
|
30 |
|
31 // CLASS DECLARATIONS |
|
32 |
|
33 class CLoadGenMainContainer : public CCoeControl, MCoeControlObserver, MEikListBoxObserver |
|
34 { |
|
35 public: |
|
36 void ConstructL(const TRect& aRect); |
|
37 ~CLoadGenMainContainer(); |
|
38 |
|
39 private: |
|
40 void SizeChanged(); |
|
41 TInt CountComponentControls() const; |
|
42 CCoeControl* ComponentControl(TInt aIndex) const; |
|
43 void Draw(const TRect& aRect) const; |
|
44 void HandleResourceChange(TInt aType); |
|
45 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); // From MEikListBoxObserver |
|
46 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); // From MCoeControlObserver |
|
47 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
48 |
|
49 public: |
|
50 const CArrayFix<TInt>* ListBoxSelectionIndexes(); |
|
51 TInt ListBoxSelectionIndexesCount(); |
|
52 void SetDefaultTitlePaneTextL(); |
|
53 TInt CurrentListBoxItemIndex(); |
|
54 void SetListBoxTextArrayL(CDesCArray* aTextArray); |
|
55 inline CLoadGenCAknSingleGraphicStyleListBox* ListBox() { return iListBox; } |
|
56 |
|
57 private: |
|
58 CLoadGenModel* iModel; |
|
59 CLoadGenCAknSingleGraphicStyleListBox* iListBox; |
|
60 }; |
|
61 |
|
62 class CLoadGenCAknSingleGraphicStyleListBox : public CAknSingleGraphicStyleListBox |
|
63 { |
|
64 void SizeChanged(); |
|
65 void SizeChangedL(); |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |
|
70 // End of File |