[appwidget-service] Remove Open Service Platform words
[framework/osp/appwidget-service.git] / inc / OspAppWidgetService.h
1 //
2 // Copyright (c) 2012-2013 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        OspAppWidgetService.h
19  * @brief       This is the header file for the OspAppWidgetService class.
20  *
21  * This header file contains the declarations of the OspAppWidgetService class.
22  */
23
24 #ifndef _OSP_APPWIDGET_SERVICE_H_
25 #define _OSP_APPWIDGET_SERVICE_H_
26
27 #include <FApp.h>
28 #include <FBase.h>
29 #include <FSystem.h>
30
31 /**
32  * [OspAppWidgetService] ServiceApp must inherit from ServiceApp class
33  * which provides basic features necessary to define an ServiceApp.
34  */
35 class OspAppWidgetService
36         : public Tizen::App::ServiceApp
37 {
38 public:
39
40         /**
41          * [OspAppWidgetService] ServiceApp must have a factory method that creates an instance of itself.
42          */
43         static Tizen::App::ServiceApp* CreateInstance(void);
44
45 public:
46
47         OspAppWidgetService();
48         ~OspAppWidgetService();
49
50 public:
51
52         // Called when the ServiceApp is initializing.
53         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
54
55         // Called when the ServiceApp initializing is finished.
56         bool OnAppInitialized(void); 
57
58         // Called when the ServiceApp is requested to terminate.
59         bool OnAppWillTerminate(void);
60
61         // Called when the ServiceApp is terminating.
62         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
63
64         // Called when the system memory is not sufficient to run the ServiceApp any further.
65         void OnLowMemory(void);
66
67         // Called when the battery level changes.
68         void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
69
70 };
71
72 #endif // _$(baseName_upper)_H_