Tizen 2.1 base
[sdk/ide/native-sample.git] / samples / native / partner / cpp / Sample / Tizen C++ / SceneManagement / SceneManagement / project / src / SceneTransitionPolicyProvider.cpp
1 //
2 // Tizen C++ SDK
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.tizenopensource.org/license
10 //
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.
16 //
17
18 #include "SceneTransitionPolicyProvider.h"
19 #include "SceneRegister.h"
20
21 using namespace Osp::Ui::Scenes;
22
23
24 SceneTransitionPolicyProvider::SceneTransitionPolicyProvider(void)
25 {
26 }
27
28 SceneTransitionPolicyProvider::~SceneTransitionPolicyProvider(void)
29 {
30 }
31
32 Osp::Ui::Scenes::SceneId
33 SceneTransitionPolicyProvider::GetNextScene(const Osp::Ui::Scenes::SceneId& currentSceneId,
34                                                                                         const Osp::Base::Collection::IList* pArgs)
35 {
36         if (currentSceneId == SCENE_COMPLEX_1)
37         {
38                 return SCENE_COMPLEX_2;
39         }
40         else if (currentSceneId == SCENE_COMPLEX_2)
41         {
42                 return SCENE_COMPLEX_3;
43         }
44         else if (currentSceneId == SCENE_COMPLEX_3)
45         {
46                 return SCENE_COMPLEX_4;
47         }
48         return L"";
49 }