-//\r
-\r
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
-//\r
-// Licensed under the Flora License, Version 1.0 (the License);\r
-// you may not use this file except in compliance with the License.\r
-// You may obtain a copy of the License at\r
-//\r
-// http://floralicense.org/license/\r
-//\r
-// Unless required by applicable law or agreed to in writing, software\r
-// distributed under the License is distributed on an AS IS BASIS,\r
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-// See the License for the specific language governing permissions and\r
-// limitations under the License.\r
-//\r
-\r
-//!Internet\r
-/*@file: Internet.h\r
- *@brief: provides basic features necessary to define an UiApp.\r
- */\r
-\r
-#ifndef _INT_INTERNET_APP_H_\r
-#define _INT_INTERNET_APP_H_\r
-\r
-#include <FApp.h>\r
-#include <FBase.h>\r
-#include <FSystem.h>\r
-#include <FUi.h>\r
-\r
-#include "IntMultipleWindowPresentationModel.h"\r
-\r
-class InternetApp\r
- : public Tizen::App::UiApp\r
- , public Tizen::App::IAppControlProviderEventListener\r
- , public Tizen::System::IScreenEventListener\r
-{\r
-public:\r
- /**\r
- * UiApp must have a factory method that creates an instance of itself.\r
- */\r
- static Tizen::App::UiApp* CreateInstance(void);\r
- void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);\r
-\r
-public:\r
- /**\r
- *@brief Default constructor\r
- */\r
- InternetApp(void);\r
- /**\r
- *@brief Default destructor\r
- */\r
- virtual ~InternetApp(void);\r
-\r
-public:\r
-\r
- bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);\r
-\r
- bool OnAppInitialized(void);\r
-\r
- bool OnAppWillTerminate(void);\r
-\r
- bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);\r
-\r
- void OnBackground(void);\r
-\r
- void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);\r
-\r
- void OnForeground(void);\r
-\r
- void OnLowMemory(void);\r
-\r
- void OnScreenOff(void);\r
-\r
- void OnScreenOn(void);\r
-\r
- //IAppControlProviderEventListener\r
- 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
-private:\r
- MultipleWindowPresentationModel* __pMultiWindowManager;\r
- WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch\r
-};\r
-\r
-#endif // _INT_INTERNET_APP_H_\r
+//
+
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+//!Internet
+/*@file: Internet.h
+ *@brief: provides basic features necessary to define an UiApp.
+ */
+
+#ifndef _INT_INTERNET_APP_H_
+#define _INT_INTERNET_APP_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+#include "IntMainFrame.h"
+#include "IntMultipleWindowPresentationModel.h"
+
+class InternetApp
+ : public Tizen::App::UiApp
+ , public Tizen::App::IAppControlProviderEventListener
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::System::ISettingEventListener
+{
+public:
+ /**
+ * UiApp must have a factory method that creates an instance of itself.
+ */
+ static Tizen::App::UiApp* CreateInstance(void);
+ void ShowPopup(Tizen::Base::String& pTitle, Tizen::Base::String& pText);
+
+public:
+ /**
+ *@brief Default constructor
+ */
+ InternetApp(void);
+ /**
+ *@brief Default destructor
+ */
+ virtual ~InternetApp(void);
+
+public:
+ bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ bool OnAppInitialized(void);
+
+ bool OnAppWillTerminate(void);
+
+ bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ void OnBackground(void);
+
+ void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ void OnForeground(void);
+
+ void OnLowMemory(void);
+
+ void OnScreenOff(void);
+
+ void OnScreenOn(void);
+
+ //ISettingEventListener
+ void OnSettingChanged(Tizen::Base::String& key);
+
+ //IAppControlProviderEventListener
+ 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);
+
+ long long GetAvailableMemory(void);
+
+ virtual void OnUserEventReceivedN (RequestId requestId, Tizen::Base::Collection::IList *pArgs);
+private:
+ MultipleWindowPresentationModel* __pMultiWindowManager;
+ WindowInfo* __pNewWindowInfo;//the new window object to be created either by the normal launch of application or as an appcontrol launch
+ MainFrame* pSceneManagementFrame;
+ Tizen::Base::String __operationId;
+ const Tizen::Base::String* __value;
+ bool __isShowMsg;
+ Tizen::App::AppControl* __pAc;
+};
+
+#endif // _INT_INTERNET_APP_H_