2a8b0b22b1a4e1d56d4dd281b47d47590df3d1d9
[framework/osp/appwidget-service.git] / src / OspAppWidgetService.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.1 (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 /**
19  * @file        OspAppWidgetService.cpp
20  * @brief       This is the implementation for the OspAppWidgetService class.
21  */
22
23 #include "FShell_AppWidgetManagerService.h"
24 #include "OspAppWidgetService.h"
25
26 using namespace Tizen::App;
27 using namespace Tizen::Base;
28 using namespace Tizen::System;
29 using namespace Tizen::Shell::App;
30
31
32 OspAppWidgetService::OspAppWidgetService()
33 {
34 }
35
36 OspAppWidgetService::~OspAppWidgetService()
37 {
38 }
39
40 ServiceApp*
41 OspAppWidgetService::CreateInstance(void)
42 {
43         // Create the instance through the constructor.
44         return new (std::nothrow) OspAppWidgetService();
45 }
46
47 bool
48 OspAppWidgetService::OnAppInitializing(AppRegistry& appRegistry)
49 {
50         AppLog("Enter.");
51
52         AppWidgetManagerService* pSvc = AppWidgetManagerService::GetInstance();
53         AppAssertf( pSvc != null, "AppWidgetManagerService::GetInstance() failed.");
54
55         return true;
56 }
57
58 bool
59 OspAppWidgetService::OnAppInitialized(void)
60 {
61         return true;
62 }
63
64 bool
65 OspAppWidgetService::OnAppWillTerminate(void)
66 {
67         return true;
68 }
69
70 bool
71 OspAppWidgetService::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
72 {
73         return true;
74 }
75
76 void
77 OspAppWidgetService::OnLowMemory(void)
78 {
79 }
80
81 void
82 OspAppWidgetService::OnBatteryLevelChanged(BatteryLevel batteryLevel)
83 {
84 }