Fix WGT handlers includes
[platform/core/appfw/wgt-backend.git] / src / wgt / step / step_check_wgt_background_category.cc
1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #include "wgt/step/step_check_wgt_background_category.h"
6
7 #include <common/installer_context.h>
8 #include <wgt_manifest_handlers/setting_handler.h>
9
10 #include "wgt/wgt_backend_data.h"
11
12 namespace {
13 namespace ci_sec = common_installer::security;
14 }  // namespace
15
16 namespace wgt {
17 namespace security {
18
19 StepCheckWgtBackgroundCategory::StepCheckWgtBackgroundCategory(
20     common_installer::InstallerContext* context) :
21         ci_sec::StepCheckBackgroundCategory(context) {}
22
23 bool StepCheckWgtBackgroundCategory::GetBackgroundSupport() {
24   const wgt::parse::SettingInfo& settings = static_cast<WgtBackendData*>(
25       context_->backend_data.get())->settings.get();
26   return settings.background_support_enabled();
27 }
28
29 }  // namespace security
30 }  // namespace wgt