|
1 /* |
|
2 * Copyright (c) 2007 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: Control for containing the NaviPane |
|
15 * |
|
16 * CCopyright © 2007 Nokia. All rights reserved. |
|
17 * This material, including documentation and any related computer |
|
18 * programs, is protected by copyright controlled by Nokia. All |
|
19 * rights are reserved. Copying, including reproducing, storing, |
|
20 * adapting or translating, any or all of this material requires the |
|
21 * prior written consent of Nokia. This material also contains |
|
22 * confidential information which may not be disclosed to others |
|
23 * without the prior written consent of Nokia. |
|
24 |
|
25 * |
|
26 * |
|
27 */ |
|
28 |
|
29 |
|
30 #ifndef CAMAPPLICATIONPANE_H |
|
31 #define CAMAPPLICATIONPANE_H |
|
32 |
|
33 // INCLUDES |
|
34 #include <coecntrl.h> |
|
35 #include <aknutils.h> |
|
36 #include "CamSettings.hrh" |
|
37 #include "CamAppController.h" |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 class MAknsSkinInstance; |
|
41 class CAknsBasicBackgroundControlContext; |
|
42 class CCamNaviCounter; |
|
43 class CCamNaviProgressBar; |
|
44 class CCamBurstThumbnailGridModel; |
|
45 class CCamTitlePane; |
|
46 |
|
47 // CLASS DECLARATION |
|
48 |
|
49 /** |
|
50 * Control for containing the NaviPane |
|
51 * @since 2.8 |
|
52 */ |
|
53 class CCamApplicationPane : public CCoeControl |
|
54 { |
|
55 private: |
|
56 // Enumeration used to indicate the pane currently visible |
|
57 enum TAppPane |
|
58 { |
|
59 EAppPaneUndefined, |
|
60 EAppPaneCounter, |
|
61 EAppPaneProgress |
|
62 }; |
|
63 |
|
64 public: // Constructors and destructor |
|
65 /** |
|
66 * Static factory construction function |
|
67 * @since 3.0 |
|
68 * @param aController Reference to CCamAppController |
|
69 * @return pointer to constructed instance of CCamApplicationPane |
|
70 */ |
|
71 static CCamApplicationPane* NewL( CCamAppController& aController ); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 */ |
|
76 ~CCamApplicationPane(); |
|
77 |
|
78 public: // New functions |
|
79 /** |
|
80 * Shows the NaviProgress control in the Application Pane |
|
81 * @since 3.0 |
|
82 */ |
|
83 void ShowProgress(); |
|
84 |
|
85 /** |
|
86 * Shows the NaviCounter control in the Application Pane |
|
87 * @since 3.0 |
|
88 */ |
|
89 void ShowCounter(); |
|
90 |
|
91 /** |
|
92 * Sets the capture mode the pane should indicate |
|
93 * @since 3.0 |
|
94 * @param aCaptureMode The capture mode to use |
|
95 */ |
|
96 void SetCaptureMode( TCamCameraMode aMode ); |
|
97 |
|
98 /** |
|
99 * Sets the burst model to use if app pane showing burst filenames |
|
100 * @since 3.0 |
|
101 * @param aModel The grid model to get filenames from |
|
102 */ |
|
103 void SetBurstModelL( CCamBurstThumbnailGridModel* aModel ); |
|
104 |
|
105 /** |
|
106 * Sets the owned panes to a known good state (all invisible) |
|
107 * @since 3.0 |
|
108 */ |
|
109 void InitialisePanesL(); |
|
110 |
|
111 public: // Functions from base classes |
|
112 /** |
|
113 * Returns the number of component controls |
|
114 * @since 3.0 |
|
115 * @return The number of owned controls to display |
|
116 */ |
|
117 TInt CountComponentControls() const; |
|
118 |
|
119 /** |
|
120 * Returns the specified component control |
|
121 * @since 3.0 |
|
122 * @param aIndex The index of the control to return |
|
123 * @return Pointer to the specified control |
|
124 */ |
|
125 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
126 |
|
127 protected: |
|
128 /** |
|
129 * C++ constructor. |
|
130 * @since 3.0 |
|
131 * @param aController Reference to CCamAppController |
|
132 */ |
|
133 CCamApplicationPane( CCamAppController& aController ); |
|
134 |
|
135 /** |
|
136 * Symbian OS 2nd phase constructor. |
|
137 * @since 3.0 |
|
138 */ |
|
139 void ConstructL(); |
|
140 |
|
141 private: // Functions from base classes |
|
142 |
|
143 /** |
|
144 * From CCoeControl |
|
145 * @since 3.0 |
|
146 * Set the size and position of its component controls. |
|
147 */ |
|
148 void SizeChanged(); |
|
149 |
|
150 /** |
|
151 * From CCoeControl Draw the view |
|
152 * @since 3.0 |
|
153 * @param aRect area where to draw |
|
154 */ |
|
155 void Draw( const TRect& aRect ) const; |
|
156 |
|
157 |
|
158 protected: //data |
|
159 // The current pane displayed in the Application Pane |
|
160 TAppPane iPaneInUse; |
|
161 |
|
162 // Instance of Navi Counter control |
|
163 CCamNaviCounter* iNaviCounter; |
|
164 |
|
165 // Instance of Navi Progress control |
|
166 CCamNaviProgressBar* iNaviProgressBar; |
|
167 |
|
168 // Controller used to initialise the Navi controls. Not owned |
|
169 CCamAppController& iController; |
|
170 |
|
171 // Instance of the Title Pane control |
|
172 CCamTitlePane* iTitlePane; |
|
173 |
|
174 // Layout for the Application Pane rectangle |
|
175 TAknLayoutRect iAppPaneLayoutRect; |
|
176 }; |
|
177 |
|
178 #endif // CAMAPPLICATIONPANE_H |
|
179 |
|
180 // End of File |