|
1 /* |
|
2 * Copyright (c) 2007-2008 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: View class for video post capture view* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef CAMVIDEOPOSTCAPTUREVIEW_H |
|
19 #define CAMVIDEOPOSTCAPTUREVIEW_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "CamPostCaptureViewBase.h" |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CCamAppController; |
|
26 class CCamContainerBase; |
|
27 class CCamTimer; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * View class for video capture |
|
33 * |
|
34 * @since 2.8 |
|
35 */ |
|
36 class CCamVideoPostCaptureView : public CCamPostCaptureViewBase, public MAiwNotifyCallback |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * @since 2.8 |
|
43 * @param aController Reference to either the application controller |
|
44 * base class or test base class |
|
45 * @return pointer to the created CCamVideoPostCaptureView object |
|
46 */ |
|
47 static CCamVideoPostCaptureView* NewLC( CCamAppController& aController ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 * @since 2.8 |
|
52 */ |
|
53 virtual ~CCamVideoPostCaptureView(); |
|
54 |
|
55 public: // Functions from base classes |
|
56 |
|
57 /** |
|
58 * From CAknView. |
|
59 * @since 2.8 |
|
60 * @return UID of view |
|
61 */ |
|
62 TUid Id() const; |
|
63 |
|
64 /** |
|
65 * From CAknView Handle commands |
|
66 * @since 2.8 |
|
67 * @param aCommand command to be handled |
|
68 */ |
|
69 void ProcessCommandL( TInt aCommand ); |
|
70 |
|
71 |
|
72 /** |
|
73 * From CAknView Handle commands |
|
74 * @since 2.8 |
|
75 * @param aCommand command to be handled |
|
76 */ |
|
77 void HandleCommandL( TInt aCommand ); |
|
78 |
|
79 /** |
|
80 * Displays the delete image/video confirmation note |
|
81 * @since 2.8 |
|
82 * @return ETrue if file deleted, otherwise EFalse |
|
83 */ |
|
84 TBool DisplayDeleteNoteL(); |
|
85 |
|
86 /** |
|
87 * From CAknView. |
|
88 * @since 2.8 |
|
89 * @param aPrevViewId the ID for previous view we are switching from |
|
90 * @param aCustomMessageId the Uid for message passed to this view |
|
91 * @param aCustomMessage descriptor containing data content for view specific message |
|
92 */ |
|
93 void DoActivateL( const TVwsViewId& aPreViewId, TUid aCustomMessageId, |
|
94 const TDesC8& aCustomMessage ); |
|
95 |
|
96 |
|
97 /** |
|
98 * From base class MAiwNotifyCallback. |
|
99 * Handles any notification caused by asynchronous ExecuteCommandL |
|
100 * or event. |
|
101 * @param aCmdId Service command associated to the event. |
|
102 * @param aEventId Occured event |
|
103 * @param aEventParamList Event parameters, if any, as defined per |
|
104 * each event. |
|
105 * @param aInParamList Input parameters, if any, given in the |
|
106 * related HandleCommmandL |
|
107 * @return error code for the callback |
|
108 */ |
|
109 TInt HandleNotifyL( |
|
110 TInt aCmdId, |
|
111 TInt aEventId, |
|
112 CAiwGenericParamList& aEventParamList, |
|
113 const CAiwGenericParamList& aInParamList ); |
|
114 |
|
115 /* |
|
116 * Hdmi Timer callback |
|
117 */ |
|
118 static TInt HdmiTimerCallback( TAny* aSelf ); |
|
119 |
|
120 /* |
|
121 * Hdmi Timer callback handler |
|
122 */ |
|
123 void DoHdmiTimerCallbackL(); |
|
124 |
|
125 private: // New functions |
|
126 |
|
127 /** |
|
128 * C++ default constructor. |
|
129 * @since 2.8 |
|
130 * @param aController Reference to either the application controller |
|
131 * base class or test base class |
|
132 */ |
|
133 CCamVideoPostCaptureView( CCamAppController& aController ); |
|
134 |
|
135 /** |
|
136 * By default Symbian 2nd phase constructor is private. |
|
137 * @since 2.8 |
|
138 */ |
|
139 void ConstructL(); |
|
140 |
|
141 private: // Functions from base classes |
|
142 |
|
143 /** |
|
144 * From CAknView. |
|
145 * @since 2.8 |
|
146 */ |
|
147 void DoDeactivate(); |
|
148 |
|
149 /** |
|
150 * From CCamViewBase |
|
151 * Set the view's title text |
|
152 * @since 2.8 |
|
153 */ |
|
154 void SetTitlePaneTextL(); |
|
155 |
|
156 private: // From MEikMenuObserver |
|
157 /** |
|
158 * From MEikMenuObserver Changes MenuPane dynamically |
|
159 * @param Resource Id |
|
160 * @param Handle to menu pane |
|
161 * @since 2.8 |
|
162 */ |
|
163 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
164 |
|
165 // from base class MAknToolbarObserver |
|
166 |
|
167 void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar ); |
|
168 |
|
169 |
|
170 |
|
171 private: // Data |
|
172 |
|
173 TBool iRockerKeyPress; |
|
174 |
|
175 CCamTimer* iHdmiTimer; |
|
176 }; |
|
177 |
|
178 #endif // CAMVIDEOPOSTCAPTUREVIEW_H |
|
179 |
|
180 // End of File |