Tizen 2.0 Release
[apps/home/wrt-setting.git] / webapp-detail / tizen_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_TIZEN_FEATURE_H_
18 #define WEB_SRC_SETTING_WEBAPP_DETAIL_TIZEN_FEATURE_H_
19
20 #include <dpl/wrt-dao-rw/widget_dao.h>
21
22 #include "feature.h"
23
24 namespace WebAppDetailSetting {
25
26 enum tizenFeature {
27     TIZEN_FEATURE_APP = 0x00,
28     TIZEN_FEATURE_TIME,
29     TIZEN_FEATURE_CONTACTS,
30     TIZEN_FEATURE_CALENDAR,
31     TIZEN_FEATURE_CALL,
32     TIZEN_FEATURE_MESSAGING,
33     TIZEN_FEATURE_BLUETOOTH,
34     TIZEN_FEATURE_GEOCODER,
35     TIZEN_FEATURE_NFC,
36     TIZEN_FEATURE_SENSOR,
37     TIZEN_FEATURE_SYSTEMINFO,
38     TIZEN_FEATURE_MAX,
39 };
40
41 class TizenFeature
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 };
49
50 } /* WebAppDetailSetting */
51
52 #endif /* WEB_SRC_SETTING_WEBAPP_DETAIL_TIZEN_FEATURE_H_ */