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