Fixed Nabi Issues, Changes for tizen-service implementation and DB 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.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
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 {
38 public:
39         /**
40          * UiApp must have a factory method that creates an instance of itself.
41          */
42         static Tizen::App::UiApp* CreateInstance(void);
43         void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);
44
45 public:
46    /**
47         *@brief                 Default constructor
48         */
49         InternetApp(void);
50    /**
51         *@brief                 Default destructor
52         */
53         virtual ~InternetApp(void);
54
55 public:
56
57         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
58
59         bool OnAppInitialized(void);
60
61         bool OnAppWillTerminate(void);
62
63         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
64
65         void OnBackground(void);
66
67         void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
68
69         void OnForeground(void);
70
71         void OnLowMemory(void);
72
73         void OnScreenOff(void);
74
75         void OnScreenOn(void);
76
77         //IAppControlProviderEventListener
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);
79 private:
80         MultipleWindowPresentationModel* __pMultiWindowManager;
81         WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch
82 };
83
84 #endif // _INT_INTERNET_APP_H_