2 // Open Service Platform
3 // Copyright (c) 2012-2013 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 FUiScenesISceneManagerEventListener.h
20 * @brief This is the header file for the %ISceneManagerEventListener interface.
22 * This header file contains the declarations of the %ISceneManagerEventListener interface.
25 #ifndef _FUI_SCENES_ISCENE_MANAGER_EVENT_LISTENER_H_
26 #define _FUI_SCENES_ISCENE_MANAGER_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
29 #include <FUiScenesTypes.h>
32 namespace Tizen { namespace Ui { namespace Scenes
36 * @interface ISceneManagerEventListener
37 * @brief This interface provides listeners for managing scenes and scene states.
41 * The %ISceneManagerEventListener interface provides listeners for managing scenes and scene states.
43 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/scene_management.htm">Scene Management</a>.
45 class _OSP_EXPORT_ ISceneManagerEventListener
46 : virtual public Tizen::Base::Runtime::IEventListener
50 * This polymorphic destructor should be overridden if required. This way,
51 * the destructors of the derived classes are called when the destructor of this interface is called.
55 virtual ~ISceneManagerEventListener(void) {}
58 * Called when the scene transition is started.
62 * @param[in] currentSceneId The scene ID of the scene being deactivated
63 * @param[in] nextSceneId The scene ID of the next active scene
66 virtual void OnSceneTransitionStarted(const Tizen::Ui::Scenes::SceneId& currentSceneId,
67 const Tizen::Ui::Scenes::SceneId& nextSceneId) = 0;
70 * Called after the scene transition is completed.
74 * @param[in] previousSceneId The scene ID of the deactivated scene
75 * @param[in] currentSceneId The scene ID of the newly activated scene
76 * @remarks This method is called after the scene is activated using the ISceneEventListener::OnSceneActivatedN() callback method.
78 virtual void OnSceneTransitionCompleted(const Tizen::Ui::Scenes::SceneId& previousSceneId,
79 const Tizen::Ui::Scenes::SceneId& currentSceneId) = 0;
83 // This method is for internal use only. Using this method can cause behavioral,
84 // security-related, and consistency-related issues in the application.
88 virtual void ISceneManagerEventListener_Reserved1(void) {}
91 // This method is for internal use only. Using this method can cause behavioral,
92 // security-related, and consistency-related issues in the application.
96 virtual void ISceneManagerEventListener_Reserved2(void) {}
99 // This method is for internal use only. Using this method can cause behavioral,
100 // security-related, and consistency-related issues in the application.
104 virtual void ISceneManagerEventListener_Reserved3(void) {}
106 }; // ISceneManagerEventListener
107 } } } // Tizen::Ui::Scenes
109 #endif //_FUI_SCENES_ISCENE_MANAGER_EVENT_LISTENER_H_