3 // Copyright (c) 2012 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://www.tizenopensource.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 "SceneTransitionPolicyProvider.h"
19 #include "SceneRegister.h"
21 using namespace Osp::Ui::Scenes;
24 SceneTransitionPolicyProvider::SceneTransitionPolicyProvider(void)
28 SceneTransitionPolicyProvider::~SceneTransitionPolicyProvider(void)
32 Osp::Ui::Scenes::SceneId
33 SceneTransitionPolicyProvider::GetNextScene(const Osp::Ui::Scenes::SceneId& currentSceneId,
34 const Osp::Base::Collection::IList* pArgs)
36 if (currentSceneId == SCENE_COMPLEX_1)
38 return SCENE_COMPLEX_2;
40 else if (currentSceneId == SCENE_COMPLEX_2)
42 return SCENE_COMPLEX_3;
44 else if (currentSceneId == SCENE_COMPLEX_3)
46 return SCENE_COMPLEX_4;