2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
18 #include <FBaseSysLog.h>
19 #include "FUiScenes_ISceneControlEventListener.h"
20 #include "FUiScenes_SceneControlEvent.h"
22 namespace Tizen { namespace Ui { namespace Scenes
26 _SceneControlEvent::Construct(void)
28 return _Event::Initialize();
32 _SceneControlEvent::FireImpl(Tizen::Base::Runtime::IEventListener& listener, const Tizen::Base::Runtime::IEventArg& arg)
34 _ISceneControlEventListener* pListener = dynamic_cast<_ISceneControlEventListener*>(&listener);
37 const _SceneControlEventArg* pEventArg = dynamic_cast<const _SceneControlEventArg*>(&arg);
40 pListener->OnSceneControlEventReceived(pEventArg->GetEventType(), pEventArg->GetSceneId());
44 SysLog(NID_UI_SCENES, "Invalid _SceneControlEvent arguments : listener(0x%x), arg(0x%x)", pListener, &arg);
47 } } } // Tizen::Ui::Scenes