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_AudioOutEventArg.h
20 // @brief This header file contains the declaration related to AudioOut class.
24 #ifndef _FMEDIA_INTERNAL_AUDIOOUT_EVENTARG_H_
25 #define _FMEDIA_INTERNAL_AUDIOOUT_EVENTARG_H_
27 #include <FBaseObject.h>
28 #include <FBaseRtIEventArg.h>
29 #include <FMediaAudioTypes.h>
31 namespace Tizen {namespace Media
36 enum _AudioOutEventType
38 _AUDIOOUT_EVENT_NONE, // Event_None
39 _AUDIOOUT_EVENT_DATA_END_REACHED, // Recorded Event
40 _AUDIOOUT_EVENT_INTERRUPTED, // event interrupted by the system
41 _AUDIOOUT_EVENT_RELEASED, // event released by the system
42 _AUDIOOUT_EVENT_AUDIO_FOCUS_CHANGED, // event notifying that audio foucs has changed
43 _AUDIOOUT_EVENT_ERROR, // Error event
46 class _AudioOutEventTypeArg
47 : public Tizen::Base::Runtime::IEventArg
48 , public Tizen::Base::Object
51 _AudioOutEventTypeArg(void);
52 virtual ~_AudioOutEventTypeArg(void);
53 _AudioOutEventType GetEventType(void) const;
56 void SetEventType(_AudioOutEventType eType);
59 _AudioOutEventTypeArg(const _AudioOutEventTypeArg& rhs);
60 _AudioOutEventTypeArg& operator =(const _AudioOutEventTypeArg& rhs);
62 _AudioOutEventType __audioOutEventType;
64 friend class _AudioOutImpl;
66 }; //_AudioOutEventTypeArg
68 class _AudioOutEventArg
69 : _AudioOutEventTypeArg
72 _AudioOutEventArg(void);
73 ~_AudioOutEventArg(void);
74 bool GetBoolFlag(void) const;
77 void SetBoolFlag(bool boolFlag);
81 friend class _AudioOutImpl;
83 }; //_AudioOutEventArg