Applied latest source code
[apps/native/preloaded/Settings.git] / inc / StSettingsApp.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                StSettingsApp.h
19  * @brief               This is the header file for SettingsApp class.
20  */
21
22 #ifndef _ST_SETTINGS_APP_H_
23 #define _ST_SETTINGS_APP_H_
24
25 #include <FApp.h>
26 #include <FBase.h>
27 #include <FSystem.h>
28 #include <FUi.h>
29
30 class SettingsApp
31         : public Tizen::App::UiApp
32         , public Tizen::App::IAppControlProviderEventListener
33         , public Tizen::System::IScreenEventListener
34 {
35 public:
36         SettingsApp(void);
37         virtual ~SettingsApp(void);
38
39         static Tizen::App::UiApp* CreateInstance(void);
40
41         RequestId GetRequestId(void);
42         Tizen::Ui::Scenes::SceneId GetInitialSceneId(void);
43         Tizen::Base::Collection::IList* GetArguments(void);
44
45         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
46         bool OnAppInitialized(void);
47         bool OnAppWillTerminate(void);
48         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
49         void OnForeground(void);
50         void OnBackground(void);
51         void OnLowMemory(void);
52         void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
53         void OnScreenOn(void);
54         void OnScreenOff(void);
55
56         virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData);
57
58 private:
59         Tizen::Ui::Scenes::SceneId __initialSceneId;
60         Tizen::Base::Collection::IList* __pArgs;
61         RequestId __requestId;
62 };
63
64 #endif //  _ST_SETTINGS_APP_H_