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