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_RecorderEventArg.h
20 * @brief This file contains the declaration of event processing argument for the Recorder
23 #ifndef _FMEDIA_INTERNAL_EVENTARG_H_
24 #define _FMEDIA_INTERNAL_EVENTARG_H_
27 #include <FBaseObject.h>
28 #include <FBaseRtIEventArg.h>
29 #include <FBaseByteBuffer.h>
30 #include <FMediaAudioRecorderTypes.h>
31 #include "FMedia_RecorderTypes.h"
33 namespace Tizen {namespace Media
37 * @class _RecorderEventArg
38 * @brief This class contains the declaration of Recorder's event argument.
40 class _RecorderEventArg
41 : public Tizen::Base::Runtime::IEventArg
42 , public Tizen::Base::Object
48 _RecorderEventArg(void);
53 ~_RecorderEventArg(void);
59 * @return AudioRecorder Event type of this argument.
61 _RecorderEventType GetEventType(void) const;
66 void SetEventType(_RecorderEventType eType);
69 * Get the data provided by the AudioRecorder
71 * @return data defined in AudioRecorder subsystem.
73 Tizen::Base::ByteBuffer* GetData(void) const;
76 * Set the data provided by the AudioRecorder
78 void SetData(Tizen::Base::ByteBuffer* data);
83 * @return AudioRecorder result of this argument.
85 result GetResult(void) const;
90 void SetResult(result r);
95 * @return AudioRecorder error of this argument.
97 RecorderErrorReason GetError(void) const;
102 void SetError(RecorderErrorReason r);
105 _RecorderEventArg(const _RecorderEventArg& value);
106 _RecorderEventArg& operator =(const _RecorderEventArg& value);
108 _RecorderEventType __recorderEventType;
109 Tizen::Base::ByteBuffer* __pRecordedData;
111 RecorderErrorReason __error;