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: Dummy callback active object class for Cameraapp Unit Tests* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAMERAAPPDUMMYCALLBACKACTIVE_H |
|
21 #define CAMERAAPPDUMMYCALLBACKACTIVE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 // CONSTANTS |
|
26 |
|
27 // MACROS |
|
28 //#define ?macro ?macro_def |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 |
|
34 // CLASS DECLARATION |
|
35 class CCameraappTestBitmapManager; |
|
36 class MCamAppEngineObserver; |
|
37 class MCaeStillBurstObserver; |
|
38 |
|
39 /** |
|
40 * Handle intercommunication between camcorder UI and engine. |
|
41 * |
|
42 * @since 2.8 |
|
43 */ |
|
44 class CCameraappDummyCallbackActive : public CActive |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 */ |
|
51 static CCameraappDummyCallbackActive* NewL( MCamAppEngineObserver& aController ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CCameraappDummyCallbackActive(); |
|
57 |
|
58 public: // Functions from CActive |
|
59 |
|
60 void Cancel(); |
|
61 |
|
62 public: |
|
63 |
|
64 void SetBurstObserver( MCaeStillBurstObserver* aBurstObserver ); |
|
65 |
|
66 /** |
|
67 * Prepare CCamAppControllerBase and CamAppEngine for current mode |
|
68 */ |
|
69 void InitComplete(); |
|
70 |
|
71 /** |
|
72 * Prepare for Still capture |
|
73 */ |
|
74 void StillPrepareComplete(); |
|
75 |
|
76 /** |
|
77 * Prepare for video capture |
|
78 */ |
|
79 void VideoPrepareComplete(); |
|
80 |
|
81 /** |
|
82 * Initiate Still Image Capture |
|
83 */ |
|
84 void SendViewFinderFrames(); |
|
85 |
|
86 void StopViewFinderFrames(); |
|
87 |
|
88 void CaptureStill(); |
|
89 |
|
90 void CaptureBurst( TInt aImageCount ); |
|
91 |
|
92 void StopBurst(); |
|
93 |
|
94 void VideoRecordingStopped(); |
|
95 |
|
96 void VideoRecordingPaused(); |
|
97 |
|
98 void VideoRecordingResumed(); |
|
99 |
|
100 private: |
|
101 |
|
102 CCameraappDummyCallbackActive( MCamAppEngineObserver& aController ); |
|
103 |
|
104 void ConstructL( ); |
|
105 |
|
106 void SetActiveAndCompleteRequest(); |
|
107 |
|
108 void DoInitComplete(); |
|
109 |
|
110 void DoStillPrepareComplete(); |
|
111 |
|
112 void DoVideoPrepareComplete(); |
|
113 |
|
114 void DoViewFinderFrame(); |
|
115 |
|
116 void DoCaptureStillL(); |
|
117 |
|
118 void DoCaptureBurstL(); |
|
119 |
|
120 void DoVideoPaused(); |
|
121 |
|
122 void DoVideoResumed(); |
|
123 |
|
124 void DoVideoStopped(); |
|
125 |
|
126 /** |
|
127 * Cancels the active object |
|
128 */ |
|
129 void DoCancel(); |
|
130 |
|
131 void RunL(); |
|
132 |
|
133 private: |
|
134 MCamAppEngineObserver& iController; |
|
135 MCaeStillBurstObserver* iBurstObserver; |
|
136 CCameraappTestBitmapManager* iBitmapManager; |
|
137 TBool iInitComplete; |
|
138 TBool iStillPrepareComplete; |
|
139 TBool iVideoPrepareComplete; |
|
140 TBool iViewFinderFrame; |
|
141 TBool iCaptureStill; |
|
142 TBool iCaptureBurst; |
|
143 TBool iVideoPaused; |
|
144 TBool iVideoResumed; |
|
145 TBool iVideoStopped; |
|
146 TInt iBurstCount; |
|
147 TBool iInitFail; |
|
148 TBool iStopBurst; |
|
149 TInt iBurstCaptureImage; |
|
150 TInt iBurstSnapImage; |
|
151 TInt iCompletedBurst; |
|
152 }; |
|
153 |
|
154 #endif // CAMERAAPPDUMMYCALLBACKACTIVE_H |
|
155 |
|
156 // End of File |
|