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.cpp
20 * @brief This file contains the implementation of event processing argument for the Recorder
23 #include "FMedia_RecorderEventArg.h"
25 namespace Tizen { namespace Media
28 _RecorderEventArg::_RecorderEventArg(void)
29 : __recorderEventType(_RECORDER_EVENT_NONE)
30 , __pRecordedData(null)
32 , __error(RECORDER_ERROR_NONE)
37 _RecorderEventArg::~_RecorderEventArg(void)
39 if (__pRecordedData != null)
41 delete (Tizen::Base::ByteBuffer*) __pRecordedData;
42 __pRecordedData = null;
47 _RecorderEventArg::SetEventType(_RecorderEventType eType)
49 __recorderEventType = eType;
53 _RecorderEventArg::GetEventType(void) const
55 return __recorderEventType;
59 _RecorderEventArg::SetData(Tizen::Base::ByteBuffer* data)
61 __pRecordedData = data;
64 Tizen::Base::ByteBuffer*
65 _RecorderEventArg::GetData(void) const
67 return __pRecordedData;
71 _RecorderEventArg::GetResult(void) const
77 _RecorderEventArg::SetResult(result r)
83 _RecorderEventArg::GetError(void) const
89 _RecorderEventArg::SetError(RecorderErrorReason r)