Merge "seek expection handling bug" into tizen_2.2
[platform/framework/native/media.git] / src / FMedia_AudioOutEventArg.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 //
19 // @file                        FMedia_AudioOutEventArg.h
20 // @brief                       This header file contains the declaration related to AudioOut class.
21 //
22 //
23
24 #ifndef _FMEDIA_INTERNAL_AUDIOOUT_EVENTARG_H_
25 #define _FMEDIA_INTERNAL_AUDIOOUT_EVENTARG_H_
26
27 #include <FBaseObject.h>
28 #include <FBaseRtIEventArg.h>
29 #include <FMediaAudioTypes.h>
30
31 namespace Tizen {namespace Media
32 {
33
34 class _AudioOutImpl;
35
36 enum _AudioOutEventType
37 {
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
44 };
45
46 class _AudioOutEventTypeArg
47         : public Tizen::Base::Runtime::IEventArg
48         , public Tizen::Base::Object
49 {
50 public:
51         _AudioOutEventTypeArg(void);
52         virtual ~_AudioOutEventTypeArg(void);
53         _AudioOutEventType GetEventType(void) const;
54
55 private:
56         void SetEventType(_AudioOutEventType eType);
57
58 private:
59         _AudioOutEventTypeArg(const _AudioOutEventTypeArg& rhs);
60         _AudioOutEventTypeArg& operator =(const _AudioOutEventTypeArg& rhs);
61
62         _AudioOutEventType __audioOutEventType;
63
64         friend class _AudioOutImpl;
65
66 };      //_AudioOutEventTypeArg
67
68 class _AudioOutEventArg
69         : _AudioOutEventTypeArg
70 {
71 public:
72         _AudioOutEventArg(void);
73         ~_AudioOutEventArg(void);
74         bool GetBoolFlag(void) const;
75
76 private:
77         void SetBoolFlag(bool boolFlag);
78
79 private:
80         bool __boolFlag;
81         friend class _AudioOutImpl;
82
83 };      //_AudioOutEventArg
84
85 }} // Tizen::Media
86
87 #endif