Tizen 2.0 Release
[apps/home/wrt-setting.git] / webapp-detail / wac_feature.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
4   * Licensed under the Flora License, Version 1.0 (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 #ifndef WEB_SRC_SETTING_WEBAPP_DETAIL_WAC_FEATURE_H_ 
18 #define WEB_SRC_SETTING_WEBAPP_DETAIL_WAC_FEATURE_H_
19
20 #include <dpl/wrt-dao-rw/widget_dao.h>
21
22 #include "feature.h"
23
24 namespace WebAppDetailSetting {
25
26 enum wacFeature {
27     WAC_FEATURE_ACCELEROMETER = 0x00,
28     WAC_FEATURE_ORIENTATION,
29     WAC_FEATURE_CAMERA,
30     WAC_FEATURE_DEV_STAT,
31     WAC_FEATURE_FILE_SYSTEM,
32     WAC_FEATURE_MESSAGING,
33     WAC_FEATURE_GEOLOCATION,
34     WAC_FEATURE_CONTACTS,
35     WAC_FEATURE_CALENDAR,
36     WAC_FEATURE_TASK,
37     WAC_FEATURE_DEV_INTERATION,
38     WAC_FEATURE_MAX,
39 };
40
41 class WacFeature
42 {
43     static const char *m_feature[];
44     static const char *m_featureName[];
45   public:
46     static std::map<int, Feature> getFeatureMap(
47             WrtDB::DbWidgetFeatureSet &features,
48             int appID);
49 };
50
51 } /* WebAppDetailSetting */
52
53 #endif /* WEB_SRC_SETTING_WEBAPP_DETAIL_WAC_FEATURE_H_ */