blob: 0172c53b623a9d84756c714b209ac4e7f8d5b910 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*****************************************************************************
37 *
38 * Filename:
39 * ---------
40 * smslib_enum.h
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file contains enum
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 *============================================================================
55 * HISTORY
56 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
57 *------------------------------------------------------------------------------
58 * removed!
59 *
60 * removed!
61 * removed!
62 * removed!
63 *
64 * removed!
65 * removed!
66 * removed!
67 *
68 * removed!
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 * removed!
75 *
76 * removed!
77 * removed!
78 * removed!
79 *
80 * removed!
81 * removed!
82 * removed!
83 *
84 *
85 *
86 *------------------------------------------------------------------------------
87 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
88 *============================================================================
89 ****************************************************************************/
90#ifndef _SMSLIB_ENUM_H
91#define _SMSLIB_ENUM_H
92
93#if defined(__SMS_STORAGE_BY_MMI__)
94
95#if 0
96/* under construction !*/
97/* under construction !*/
98/* under construction !*/
99/* under construction !*/
100/* under construction !*/
101/* under construction !*/
102/* under construction !*/
103/* under construction !*/
104/* under construction !*/
105/* under construction !*/
106/* under construction !*/
107/* under construction !*/
108/* under construction !*/
109/* under construction !*/
110/* under construction !*/
111/* under construction !*/
112/* under construction !*/
113/* under construction !*/
114/* under construction !*/
115/* under construction !*/
116/* under construction !*/
117/* under construction !*/
118/* under construction !*/
119/* under construction !*/
120/* under construction !*/
121/* under construction !*/
122/* under construction !*/
123/* under construction !*/
124/* under construction !*/
125/* under construction !*/
126/* under construction !*/
127/* under construction !*/
128/* under construction !*/
129/* under construction !*/
130/* under construction !*/
131/* under construction !*/
132/* under construction !*/
133/* under construction !*/
134/* under construction !*/
135/* under construction !*/
136/* under construction !*/
137/* under construction !*/
138/* under construction !*/
139/* under construction !*/
140/* under construction !*/
141/* under construction !*/
142/* under construction !*/
143/* under construction !*/
144/* under construction !*/
145/* under construction !*/
146/* under construction !*/
147/* under construction !*/
148/* under construction !*/
149/* under construction !*/
150/* under construction !*/
151/* under construction !*/
152/* under construction !*/
153/* under construction !*/
154/* under construction !*/
155/* under construction !*/
156/* under construction !*/
157/* under construction !*/
158/* under construction !*/
159/* under construction !*/
160/* under construction !*/
161/* under construction !*/
162/* under construction !*/
163/* under construction !*/
164/* under construction !*/
165/* under construction !*/
166/* under construction !*/
167/* under construction !*/
168/* under construction !*/
169/* under construction !*/
170/* under construction !*/
171/* under construction !*/
172/* under construction !*/
173/* under construction !*/
174/* under construction !*/
175/* under construction !*/
176/* under construction !*/
177/* under construction !*/
178/* under construction !*/
179/* under construction !*/
180/* under construction !*/
181/* under construction !*/
182/* under construction !*/
183/* under construction !*/
184/* under construction !*/
185/* under construction !*/
186/* under construction !*/
187/* under construction !*/
188/* under construction !*/
189/* under construction !*/
190#endif
191
192typedef enum
193{
194 SMSLIB_MTI_DELIVER = 0x00,
195 SMSLIB_MTI_DELIVER_REPORT = 0x00,
196 SMSLIB_MTI_SUBMIT = 0x01,
197 SMSLIB_MTI_SUBMIT_REPORT = 0x01,
198 SMSLIB_MTI_STATUS_REPORT = 0x02,
199 SMSLIB_MTI_COMMAND = 0x02,
200
201 SMSLIB_MTI_UNSPECIFIED = 0x03 /* MMI shall handle this case,
202 * eg, displaying "does not support",
203 * or "cannot display", etc */
204} smslib_mti_enum;
205
206typedef enum
207{
208 SMSLIB_CLASS0 = 0,
209 SMSLIB_CLASS1,
210 SMSLIB_CLASS2,
211 SMSLIB_CLASS3,
212 SMSLIB_CLASS_UNSPECIFIED,
213
214 SMSLIB_MW_DISCARD, /* follows are for SMSLIB internal use */
215 SMSLIB_MW_STORE,
216 SMSLIB_RCM,
217 SMSLIB_NUM_OF_NMI_MSG_ENUM
218} smslib_msg_class_enum;
219
220typedef enum
221{
222 /* follows intended for AT commands and MMI */
223 SMSLIB_REC_UNREAD = 0, /* received unread */
224 SMSLIB_REC_READ, /* received read */
225 SMSLIB_STO_UNSENT, /* stored unsent */
226 SMSLIB_STO_SENT, /* stored sent */
227
228 SMSLIB_ALL, /* all (only applicable to +CMGL command)
229 * not for MMI
230 */
231
232 /* follows intended for MMI only */
233 SMSLIB_INBOX_PARTIAL, /* parts of inbox messages */
234 SMSLIB_OUTBOX_PARTIAL, /* parts of outbox messages */
235 SMSLIB_STO_DRAFT, /* stored draft */
236 SMSLIB_INVALID_STATUS
237} smslib_sim_status_enum;
238
239typedef enum
240{
241 SMSLIB_STATUS_OK = 0x00,
242 SMSLIB_STATUS_NULL_POINTER, /* application pass a NULL pointer */
243 SMSLIB_STATUS_NO_MEMORY, /* library run out of memory */
244 SMSLIB_STATUS_ALREADY_INITIALIZED, /* library already be initialized */
245 SMSLIB_STATUS_NOT_INITIALIZED, /* library is not be initialized */
246 SMSLIB_STATUS_INVALID_PARAMETER,
247 SMSLIB_STATUS_INVALID_MTI,
248 SMSLIB_STATUS_UNSPECIFIED_ERROR,
249 SMSLIB_STATUS_INPUT_SPDU_LENGTH_ERROR,
250 SMSLIB_STATUS_INPUT_PDU_LENGTH_ERROR,
251 SMSLIB_STATUS_INPUT_TPDU_LENGTH_ERROR,
252 SMSLIB_STATUS_ADDR_LENGTH_ERROR,
253 SMSLIB_STATUS_USER_DATA_LENGTH_ERROR,
254 SMSLIB_STATUS_INPUT_LENGTH_ERROR,
255 SMSLIB_STATUS_LENGTH_ERROR,
256 SMSLIB_STATUS_END
257} smslib_status_enum;
258
259typedef enum
260{
261 SMSLIB_GSM7_BIT = 0,
262 SMSLIB_EIGHT_BIT,
263 SMSLIB_UCS2,
264 SMSLIB_ALPHABET_UNSPECIFIED
265
266} smslib_alphabet_enum;
267
268typedef enum
269{
270 SMSLIB_MW_VM = 0,
271 SMSLIB_MW_FAX,
272 SMSLIB_MW_EMAIL,
273 SMSLIB_MW_OTHER,
274#ifdef __REL6__
275 SMSLIB_MW_VIDEO_MSG,
276#endif
277 SMSLIB_NUM_OF_MSG_WAITING_TYPE
278} smslib_msg_waiting_type_enum;
279
280typedef enum
281{
282 SMSLIB_MSG_WAIT_CPHS = 0x01,
283 SMSLIB_MSG_WAIT_DCS = 0x02,
284 SMSLIB_MSG_WAIT_UDH = 0x04,
285 SMSLIB_MSG_WAIT_UDH_EVM = 0x08
286} smslib_type_of_msg_waiting_enum;
287
288typedef enum
289{
290 SMSLIB_VPF_NOT_PRESENT = 0x00,
291 SMSLIB_VPF_ENHANCED = 0x01,
292 SMSLIB_VPF_RELATIVE = 0x02,
293 SMSLIB_VPF_ABSOLUTE = 0x03
294
295} smslib_vp_format_enum;
296
297typedef enum
298{
299 SMSLIB_DEFAULT_DCS = 0x00, /* GSM 7-bit */
300 SMSLIB_8BIT_DCS = 0x04, /* 8-bit */
301 SMSLIB_UCS2_DCS = 0x08, /* UCS2 */
302 SMSLIB_RESERVED_DCS = 0x0c, /* reserved alphabet,
303 currently, MMI shall display "not support alphabet"
304 or "cannot display" when receive dcs indicated this value */
305 SMSLIB_EXT_DCS = 0x10 /* Special dcs for non-standard character,
306 used by MMI and EMS */
307} smslib_dcs_enum;
308
309typedef enum
310{
311 /* Mailbox */
312 SMSLIB_LINE_1 = 0,
313 SMSLIB_LINE_2 = 1,
314 SMSLIB_MAX_LINES = 2,
315
316 /* SMS profile parameter */
317 SMSLIB_PROFILE_1 = 0,
318 SMSLIB_PROFILE_2 = 1,
319 SMSLIB_PROFILE_3 = 2,
320 SMSLIB_PROFILE_4 = 3, /* SMSAL_MAX_PROFILE_NUM (4) */
321 SMSLIB_PROFILE_NONE = 0xff /* invalid profile ID */
322} smslib_dest_no_enum;
323
324typedef enum
325{
326 SMSLIB_DEFAULT_PID = 0x00, /* Text SMS */
327 SMSLIB_TELEX_PID = 0x21, /* Telex */
328 SMSLIB_G3_FAX_PID = 0x22, /* Group 3 telefax */
329 SMSLIB_G4_FAX_PID = 0x23, /* Group 4 telefax */
330 SMSLIB_VOICE_PID = 0x24, /* Voice Telephone */
331 SMSLIB_ERMES_PID = 0x25, /* ERMES (European Radio Messaging System) */
332 SMSLIB_PAGING_PID = 0x26, /* National Paging system */
333 SMSLIB_X400_PID = 0x31, /* Any public X.400-based message system */
334 SMSLIB_EMAIL_PID = 0x32 /* E-mail SMS */
335} smslib_pid_enum;
336
337#endif // __SMS_STORAGE_BY_MMI__
338
339#endif