83f8983ee179a49043056c3aa774af5cd63b6917
[platform/core/telephony/tel-plugin-database.git] / feature / include / tfeature.h
1 /*
2  * libtfeature
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Junghwan Song <jump.song@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23 #pragma once
24
25 #define TFEATURE_TYPE_FUNCTION    0x40
26 #define TFEATURE_TYPE_UI          0x80
27 #define TFEATURE_TYPE_DEVICE      0xC0
28
29 typedef enum {
30
31         /* function feature : 0x41 ~ 0x7F */
32         TFEATURE_FUNCTION = TFEATURE_TYPE_FUNCTION,
33         TFEATURE_FUNCTION_DISPLAY_CHN_SPN,
34         TFEATURE_FUNCTION_ENABLE_DSAC,
35         TFEATURE_FUNCTION_SMS_BEARER_PS_PREFERRED,
36         TFEATURE_FUNCTION_CNAP_UNPACK_DCS,
37         TFEATURE_FUNCTION_DISPLAY_RATINFO_MANUALSEARCH,
38         TFEATURE_FUNCTION_DISPLAY_PLMN_NAME_ONLY,
39         TFEATURE_FUNCTION_DISPLAY_PLMN_FAKING_4MVNO,
40         TFEATURE_FUNCTION_DISPLAY_LAC_NETNAME,
41         TFEATURE_FUNCTION_DISPLAY_LU_REJECT_CAUSE,
42         TFEATURE_FUNCTION_DISPLAY_DELTA_AND_SHORT_NAME,
43         TFEATURE_FUNCTION_REFER_EONS_ON_MANUAL_SEARCH,
44         TFEATURE_FUNCTION_CHECK_ACTIVATED_SIM,
45         TFEATURE_FUNCTION_ENABLE_ENS,
46         TFEATURE_FUNCTION_RTS_INDICATION,
47         TFEATURE_FUNCTION_HIDE_CNAP = 0x4F,
48         TFEATURE_FUNCTION_REFER_EONS_WITHOUT_LAC,
49         TFEATURE_FUNCTION_REFER_SPN_ON_MANUAL_SEARCH,
50         TFEATURE_FUNCTION_SKIP_EONS_INFO,
51         TFEATURE_FUNCTION_MANAGER_NETWORK_NAME_ENABLE,
52         TFEATURE_FUNCTION_SUPPORT_WB_AMR_2G,
53         TFEATURE_FUNCTION_SUPPORT_OVERRIDE_IPV4_ONLY,
54         TFEATURE_FUNCTION_PPP_AUTHENTIFICATION,
55         TFEATURE_FUNCTION_NOTIFY_LINE_CONTROL,
56         TFEATURE_FUNCTION_NET_STK_HIDE_ALPHA_ID,
57         TFEATURE_FUNCTION_AUTO_RESUME,
58         TFEATURE_FUNCTION_CS_OVERRIDE_EMERGENCY_CALL,
59         TFEATURE_FUNCTION_ENABLE_IPV6_RSRA,
60         TFEATURE_FUNCTION_ENABLE_CDMA,
61         TFEATURE_FUNCTION_NET_CHECK_ECC_RAT,
62         TFEATURE_FUNCTION_EMERGENCY_CALLBACK,
63         TFEATURE_FUNCTION_SEND_APN_INFO = 0x5F,
64         TFEATURE_FUNCTION_IMS_PDN_AUTO_ACTIVATE,
65         TFEATURE_FUNCTION_DUAL_NUMBER_SERVICE,
66         TFEATURE_FUNCTION_TWO_PHONE_SERVICE,
67         TFEATURE_FUNCTION_BIP_OTA_REGISTRATION,
68         TFEATURE_FUNCTION_SUPPORT_STK_BIP,
69         TFEATURE_FUNCTION_SEND_OK_FOR_SAT_DISPLAY_TEXT,
70         TFEATURE_FUNCTION_SUPPORT_SEND_SMS_FOR_SAT_SEND_SMS,
71         TFEATURE_FUNCTION_SEND_SSAC_STATUS,
72         TFEATURE_FUNCTION_PACKET_KEEP_ALIVE,
73         TFEATURE_FUNCTION_ATTACH_APN_INTERNET,
74         TFEATURE_FUNCTION_BACKUP_APN,
75         TFEATURE_FUNCTION_SUPPORT_MF_ONLY_ESIM_CARD,
76         TFEATURE_FUNCTION_MAX_VALUE = 0x7F,
77
78         /* UI feature : 0x81 ~ 0xBF */
79         TFEATURE_UI = TFEATURE_TYPE_UI,
80         TFEATURE_UI_NO_SVC_MANUAL_PLMN_CHECK,
81         TFEATURE_UI_CALL_LAUNCH_CS_REGISTER,
82         TFEATURE_UI_NITZ_TIME_UPDATE_POPUP,
83         TFEATURE_UI_SIM_RAISE_INVALID_SIM_POPUP,
84         TFEATURE_UI_DATA_ROAMING_SUB_MENU,
85         TFEATURE_UI_DATA_ROAMING_ALWAYS_ASK,
86         TFEATURE_UI_DATA_ROAMING_POPUP_ONLY_WHEN_PS_ACCEPTED,
87         TFEATURE_UI_LAUNCH_ACTIVATION_POPUP,
88         TFEATURE_UI_DISPLAY_LU_REJECT_CAUSE,
89         TFEATURE_UI_MAX_VALUE = 0xBF,
90
91         /* Device feature : 0xC1 ~ 0xCF */
92         TFEATURE_DEVICE = TFEATURE_TYPE_DEVICE,
93         TFEATURE_DEVICE_NO_DISPLAY_PANEL = 0xC1,
94         TFEATURE_DEVICE_WEARABLE,
95         TFEATURE_DEVICE_LTE_ONLY,
96
97         TFEATURE_DEVICE_CHIPSET_VENDOR_EXYNOS,
98
99
100         TFEATURE_MAX_VALUE = 0xFF,
101 } tfeature_name;
102
103 typedef enum {
104         TFEATURE_NOT_SUPPORTED = 0,
105         TFEATURE_SUPPORTED = 1,
106 } tfeature_support;
107
108 EXPORT_API tfeature_support tfeature_is_supported(tfeature_name feature);