Fixed Nabi Issues, Fone Changes
[apps/osp/Internet.git] / inc / IntInternetApp.h
1 //
2
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://floralicense.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 //!Internet
19 /*@file:        Internet.h
20  *@brief:       provides basic features necessary to define an UiApp.
21  */
22
23 #ifndef _INT_INTERNET_APP_H_
24 #define _INT_INTERNET_APP_H_
25
26 #include <FApp.h>
27 #include <FBase.h>
28 #include <FSystem.h>
29 #include <FUi.h>
30
31 #include "IntMultipleWindowPresentationModel.h"
32
33 class InternetApp
34         : public Tizen::App::UiApp
35         , public Tizen::App::IAppControlProviderEventListener
36         , public Tizen::System::IScreenEventListener
37         , public Tizen::System::ISettingEventListener
38 {
39 public:
40         /**
41          * UiApp must have a factory method that creates an instance of itself.
42          */
43         static Tizen::App::UiApp* CreateInstance(void);
44         void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);
45
46 public:
47    /**
48         *@brief                 Default constructor
49         */
50         InternetApp(void);
51    /**
52         *@brief                 Default destructor
53         */
54         virtual ~InternetApp(void);
55
56 public:
57         bool IsHwBackKeyExists(void);
58
59         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
60
61         bool OnAppInitialized(void);
62
63         bool OnAppWillTerminate(void);
64
65         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
66
67         void OnBackground(void);
68
69         void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
70
71         void OnForeground(void);
72
73         void OnLowMemory(void);
74
75         void OnScreenOff(void);
76
77         void OnScreenOn(void);
78
79         //ISettingEventListener
80         void OnSettingChanged(Tizen::Base::String& key);
81
82         //IAppControlProviderEventListener
83         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
85         long long GetAvailableMemory(void);
86 private:
87         MultipleWindowPresentationModel* __pMultiWindowManager;
88         WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch
89         bool __isHwBackButtonExists;
90 };
91
92 #endif // _INT_INTERNET_APP_H_