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_AudioRouteEventArg.h
20 // @brief This header file contains the declaration related to _AudioRouteImpl class.
25 #ifndef _FMEDIA_INTERNAL_AVAILABLE_ROUTE_EVENT_ARG_H_
26 #define _FMEDIA_INTERNAL_AVAILABLE_ROUTE_EVENT_ARG_H_
27 #include <FBaseObject.h>
28 #include <FBaseRtIEventArg.h>
29 #include <FMediaAudioRouteInfo.h>
31 namespace Tizen {namespace Media
34 class _AudioRouteImpl;
36 enum _AudioRouteEventType
38 _AUDIO_ROUTE_EVENT_NONE // Event_None
39 , _AUDIO_ROUTE_EVENT_ADDED// Available Path changed
40 , _AUDIO_ROUTE_EVENT_REMOVED// Available Path changed
41 , _AUDIO_ROUTE_EVENT_ACTIVE_CHANGED// Available Path changed
44 class _AudioRouteEventTypeArg
45 : public Tizen::Base::Runtime::IEventArg
46 , public Tizen::Base::Object
49 _AudioRouteEventTypeArg(void);
50 virtual ~_AudioRouteEventTypeArg(void);
51 _AudioRouteEventType GetEventType(void) const;
53 void SetEventType(_AudioRouteEventType eType);
54 _AudioRouteEventTypeArg(const _AudioRouteEventTypeArg& rhs);
55 _AudioRouteEventTypeArg& operator =(const _AudioRouteEventTypeArg& rhs);
56 _AudioRouteEventType __audioRouteEventType;
57 friend class _AudioRouteManagerImpl;
58 }; //_AudioRouteEventTypeArg
60 class _AudioRouteEventArg
61 : public _AudioRouteEventTypeArg
64 _AudioRouteEventArg(void);
65 ~_AudioRouteEventArg(void);
66 void GetAudioRouteInfo(AudioRouteInfo & route);
68 void SetAudioRouteInfo(AudioRouteInfo& route);
69 AudioRouteInfo __route;
70 friend class _AudioRouteManagerImpl;
71 }; //_AudioRouteEventArg