2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FMedia_CameraEventArg.h
20 * @brief This header file contains the declaration of Tizen::Media namespace.
25 #ifndef _FMEDIA_INTERNAL_CAMERA_EVENTARG_H_
26 #define _FMEDIA_INTERNAL_CAMERA_EVENTARG_H_
28 #include <FBaseByteBuffer.h>
29 #include <FBaseRtIEventArg.h>
30 #include <FMediaCameraTypes.h>
32 namespace Tizen {namespace Media
34 //@enum _CameraEventType
35 //@brief This represents Camera's event type.
38 _CAMERA_EVENT_NONE, // Event_None */
39 _CAMERA_EVENT_AUTO_FOCUSED, // Auto foucs Event*/
40 _CAMERA_EVENT_CAPTURED, // Capture Event*/
41 _CAMERA_EVENT_PREVIEWED_DATA, // Preview Event
42 _CAMERA_EVENT_ERROR, // Error event */
47 * @class _CameraEventArg
48 * @brief This class contains the information about the Camera event.
50 * This event argument is used in ICameraEventListener's On-methods. It contains time information
51 * as well as camera instance.
53 * @see Camera, ICameraEventListener
57 : public Tizen::Base::Runtime::IEventArg
58 , public Tizen::Base::Object
64 _CameraEventArg(void);
69 ~_CameraEventArg(void);
74 * @return Camera Event type of this argument.
76 _CameraEventType GetEventType(void) const;
81 void SetEventType(_CameraEventType eType);
85 * Get the data provided by the Camera
87 * @return data defined in Camera subsystem.
89 Tizen::Base::ByteBuffer* GetData(void) const;
92 * Set the data provided by the Camera
94 void SetData(const Tizen::Base::ByteBuffer* data);
99 * @return Camera result of a aync method.
101 result GetResult(void) const;
106 void SetResult(result r);
111 * @return Camera error of this argument.
113 CameraErrorReason GetError(void) const;
118 void SetError(CameraErrorReason r);
122 _CameraEventArg(const _CameraEventArg& rhs);
123 _CameraEventArg& operator =(const _CameraEventArg& rhs);
125 _CameraEventType __cameraEventType;
127 Tizen::Base::ByteBuffer* __pCameraData;
129 CameraErrorReason __error;