merge with master
[apps/osp/Internet.git] / inc / IntInternetApp.h
1 //\r
2 \r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\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
8 //\r
9 //     http://floralicense.org/license/\r
10 //\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
16 //\r
17 \r
18 //!Internet\r
19 /*@file:        Internet.h\r
20  *@brief:       provides basic features necessary to define an UiApp.\r
21  */\r
22 \r
23 #ifndef _INT_INTERNET_APP_H_\r
24 #define _INT_INTERNET_APP_H_\r
25 \r
26 #include <FApp.h>\r
27 #include <FBase.h>\r
28 #include <FSystem.h>\r
29 #include <FUi.h>\r
30 \r
31 #include "IntMultipleWindowPresentationModel.h"\r
32 \r
33 class InternetApp\r
34         : public Tizen::App::UiApp\r
35         , public Tizen::App::IAppControlProviderEventListener\r
36         , public Tizen::System::IScreenEventListener\r
37 {\r
38 public:\r
39         /**\r
40          * UiApp must have a factory method that creates an instance of itself.\r
41          */\r
42         static Tizen::App::UiApp* CreateInstance(void);\r
43         void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);\r
44 \r
45 public:\r
46    /**\r
47         *@brief                 Default constructor\r
48         */\r
49         InternetApp(void);\r
50    /**\r
51         *@brief                 Default destructor\r
52         */\r
53         virtual ~InternetApp(void);\r
54 \r
55 public:\r
56 \r
57         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);\r
58 \r
59         bool OnAppInitialized(void);\r
60 \r
61         bool OnAppWillTerminate(void);\r
62 \r
63         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);\r
64 \r
65         void OnBackground(void);\r
66 \r
67         void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);\r
68 \r
69         void OnForeground(void);\r
70 \r
71         void OnLowMemory(void);\r
72 \r
73         void OnScreenOff(void);\r
74 \r
75         void OnScreenOn(void);\r
76 \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
79 private:\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
82 };\r
83 \r
84 #endif // _INT_INTERNET_APP_H_\r