|
1 /* |
|
2 * Copyright (c) 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: Container class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MPXAUDIOEFFECTSVIEWCONTAINER_H |
|
21 #define MPXAUDIOEFFECTSVIEWCONTAINER_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <coecntrl.h> |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMPXAudioEffectsItems; |
|
30 class CMPXAudioEffectsModel; |
|
31 class CMPXAudioEffectsViewImp; |
|
32 |
|
33 |
|
34 /** |
|
35 * |
|
36 * @class CMPXAudioEffectsViewContainer |
|
37 * @brief This is the container class for a list example based on the |
|
38 * standard Symbian OS architecture. |
|
39 * |
|
40 */ |
|
41 class CMPXAudioEffectsViewContainer : public CCoeControl |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * C++ default constructor. |
|
47 */ |
|
48 CMPXAudioEffectsViewContainer(); |
|
49 |
|
50 /** |
|
51 * Two-phased constructor |
|
52 */ |
|
53 void ConstructL( |
|
54 const TRect& aRect, |
|
55 CMPXAudioEffectsModel* aModel ); |
|
56 |
|
57 /** |
|
58 * Destructor |
|
59 */ |
|
60 ~CMPXAudioEffectsViewContainer(); |
|
61 |
|
62 /** |
|
63 * Change currently selected item |
|
64 */ |
|
65 void ChangeSelectedItemL(); |
|
66 |
|
67 private: // from CoeControl |
|
68 |
|
69 /** |
|
70 * From CCoeControl |
|
71 * Called by the framework in compound controls |
|
72 * @return The number of controls in this CMPXAudioEffectContainer |
|
73 */ |
|
74 TInt CountComponentControls() const; |
|
75 |
|
76 /** |
|
77 * From CCoeControl |
|
78 * Called by the framework in compound controls |
|
79 * @param The index of the control to return |
|
80 * @return The control for aIndex |
|
81 */ |
|
82 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
83 |
|
84 /** |
|
85 * From CCoeControl |
|
86 * Called by the framework whenever a key event occurs. |
|
87 * Passes the key event to the saved games list if it is not null, |
|
88 * otherwise returns EKeyWasNotConsumed |
|
89 * |
|
90 * @param aKeyEvent the Key event which occured, e.g. select key pressed |
|
91 * @param aType the type of Key event which occurred, e.g. key up, key |
|
92 * down |
|
93 * @return TKeyResponse EKeyWasNotConsumed if the key was not processed, |
|
94 * EKeyWasConsumed if it was |
|
95 */ |
|
96 TKeyResponse OfferKeyEventL( |
|
97 const TKeyEvent& aKeyEvent, |
|
98 TEventCode aType ); |
|
99 |
|
100 /** |
|
101 * From CCoeControl. |
|
102 * Responds to changes to the size and position of the contents of this |
|
103 * control. |
|
104 */ |
|
105 void SizeChanged(); |
|
106 |
|
107 /** |
|
108 * From CoeControl. |
|
109 * Handles a change to the control's resources. |
|
110 * |
|
111 * @param aType A message UID value. |
|
112 */ |
|
113 void HandleResourceChange( TInt aType ); |
|
114 |
|
115 /** |
|
116 * From CCoeControl |
|
117 */ |
|
118 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
119 |
|
120 private: //data |
|
121 |
|
122 CMPXAudioEffectsModel* iModel; // Not own |
|
123 CMPXAudioEffectsItems* iSettingItems; // Own. The settings list |
|
124 }; |
|
125 |
|
126 #endif |
|
127 |
|
128 // End of File |