Tizen 2.1 base
[sdk/ide/native-sample.git] / samples / native / partner / cpp / Sample / Tizen C++ / EffectsApp / EffectsApp / project / src / EffectsAppFrame.cpp
1 //
2 // Open Service Platform
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 #include "EffectsAppFrame.h"
18
19 using namespace Osp::Base;
20 using namespace Osp::Ui;
21 using namespace Osp::Ui::Controls;
22
23 EffectsAppFrame::EffectsAppFrame(void)
24 {
25 }
26
27 EffectsAppFrame::~EffectsAppFrame(void)
28 {
29 }
30
31 result
32 EffectsAppFrame::OnInitializing(void)
33 {
34         result r = E_SUCCESS;
35
36         //creating form manager
37         FormManager* pFormManager = new FormManager();
38         pFormManager->Initialize();
39         AddControl(*pFormManager);
40
41         // Set the current form
42         pFormManager->SendUserEvent(FormManager::REQUEST_ID_MAIN_FORM, null);
43
44         return r;
45 }
46
47 result
48 EffectsAppFrame::OnTerminating(void)
49 {
50         result r = E_SUCCESS;
51
52         // TODO:
53         // Add your termination code here
54         return r;
55 }