Tizen 2.0 Release
[framework/osp/media.git] / src / FMedia_AudioSessionEventArg.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_AudioSessionEventArg.h
20 // @brief                       This header file contains the declaration related to _AudioSessionImpl class.
21 //
22 //
23
24
25 #ifndef _FMEDIA_INTERNAL_AUDIO_SESSSION_EVENT_ARG_H_
26 #define _FMEDIA_INTERNAL_AUDIO_SESSSION_EVENT_ARG_H_
27 #include <FBaseObject.h>
28 #include <FBaseRtIEventArg.h>
29 #include <FMediaAudioManagerTypes.h>
30
31 namespace Tizen {namespace Media
32 {
33
34 enum _AudioSessionEventType
35 {
36         _AUDIO_SESSION_EVENT_NONE,
37         _AUDIO_SESSION_EVENT_INTERRUPTED,
38         _AUDIO_SESSION_EVENT_RELEASED,
39         _AUDIO_SESSION_EVENT_AUDIO_FOCUS_CHANGED
40 };
41
42 class _AudioSessionImpl;
43
44 class _AudioSessionEventTypeArg
45         : public Tizen::Base::Runtime::IEventArg
46         , public Tizen::Base::Object
47 {
48 public:
49         _AudioSessionEventTypeArg(void);
50         virtual ~_AudioSessionEventTypeArg(void);
51         _AudioSessionEventType GetEventType(void) const;
52 private:
53         void SetEventType(_AudioSessionEventType eType);
54         _AudioSessionEventTypeArg(const _AudioSessionEventTypeArg& rhs);
55         _AudioSessionEventTypeArg& operator =(const _AudioSessionEventTypeArg& rhs);
56         _AudioSessionEventType __audioSessionEventType;
57         friend class _AudioSessionManagerImpl;
58 };      //_AudioSessionEventTypeArg
59
60 class _AudioSessionEventArg
61         : public _AudioSessionEventTypeArg
62 {
63 public:
64         _AudioSessionEventArg(void);
65         ~_AudioSessionEventArg(void);
66 private:
67         friend class _AudioSessionManagerImpl;
68 };      //_AudioSessionEventArg
69
70 }}// Tizen::Media
71
72 #endif