2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 #include "CallAppFrame.h"
18 #include "CallPhoneFormFactory.h"
19 #include "CallPanelFactory.h"
20 #include "CallSceneRegister.h"
22 using namespace Tizen::App;
23 using namespace Tizen::Base;
24 using namespace Tizen::Ui;
25 using namespace Tizen::Ui::Controls;
26 using namespace Tizen::Ui::Scenes;
29 CallAppFrame::CallAppFrame(void)
33 CallAppFrame::~CallAppFrame(void)
38 CallAppFrame::OnInitializing(void)
41 CallApp* pPhoneApp = static_cast<CallApp*>(UiApp::GetInstance());
44 //Initialize factory methods and register all scenes.
45 r = SceneRegister::RegisterAllScenes();
46 TryReturn(r == E_SUCCESS, r , "Scene registration failed");
49 if (pPhoneApp->GetInitialScene().IsEmpty() == false)
52 SceneManager* pSceneManager = SceneManager::GetInstance();
53 r = pSceneManager->GoForward( ForwardSceneTransition(pPhoneApp->GetInitialScene(),
54 SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY,SCENE_DESTROY_OPTION_DESTROY),
55 pPhoneApp->GetAppLaunchArguments());
57 AppLogDebug("Exit %d",r);
62 CallAppFrame::OnTerminating(void)
67 // Add your termination code here