3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
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.
20 *@brief: provides basic features necessary to define an UiApp.
23 #ifndef _INT_INTERNET_APP_H_
24 #define _INT_INTERNET_APP_H_
31 #include "IntMultipleWindowPresentationModel.h"
34 : public Tizen::App::UiApp
35 , public Tizen::App::IAppControlProviderEventListener
36 , public Tizen::System::IScreenEventListener
37 , public Tizen::System::ISettingEventListener
41 * UiApp must have a factory method that creates an instance of itself.
43 static Tizen::App::UiApp* CreateInstance(void);
44 void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);
48 *@brief Default constructor
52 *@brief Default destructor
54 virtual ~InternetApp(void);
58 bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
60 bool OnAppInitialized(void);
62 bool OnAppWillTerminate(void);
64 bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
66 void OnBackground(void);
68 void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
70 void OnForeground(void);
72 void OnLowMemory(void);
74 void OnScreenOff(void);
76 void OnScreenOn(void);
78 //ISettingEventListener
79 void OnSettingChanged(Tizen::Base::String& key);
81 //IAppControlProviderEventListener
82 void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String &operationId, const Tizen::Base::String *pDataType, const Tizen::Base::String *pUriScheme, const Tizen::Base::Collection::IMap *pArgs);
84 MultipleWindowPresentationModel* __pMultiWindowManager;
85 WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch
88 #endif // _INT_INTERNET_APP_H_