1 /* |
|
2 * Copyright (c) 2007-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: Camera engine controller event ids. |
|
15 * Used in MCamEngineObserver::HandleCameraEventL callbacks. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CAM_CAMERAEVENTS_H |
|
22 #define CAM_CAMERAEVENTS_H |
|
23 |
|
24 |
|
25 /** |
|
26 * Event ids |
|
27 */ |
|
28 enum TCamCameraEventId |
|
29 { |
|
30 ECamCameraEventNone, // Not an event id, but a marker. |
|
31 |
|
32 // ------------------------------------------------------- |
|
33 // Events of class ECamCameraEventClassBasicControl |
|
34 |
|
35 // If controller is given a sequence of requests, |
|
36 // this event notifies that the full sequence is completed, |
|
37 // and client may issue more requests. |
|
38 ECamCameraEventSequenceEnd, |
|
39 |
|
40 ECamCameraEventReserveGain, |
|
41 ECamCameraEventReserveLose, |
|
42 ECamCameraEventReserveRequested, |
|
43 |
|
44 ECamCameraEventPowerOn, |
|
45 ECamCameraEventPowerOff, |
|
46 ECamCameraEventIveRecover, |
|
47 ECamCameraEventPowerOnRequested, |
|
48 |
|
49 // ------------------------------------------------------- |
|
50 // Events of class ECamCameraEventClassViewfinder |
|
51 ECamCameraEventVfStart, |
|
52 ECamCameraEventVfStop, |
|
53 ECamCameraEventVfRelease, |
|
54 // ------------------------------------------------------- |
|
55 // Event of class ECamCameraEventClassVfData |
|
56 // Associated event data for ECamCameraEventViewfinderFrameReady is the VF frame in CFbsBitmap. |
|
57 ECamCameraEventVfFrameReady, |
|
58 // ------------------------------------------------------- |
|
59 // Events of class ECamCameraEventClassSnapshot |
|
60 ECamCameraEventSsStart, |
|
61 ECamCameraEventSsStop, |
|
62 ECamCameraEventSsRelease, |
|
63 // ------------------------------------------------------- |
|
64 // Event of class ECamCameraEventClassSsData |
|
65 // Associated event data for ECamCameraEventSnapshotReady is the snapshot in CFbsBitmap. |
|
66 ECamCameraEventSsReady, |
|
67 // ------------------------------------------------------- |
|
68 // Events of class ECamCameraEventClassStillCapture |
|
69 ECamCameraEventImageInit, |
|
70 ECamCameraEventImageStart, // Capture started |
|
71 ECamCameraEventImageStop, // Capture stopped (normally or by cancel request) |
|
72 ECamCameraEventImageRelease, |
|
73 |
|
74 // Associated event data for ECamCameraEventImageData is CCamBufferShare pointer. |
|
75 // May be null, if errors occurred. |
|
76 ECamCameraEventImageData, |
|
77 |
|
78 // ------------------------------------------------------- |
|
79 // Events of class ECamCameraEventClassVideo |
|
80 ECamCameraEventVideoInit, |
|
81 ECamCameraEventVideoStart, |
|
82 ECamCameraEventVideoPause, |
|
83 ECamCameraEventVideoAsyncStop, |
|
84 ECamCameraEventVideoStop, |
|
85 ECamCameraEventVideoRelease, |
|
86 // ------------------------------------------------------- |
|
87 // Events of class ECamCameraEventClassVideoTimes |
|
88 ECamCameraEventVideoTimes, |
|
89 |
|
90 // ------------------------------------------------------- |
|
91 // Events of class ECamCameraEventClassSettings |
|
92 |
|
93 // Associated event data is TCamCameraSettingId of the |
|
94 // setting that was processed. |
|
95 ECamCameraEventSettingsSingle, |
|
96 // Associated event data is TCamCameraSettingId of the |
|
97 // last setting that was processed. |
|
98 ECamCameraEventSettingsDone, |
|
99 |
|
100 // ------------------------------------------------------- |
|
101 // Events of class ECamCameraEventClassAutofocus |
|
102 ECamCameraEventStartAutofocus, |
|
103 ECamCameraEventCancelAutofocus, |
|
104 ECamCameraEventAutofocusSuccessful, |
|
105 ECamCameraEventAutofocusFailed, |
|
106 ECamCameraEventSetAfRange, |
|
107 |
|
108 // ------------------------------------------------------- |
|
109 // Events of class ECamCameraEventClassOther |
|
110 ECamCameraEventFlashReady, |
|
111 ECamCameraEventFlashNotReady, |
|
112 |
|
113 //Image capture event |
|
114 ECamCameraEventImageCaptureEvent, |
|
115 // ------------------------------------------------------- |
|
116 // Not an event id, but a marker. |
|
117 ECamCameraEventCount |
|
118 }; |
|
119 |
|
120 |
|
121 /** |
|
122 * Camera event classes. |
|
123 */ |
|
124 enum TCamCameraEventClassId |
|
125 { |
|
126 ECamCameraEventClassNone = 0, |
|
127 |
|
128 ECamCameraEventClassBasicControl = 1<<0, |
|
129 |
|
130 ECamCameraEventClassImage = 1<<1, |
|
131 |
|
132 ECamCameraEventClassVideo = 1<<2, |
|
133 ECamCameraEventClassVideoTimes = 1<<3, |
|
134 |
|
135 ECamCameraEventClassVfControl = 1<<7, |
|
136 ECamCameraEventClassVfData = 1<<8, |
|
137 |
|
138 ECamCameraEventClassSsControl = 1<<10, |
|
139 ECamCameraEventClassSsData = 1<<11, |
|
140 |
|
141 ECamCameraEventClassSettings = 1<<12, |
|
142 |
|
143 ECamCameraEventClassAutofocus = 1<<13, |
|
144 |
|
145 ECamCameraEventClassFlashStatus = 1<<14, |
|
146 |
|
147 ECamCameraEventClassOther = 1<<30, |
|
148 |
|
149 ECamCameraEventClassAll = ~ECamCameraEventClassNone |
|
150 }; |
|
151 |
|
152 #ifdef _DEBUG |
|
153 |
|
154 static const TUint16* KCamCameraEventNames[] = |
|
155 { |
|
156 (const TUint16*)_S16("ECamCameraEventNone"), |
|
157 |
|
158 (const TUint16*)_S16("ECamCameraEventSequenceEnd"), |
|
159 |
|
160 (const TUint16*)_S16("ECamCameraEventReserveGain"), |
|
161 (const TUint16*)_S16("ECamCameraEventReserveLose"), |
|
162 (const TUint16*)_S16("ECamCameraEventReserveRequested"), |
|
163 (const TUint16*)_S16("ECamCameraEventPowerOn"), |
|
164 (const TUint16*)_S16("ECamCameraEventPowerOff"), |
|
165 (const TUint16*)_S16("ECamCameraEventIveRecover"), |
|
166 (const TUint16*)_S16("ECamCameraEventPowerOnRequested"), |
|
167 |
|
168 (const TUint16*)_S16("ECamCameraEventVfStart"), |
|
169 (const TUint16*)_S16("ECamCameraEventVfStop"), |
|
170 (const TUint16*)_S16("ECamCameraEventVfRelease"), |
|
171 (const TUint16*)_S16("ECamCameraEventVfFrameReady"), |
|
172 |
|
173 (const TUint16*)_S16("ECamCameraEventSsStart"), |
|
174 (const TUint16*)_S16("ECamCameraEventSsStop"), |
|
175 (const TUint16*)_S16("ECamCameraEventSsRelease"), |
|
176 (const TUint16*)_S16("ECamCameraEventSsReady"), |
|
177 |
|
178 (const TUint16*)_S16("ECamCameraEventImageInit"), |
|
179 (const TUint16*)_S16("ECamCameraEventImageStart"), |
|
180 (const TUint16*)_S16("ECamCameraEventImageStop"), |
|
181 (const TUint16*)_S16("ECamCameraEventImageRelease"), |
|
182 (const TUint16*)_S16("ECamCameraEventImageData"), |
|
183 |
|
184 (const TUint16*)_S16("ECamCameraEventVideoInit"), |
|
185 (const TUint16*)_S16("ECamCameraEventVideoStart"), |
|
186 (const TUint16*)_S16("ECamCameraEventVideoPause"), |
|
187 (const TUint16*)_S16("ECamCameraEventVideoAsyncStop"), |
|
188 (const TUint16*)_S16("ECamCameraEventVideoStop"), |
|
189 (const TUint16*)_S16("ECamCameraEventVideoRelease"), |
|
190 (const TUint16*)_S16("ECamCameraEventVideoTimes"), |
|
191 |
|
192 (const TUint16*)_S16("ECamCameraEventSettingsSingle"), |
|
193 (const TUint16*)_S16("ECamCameraEventSettingsDone"), |
|
194 |
|
195 (const TUint16*)_S16("ECamCameraEventStartAutofocus"), |
|
196 (const TUint16*)_S16("ECamCameraEventCancelAutofocus"), |
|
197 (const TUint16*)_S16("ECamCameraEventAutofocusSuccessful"), |
|
198 (const TUint16*)_S16("ECamCameraEventAutofocusFailed"), |
|
199 (const TUint16*)_S16("ECamCameraEventSetAfRange"), |
|
200 |
|
201 (const TUint16*)_S16("ECamCameraEventFlashReady"), |
|
202 (const TUint16*)_S16("ECamCameraEventFlashNotReady"), |
|
203 (const TUint16*)_S16("ECamCameraEventImageCaptureEvent") |
|
204 }; |
|
205 |
|
206 __ASSERT_COMPILE( (sizeof(KCamCameraEventNames) / sizeof(TUint16*)) == ECamCameraEventCount ); |
|
207 #endif |
|
208 |
|
209 |
|
210 |
|
211 #endif // CAM_CAMERAEVENTS_H |
|
212 |
|
213 // end of file |
|