merge with master
[platform/framework/native/app-controls.git] / src / nfc-push-ui-app-control / inc / NfcPushUi.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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 /**
19 * @file         NfcPushUi.h
20 * @brief        This file contains the declaration of NfcPushUiApp class.
21 */
22
23 #ifndef _NFC_PUSH_UI_H_
24 #define _NFC_PUSH_UI_H_
25
26 #include <FAppUiApp.h>
27 #include <FAppIAppControlProviderEventListener.h>
28 #include <FSysIScreenEventListener.h>
29
30 class NfcPushUiApp
31         : public Tizen::App::UiApp
32         , public Tizen::System::IScreenEventListener
33         , public Tizen::App::IAppControlProviderEventListener
34 {
35 public:
36         static Tizen::App::UiApp* CreateInstance(void);
37
38 public:
39         NfcPushUiApp(void);
40         virtual~NfcPushUiApp(void);
41
42 public:
43         // Called when the UiApp is initializing.
44         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
45
46         // Called when the UiApp initializing is finished. 
47         bool OnAppInitialized(void); 
48
49         // Called when the UiApp is requested to terminate. 
50         bool OnAppWillTerminate(void); 
51
52         // Called when the UiApp is terminating.
53         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
54
55         // Called when the UiApp's frame moves to the top of the screen.
56         void OnForeground(void);
57
58         // Called when this UiApp's frame is moved from top of the screen to the background.
59         void OnBackground(void);
60
61         // Called when the system memory is not sufficient to run the UiApp any further.
62         void OnLowMemory(void);
63
64         // Called when the battery level changes.
65         void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
66
67         // Called when the screen turns on.
68         void OnScreenOn(void);
69
70         // Called when the screen turns off.
71         void OnScreenOff(void);
72
73         // IAppControlProviderEventListener
74         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);
75
76 private:
77         RequestId __reqId;
78         Tizen::Base::String __iconPath;
79         Tizen::Base::String __description;
80 };
81
82 #endif // _NFC_PUSH_UI_H_