3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.1 (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
9 // http://floralicense.org/license/
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.
18 //!Internet InternetFrame class
19 /*@file: IntInternetFrame.cpp
20 *@brief: Internet Frame
26 #include "IntMainFrame.h"
27 #include "IntSceneRegister.h"
29 using namespace Tizen::App;
30 using namespace Tizen::Base;
31 using namespace Tizen::System;
32 using namespace Tizen::Ui;
33 using namespace Tizen::Ui::Controls;
35 MainFrame::MainFrame(void)
37 // SetBackgroundColor(Tizen::Graphics::Color(255,255,255));
40 MainFrame::~MainFrame(void)
45 MainFrame::OnInitializing(void)
49 // SceneManagement initializing
50 SceneRegister::RegisterAllScenes();
51 AddFrameEventListener(*this);
58 MainFrame::OnTerminating(void)
66 MainFrame::OnFrameActivated (const Tizen::Ui::Controls::Frame &source)
68 AppRegistry* pAppRegistry = App::GetInstance()->GetAppRegistry();
69 String sliderKey("SliderValue");
73 result r = pAppRegistry->Get(sliderKey, sliderValue);
74 r = PowerManager::SetScreenBrightness(sliderValue);
75 // r = PowerManager::RestoreScreenBrightness();
77 AppLog("Settingscreenbrightness to %d result %s",sliderValue , GetErrorMessage(r));