2 * Copyright (C) 2008 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef REFERENCE_CDMA_SMS_H
18 #define REFERENCE_CDMA_SMS_H 1
20 #include <telephony/ril.h>
21 #include <telephony/ril_cdma_sms.h>
25 * check if Bearer data subparameter mask values (CDMS_SMA_MASK_*) have to be moved to ril_cdma_sms.h
26 * vendor implementation needs to use ril_cdma_decode_sms and ril_cdma_encode_sms as function names
29 /** Bearer data subparameter mask values: */
30 // TODO T: use enum from vendor .h
31 #define WMS_MASK_BD_NULL 0x00000000
32 #define WMS_MASK_BD_MSG_ID 0x00000001
33 #define WMS_MASK_BD_USER_DATA 0x00000002
34 #define WMS_MASK_BD_USER_RESP 0x00000004
35 #define WMS_MASK_BD_MC_TIME 0x00000008
36 #define WMS_MASK_BD_VALID_ABS 0x00000010
37 #define WMS_MASK_BD_VALID_REL 0x00000020
38 #define WMS_MASK_BD_DEFER_ABS 0x00000040
39 #define WMS_MASK_BD_DEFER_REL 0x00000080
40 #define WMS_MASK_BD_PRIORITY 0x00000100
41 #define WMS_MASK_BD_PRIVACY 0x00000200
42 #define WMS_MASK_BD_REPLY_OPTION 0x00000400
43 #define WMS_MASK_BD_NUM_OF_MSGS 0x00000800
44 #define WMS_MASK_BD_ALERT 0x00001000
45 #define WMS_MASK_BD_LANGUAGE 0x00002000
46 #define WMS_MASK_BD_CALLBACK 0x00004000
47 #define WMS_MASK_BD_DISPLAY_MODE 0x00008000
48 #define WMS_MASK_BD_SCPT_DATA 0x00010000
49 #define WMS_MASK_BD_SCPT_RESULT 0x00020000
50 #define WMS_MASK_BD_DEPOSIT_INDEX 0x00040000
51 #define WMS_MASK_BD_DELIVERY_STATUS 0x00080000
52 #define WMS_MASK_BD_IP_ADDRESS 0x10000000
53 #define WMS_MASK_BD_RSN_NO_NOTIFY 0x20000000
54 #define WMS_MASK_BD_OTHER 0x40000000
57 /** Decode a CDMA SMS Message. */
58 RIL_Errno wmsts_ril_cdma_decode_sms (
59 RIL_CDMA_Encoded_SMS * encoded_sms, /* Input */
60 RIL_CDMA_SMS_ClientBd * client_bd /* Output */
63 /** Encode a CDMA SMS Message. */
64 RIL_Errno wmsts_ril_cdma_encode_sms (
65 RIL_CDMA_SMS_ClientBd * client_bd, /* Input */
66 RIL_CDMA_Encoded_SMS * encoded_sms /* Output */
69 #endif /*REFERENCE_CDMA_SMS_H*/