3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Flora License, Version 1.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://floralicense.org/license/
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an AS IS BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
20 *@brief: provides basic features necessary to define an UiApp.
\r
23 #ifndef _INT_INTERNET_APP_H_
\r
24 #define _INT_INTERNET_APP_H_
\r
28 #include <FSystem.h>
\r
31 #include "IntMultipleWindowPresentationModel.h"
\r
34 : public Tizen::App::UiApp
\r
35 , public Tizen::App::IAppControlProviderEventListener
\r
36 , public Tizen::System::IScreenEventListener
\r
40 * UiApp must have a factory method that creates an instance of itself.
\r
42 static Tizen::App::UiApp* CreateInstance(void);
\r
43 void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);
\r
47 *@brief Default constructor
\r
51 *@brief Default destructor
\r
53 virtual ~InternetApp(void);
\r
57 bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
\r
59 bool OnAppInitialized(void);
\r
61 bool OnAppWillTerminate(void);
\r
63 bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
\r
65 void OnBackground(void);
\r
67 void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
\r
69 void OnForeground(void);
\r
71 void OnLowMemory(void);
\r
73 void OnScreenOff(void);
\r
75 void OnScreenOn(void);
\r
77 //IAppControlProviderEventListener
\r
78 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);
\r
80 MultipleWindowPresentationModel* __pMultiWindowManager;
\r
81 WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch
\r
84 #endif // _INT_INTERNET_APP_H_
\r