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 FUiScenesSceneTransition.h
20 * @brief This is the header file for the %SceneTransition class.
22 * This header file contains the declarations of the %SceneTransition class.
25 #ifndef _FUI_SCENES_SCENE_TRANSITION_H_
26 #define _FUI_SCENES_SCENE_TRANSITION_H_
28 #include <FBaseString.h>
29 #include <FUiScenesTypes.h>
32 namespace Tizen { namespace Ui { namespace Scenes
36 * @class SceneTransition
37 * @brief This class is the %SceneTransition class of a %Tizen native application.
41 * The %SceneTransition class contains transition information, such as transition direction, transition destination,
42 * animation type, history option, and destroy option. @n
44 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/scene_management.htm">Scene Management</a>.
46 class _OSP_EXPORT_ SceneTransition
47 : public Tizen::Base::Object
51 * This is the default constructor for this class.
55 SceneTransition(void);
58 * Copying of objects using this copy constructor is allowed.
62 * @param[in] rhs An instance of %SceneTransition
64 SceneTransition(const SceneTransition& rhs);
67 * Initializes this instance of %SceneTransition with the specified parameters.
71 * @param[in] direction The transition direction
72 * @param[in] destinationSceneId The scene ID of transition destination
73 * @param[in] animationType The transition animation type
74 * @param[in] historyOption The history option whether to add the current scene to the history or not
75 * @param[in] destroyOption The destroy option whether to destroy the current scene or not
77 SceneTransition(SceneTransitionDirection direction, const SceneId& destinationSceneId,
78 SceneTransitionAnimationType animationType,
79 SceneHistoryOption historyOption, SceneDestroyOption destroyOption);
82 * Assigns the value of the specified instance to the current instance of %SceneTransition.
86 * @param[in] rhs An instance of %SceneTransition
88 SceneTransition& operator =(const SceneTransition& rhs);
91 * Checks whether the specified instance of %SceneTransition equals the current instance.
95 * @return @c true if the specified instance equals the current instance, @n
96 * else @c false either the specified instance is not equal to the current instance or the specified object is not Scene
97 * @param[in] rhs An instance of %SceneTransition
99 virtual bool Equals(const Object& rhs) const;
102 * Gets the hash value of the current instance.
106 * @return The hash value of the current instance
108 virtual int GetHashCode(void) const;
111 * This destructor overrides Tizen::Base::Object::~Object().
115 virtual ~SceneTransition(void);
118 // result SetTransitionId(TransitionId& transitionId);
121 * Sets the scene transition direction.
125 * @return An error code
126 * @param[in] direction The transition direction
127 * @exception E_SUCCESS The method is successful.
128 * @exception E_INVALID_ARG The specified input parameter is invalid.
131 result SetDirection(SceneTransitionDirection direction);
134 * Gets the scene transition direction.
138 * @return The direction of scene transition
141 SceneTransitionDirection GetDirection(void) const;
144 * Sets the scene transition destination scene.
148 * @return An error code
149 * @param[in] sceneId The scene ID of transition destination
150 * @exception E_SUCCESS The method is successful.
151 * @exception E_INVALID_ARG The specified input parameter is invalid.
154 result SetDestinationSceneId(const SceneId& sceneId);
157 * Gets the scene transition destination scene.
161 * @return The scene ID of transition destination
164 SceneId GetDestinationSceneId(void) const;
167 * Sets the scene transition animation type.
171 * @return An error code
172 * @param[in] animationType The transition animation type
173 * @exception E_SUCCESS The method is successful.
174 * @exception E_INVALID_ARG The specified input parameter is invalid.
177 result SetAnimationType(SceneTransitionAnimationType animationType);
180 * Gets the scene transition animation type.
184 * @return The transition animation type
187 SceneTransitionAnimationType GetAnimationType(void) const;
190 * Sets the scene transition history option.
194 * @return An error code
195 * @param[in] historyOption The history option whether to add the current scene to the history or not
196 * @exception E_SUCCESS The method is successful.
197 * @exception E_INVALID_ARG The specified input parameter is invalid.
200 result SetHistoryOption(SceneHistoryOption historyOption);
203 * Gets the scene transition history option.
207 * @return The history option
210 SceneHistoryOption GetHistoryOption(void) const;
213 * Sets the scene transition destroy option.
217 * @return An error code
218 * @param[in] destroyOption The destroy option whether to destroy the current scene or not
219 * @exception E_SUCCESS The method is successful.
220 * @exception E_INVALID_ARG The specified input parameter is invalid.
223 result SetDestroyOption(SceneDestroyOption destroyOption);
226 * Gets the scene transition destroy option.
230 * @return The destroy option
233 SceneDestroyOption GetDestroyOption(void) const;
237 // This method is for internal use only. Using this method can cause behavioral,
238 // security-related, and consistency-related issues in the application.
242 virtual void SceneTransition_Reserved1(void) {}
245 // This method is for internal use only. Using this method can cause behavioral,
246 // security-related, and consistency-related issues in the application.
250 virtual void SceneTransition_Reserved2(void) {}
253 // This method is for internal use only. Using this method can cause behavioral,
254 // security-related, and consistency-related issues in the application.
258 virtual void SceneTransition_Reserved3(void) {}
261 friend class _SceneTransitionImpl;
262 class _SceneTransitionImpl* __pSceneTransitionImpl;
264 }; // SceneTransition
265 } } } // Tizen::Ui::Scenes
267 #endif // _FUI_SCENES_SCENE_TRANSITION_H_