2 * Copyright 2012-2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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.
20 /*==================================================================================================
22 ==================================================================================================*/
24 #define DEPRECATED __attribute__((deprecated))
27 #define EXPORT_API __attribute__ ((visibility("default")))
30 #define MAX_TO_ADDRESS_CNT 10
31 #define MAX_PHONE_NUMBER_LEN 20
32 #define MAX_ADDRESS_VAL_LEN 254
33 #define MAX_SIGN_VAL_LEN 128
34 #define MAX_SUBJECT_LEN 120
35 #define MAX_DISPLAY_NAME_LEN 195
36 #define MAX_IMAGE_PATH_LEN 1024
37 #define MAX_MSG_DATA_LEN 320
38 #define MAX_MSG_TEXT_LEN 1530
39 #define MAX_FILTER_VALUE_LEN 40
40 #define MAX_COMMAND_LEN 1024
41 #define MAX_FOLDER_NAME_SIZE 20
43 #define MAX_WAPPUSH_ID_LEN 100
44 #define MAX_WAPPUSH_CONTENT_TYPE_LEN 100
45 #define MAX_WAPPUSH_HREF_LEN 300
46 #define MAX_WAPPUSH_CONTENTS_LEN 2048
48 #define MAX_PUSH_CACHEOP_INVALID_OBJECT_MAX 5
49 #define MAX_PUSH_CACHEOP_INVALID_SERVICE_MAX 5
50 #define MAX_PUSH_CACHEOP_MAX_URL_LEN 200
52 #define MAX_COMMON_INFO_SIZE 20
54 #define MAX_SEGMENT_NUM 15
57 * @brief Defines the maximum file path length
59 #define MSG_FILEPATH_LEN_MAX 1024
62 #define SMSC_NAME_MAX 127 /* Max SMSC Name Length */
63 #define SMSC_ADDR_MAX 20 /* Max SMSC Adress Length */
64 #define SMSC_LIST_MAX 5 /* Max List Count of SMSC */
65 #define CB_CHANNEL_NAME_MAX 32 /* cb channel name max size */
66 #define CB_CHANNEL_MAX 30 /* cb channel max count */
67 #define CB_LANG_TYPE_MAX 10
70 * @brief Defines the maximum file name length
72 #define MSG_FILENAME_LEN_MAX 1024
75 * @brief Defines the maximum message id length
77 #define MSG_MSG_ID_LEN 100
80 * @brief Defines the maximum in transition id length
82 #define MAX_SMIL_TRANSIN_ID 100
85 * @brief Defines the maximum out transition id length
87 #define MAX_SMIL_TRANSOUT_ID 100
90 * @brief Defines the maximum region id length
92 #define MAX_SMIL_REGION_ID 151
95 * @brief Defines the maximum transition id length
97 #define MAX_SMIL_TRANSITION_ID 151
100 * @brief Defines the maximum meta id length
102 #define MAX_SMIL_META_ID 151
105 * @brief Defines the maximum meta name length
107 #define MAX_SMIL_META_NAME 100
110 * @brief Defines the maximum meta content length
112 #define MAX_SMIL_META_CONTENT 255
115 * @brief Defines the maximum fit size
117 #define MAX_SMIL_FIT_SIZE 31
120 * @brief Defines the maximum pages in a MMS
122 #define MMS_PAGE_MAX 20
125 * @brief Defines the maximum media in a MMS
127 #define MMS_MEDIA_MAX 60
130 * @brief Defines the maximum alternate text length
132 #define MAX_SMIL_ALT_LEN 255
137 * @brief Defines the small font size
139 #define MMS_SMIL_FONT_SIZE_SMALL 24
142 * @brief Defines the normal font size
144 #define MMS_SMIL_FONT_SIZE_NORMAL 30
147 * @brief Defines the large font size
149 #define MMS_SMIL_FONT_SIZE_LARGE 36
151 #define MAX_SMIL_ANIMATE_ATTRIBUTE_NAME 100
152 #define MAX_SMIL_ANIMATE_ATTRIBUTE_TYPE 100
153 #define MAX_SMIL_ANIMATE_TARGET_ELEMENT 100
154 #define MAX_SMIL_ANIMATE_CALC_MODE 100
156 #define MAX_MMS_JAVA_APPID_LEN 32
158 #define CONV_THUMB_WIDTH 250
159 #define CONV_THUMB_HEIGHT 170
161 #define MMS_TR_ID_LEN 40
162 #define MMS_MSG_ID_LEN 40
163 #define MMS_LOCATION_LEN 100
165 #define MAX_MMS_TEXT_LEN 2000
166 /*==================================================================================================
168 ==================================================================================================*/
170 typedef struct opq_msg_svc_s * msg_handle_t;
171 typedef struct opq_struct_s * msg_struct_t;
174 typedef struct msg_list_handle *msg_list_handle_t;
178 int nCount; /**< Indicates the count of msg_struct_t. */
179 msg_struct_t *msg_struct_info; /**< Indicates the msg_struct_t information list. */
184 * @brief Represents a messsage ID.
186 typedef unsigned int msg_message_id_t;
190 * @brief Represents a storage type.
191 See enum _MSG_STORAGE_ID_E
193 typedef unsigned char msg_storage_id_t;
197 * @brief Represents a folder ID.
198 See enum _MSG_FOLDER_ID_E
200 typedef char msg_folder_id_t;
204 * @brief Represents a request ID, which is unique for each request.
206 typedef unsigned int msg_request_id_t;
210 * @brief Represents a message priority. \n
211 * The values for this type SHOULD be in _MSG_PRIORITY_TYPE_E.
213 typedef unsigned char msg_priority_type_t;
217 * @brief Represents the network status of a message. \n
218 * The values for this type SHOULD be in _MSG_NETWORK_STATUS_E.
220 typedef unsigned char msg_network_status_t;
224 * @brief Represents an address type. \n
225 * The values for this type SHOULD be in _MSG_ADDRESS_TYPE_E.
227 typedef unsigned char msg_address_type_t;
231 * @brief Represents an recipient type. \n
232 * The values for this type SHOULD be in _MSG_RECIPIENT_TYPE_E.
234 typedef unsigned char msg_recipient_type_t;
238 * @brief Represents the type of a message direction. \n
239 * The values for this type SHOULD be in _MSG_DIRECTION_TYPE_E.
241 typedef unsigned char msg_direction_type_t;
245 * @brief Represents an encoding type. \n
246 * The values for this type SHOULD be in _MSG_ENCODE_TYPE_E.
248 typedef unsigned char msg_encode_type_t;
252 * @brief Represents an error code. \n
253 * The values for this type SHOULD be in _MSG_ERROR_E
255 typedef int msg_error_t;
259 \brief Represents WAP Push App Code.
261 typedef unsigned char msg_push_action_t;
265 \brief Represents SyncML Message Type.
267 typedef unsigned short msg_syncml_message_type_t;
271 * @brief Represents a Contact ID.
273 typedef unsigned int msg_contact_id_t;
277 * @brief Represents a Report Type.
278 * The values for this type SHOULD be in _MSG_REPORT_TYPE_E
280 typedef int msg_report_type_t;
284 * @brief Represents a Delivery Report Status.
285 * The values for this type SHOULD be in _MSG_DELIVERY_REPORT_STATUS_E
287 typedef int msg_delivery_report_status_t;
291 * @brief Represents a Read Report Status.
292 * The values for this type SHOULD be in _MSG_READ_REPORT_STATUS_E
294 typedef int msg_read_report_status_t;
298 * @brief Represents a Message Type.
299 * The values for this type SHOULD be in _MSG_MESSAGE_TYPE_E
301 typedef unsigned short msg_message_type_t;
304 * @brief Represents a Message Backup Type.
305 * The values for this type SHOULD be in _MSG_MESSAGE_BACKUP_TYPE_E
307 typedef unsigned int msg_message_backup_type_t;
310 * @brief Represents a thread ID. \n
312 typedef unsigned int msg_thread_id_t;
316 * @brief Represents a filter ID.
318 typedef unsigned char msg_filter_id_t;
322 * @brief Represents a filter Type. \n
323 * The filter Type represents a unique filter type. \n
324 * The values for this type SHOULD be in _MSG_FILTER_TYPE_E.
326 typedef unsigned char msg_filter_type_t;
330 /*==================================================================================================
332 ==================================================================================================*/
335 MSG_STRUCT_FILTER = 0X0000, /**< Indicates the MSG_STRUCT_FILTER */
337 MSG_STRUCT_MESSAGE_INFO = 0x0200, /**< Indicates the MSG_STRUCT_MESSAGE_INFO */
338 MSG_STRUCT_THREAD_INFO = 0x0300,
339 MSG_STRUCT_CONV_INFO = 0x0400,
340 MSG_STRUCT_MMS = 0x0500, /**< Indicates the MSG_STRUCT_MMS */
341 MSG_STRUCT_MMS_PAGE = 0x0600, /**< Indicates the MSG_STRUCT_MMS_PAGE */
342 MSG_STRUCT_MMS_MEDIA = 0x0700, /**< Indicates the MSG_STRUCT_MMS_MEDIA */
343 MSG_STRUCT_MMS_ATTACH = 0x0800, /**< Indicates the MSG_STRUCT_MMS_ATTACH */
344 MSG_STRUCT_MMS_REGION = 0x0900, /**< Indicates the MSG_STRUCT_MMS_REGION */
345 MSG_STRUCT_MMS_TRANSITION = 0x0a00, /**< Indicates the MSG_STRUCT_MMS_TRANSITION */
346 MSG_STRUCT_MMS_META = 0x0b00, /**< Indicates the MSG_STRUCT_MMS_META */
347 MSG_STRUCT_MMS_SMIL_TEXT = 0x0c00, /**< Indicates the MSG_STRUCT_MMS_SMIL_TEXT */
348 MSG_STRUCT_MMS_SMIL_AVI = 0x0d00, /**< Indicates the MSG_STRUCT_MMS_SMIL_AVI */
350 MSG_STRUCT_SETTING_SMSC_OPT = 0x2000,
351 MSG_STRUCT_SETTING_SMSC_INFO = 0x2100, /**< Indicates the MSG_STRUCT_SETTING_SMSC_INFO */
352 MSG_STRUCT_SETTING_CB_OPT = 0x2200, /**< Indicates the MSG_STRUCT_SETTING_CB_OPT */
353 MSG_STRUCT_SETTING_CB_CHANNEL_INFO = 0x2300, /**< Indicates the MSG_STRUCT_CB_CHANNEL_INFO */
354 MSG_STRUCT_SETTING_SMS_SEND_OPT = 0x2400, /**< Indicates the MSG_STRUCT_SETTING_SMS_SEND_OPT */
355 MSG_STRUCT_SETTING_MMS_SEND_OPT = 0x2500, /**< Indicates the MSG_STRUCT_SETTING_MMS_SEND_OPT */
356 MSG_STRUCT_SETTING_MMS_RECV_OPT = 0x2600, /**< Indicates the MSG_STRUCT_SETTING_MMS_RECV_OPT */
357 MSG_STRUCT_SETTING_PUSH_MSG_OPT = 0x2700, /**< Indicates the MSG_STRUCT_SETTING_PUSH_MSG_OPT */
358 MSG_STRUCT_SETTING_VOICE_MSG_OPT = 0x2800, /**< Indicates the MSG_STRUCT_SETTING_VOICE_MSG_OPT */
359 MSG_STRUCT_SETTING_GENERAL_OPT = 0x2900, /**< Indicates the MSG_STRUCT_SETTING_GENERAL_OPT */
360 MSG_STRUCT_SETTING_MSGSIZE_OPT = 0x2c00, /**< Indicates the MSG_STRUCT_SETTING_MSGSIZE_OPT */
363 MSG_STRUCT_SYNCML_INFO = 0x3100, /**< Indicates the MSG_STRUCT_SYNCML_INFO */
364 MSG_STRUCT_COUNT_INFO = 0x3200, /**< Indicates the MSG_STRUCT_COUNT_INFO */
365 MSG_STRUCT_THREAD_COUNT_INFO = 0x3300, /**< Indicates the MSG_STRUCT_THREAD_COUNT_INFO */
366 MSG_STRUCT_THREAD_LIST_INDEX = 0x3400, /**< Indicates the MSG_STRUCT_THREAD_LIST_INDEX */
367 MSG_STRUCT_SORT_RULE = 0x3500, /**< Indicates the MSG_STRUCT_SORT_RULE */
368 MSG_STRUCT_FOLDER_INFO = 0x3600, /**< Indicates the MSG_STRUCT_FOLDER_INFO */
369 MSG_STRUCT_SEARCH_CONDITION = 0x3700, /**< Indicates the MSG_STRUCT_SEARCH_CONDITION */
370 MSG_STRUCT_REPORT_STATUS_INFO = 0x3800, /**< Indicates the MSG_STRUCT_REPORT_STATUS_INFO */
372 MSG_STRUCT_ADDRESS_INFO = 0x4000, /**< Indicates the MSG_STRUCT_ADDRESS_INFO */
373 MSG_STRUCT_SENDOPT = 0x4100, /**< Indicates the MSG_STRUCT_SENDOPT */
374 MSG_STRUCT_MMS_SENDOPT = 0x4200, /**< Indicates the MSG_STRUCT_MMS_SENDOPT */
375 MSG_STRUCT_SMS_SENDOPT = 0x4300, /**< Indicates the MSG_STRUCT_SMS_SENDOPT */
376 MSG_STRUCT_REJECT_MSG_INFO = 0x4400, /**< Indicates the MSG_STRUCT_REJECT_MSG_INFO */
377 MSG_STRUCT_REQUEST_INFO = 0x4500, /**< Indicates the MSG_STRUCT_REQUEST_INFO */
378 MSG_STRUCT_SENT_STATUS_INFO = 0x4600, /**< Indicates the MSG_STRUCT_SENT_STATUS_INFO */
379 MSG_STRUCT_PUSH_CONFIG_INFO = 0x4700, /**< Indicates the MSG_STRUCT_PUSH_CONFIG_INFO */
380 MSG_STRUCT_CB_MSG = 0x4800, /**< Indicates the MSG_STRUCT_CB_MSG */
383 enum _MSG_MESSAGE_INFO_E_ {
384 MSG_MESSAGE_ID_INT = MSG_STRUCT_MESSAGE_INFO+1, /**< Indicates the message ID of this message. */
385 MSG_MESSAGE_THREAD_ID_INT, /**< Indicates the thread ID. */
386 MSG_MESSAGE_FOLDER_ID_INT, /**< Indicates the folder ID. see enum _MSG_FOLDER_TYPE_E */
387 MSG_MESSAGE_TYPE_INT, /**< Indicates the message type. See enum _MSG_MESSAGE_TYPE_E */
388 MSG_MESSAGE_CLASS_TYPE_INT, /**< Message class type. See enum _MSG_CLASS_TYPE_E */
389 MSG_MESSAGE_STORAGE_ID_INT, /**< Indicates where the message is saved. see enum _MSG_STORAGE_ID_E*/
390 MSG_MESSAGE_ADDR_LIST_STRUCT, /**< Indicates the address information list. */
391 MSG_MESSAGE_REPLY_ADDR_STR, /**< Indicates the reply address. */
392 MSG_MESSAGE_SUBJECT_STR, /**< Indicates the message subject. */
393 MSG_MESSAGE_DISPLAY_TIME_INT, /**< Indicates the display time related to the specific operation. */
394 MSG_MESSAGE_NETWORK_STATUS_INT, /**< Indicates the network status of the message. See enum _MSG_NETWORK_STATUS_E */
395 MSG_MESSAGE_ENCODE_TYPE_INT, /**< Indicates the string encoding type. See enum _MSG_ENCODE_TYPE_E */
396 MSG_MESSAGE_READ_BOOL, /**< Indicates whether the message is read or not. */
397 MSG_MESSAGE_PROTECTED_BOOL, /**< Indicates whether the message is protected or not. */
398 MSG_MESSAGE_BACKUP_BOOL, /**< Indicates whether the message was restored from PC. */
399 MSG_MESSAGE_PRIORITY_INT, /**< Indicates the priority of the message. See enum _MSG_PRIORITY_TYPE_E */
400 MSG_MESSAGE_DIRECTION_INT, /**< Indicates whether the message is MO or MT, affecting address. See enum _MSG_DIRECTION_TYPE_E */
401 MSG_MESSAGE_PORT_VALID_BOOL, /**< Indicates whether port information is used or not. */
402 MSG_MESSAGE_DEST_PORT_INT, /**< Recipient port number, not greater than 16 bit */
403 MSG_MESSAGE_SRC_PORT_INT, /**< Sender port number, not greater than 16 bit */
404 MSG_MESSAGE_ATTACH_COUNT_INT, /**< Indicates the count of attached files in mms. */
405 MSG_MESSAGE_THUMBNAIL_PATH_STR, /**< Indicates the thumbnail path of message. */
406 MSG_MESSAGE_DATA_SIZE_INT, /**< Indicates the data size. The unit is byte. */
407 MSG_MESSAGE_SMS_DATA_STR, /**< Indicates the message payload information as a body. default character encoding is UTF-8*/
408 MSG_MESSAGE_MMS_TEXT_STR,
411 enum MSG_FILTER_INFO_E {
412 MSG_FILTER_ID_INT = MSG_STRUCT_FILTER+1, /**< Indicates the filter ID. */
413 MSG_FILTER_TYPE_INT, /**< Indicates the filter type. See enum _MSG_FILTER_TYPE_E */
414 MSG_FILTER_VALUE_STR, /**< The value of the filter. */
415 MSG_FILTER_ACTIVE_BOOL, /**< Indicates the activation of the filter. */
418 enum MSG_STRUCT_THREAD_INFO_E {
419 MSG_THREAD_ID_INT = MSG_STRUCT_THREAD_INFO+1, /**< Indicates the message thread ID. */
420 MSG_THREAD_NAME_STR, /**< Indicates the message thread name */
421 MSG_THREAD_MSG_TYPE_INT, /**< Indicates the message type. See enum _MSG_MESSAGE_TYPE_E */
422 MSG_THREAD_MSG_DATA_STR, /**< The latest message text. */
423 MSG_THREAD_MSG_TIME_INT, /**< The latest message time */
424 MSG_THREAD_DIRECTION_INT, /**< The latest message direction See enum _MSG_DIRECTION_TYPE_E */
425 MSG_THREAD_UNREAD_COUNT_INT, /**< Indicates unread count of thread */
426 MSG_THREAD_SMS_COUNT_INT, /**< Indicates sms message count of thread */
427 MSG_THREAD_MMS_COUNT_INT, /**< Indicates mms message count of thread */
428 MSG_THREAD_PROTECTED_BOOL /**< Indicates whether thread includes protected messages. */
431 enum MSG_STRUCT_CONV_INFO_E {
432 MSG_CONV_MSG_ID_INT = MSG_STRUCT_CONV_INFO+1, /**< Indicates the message ID of this message. */
433 MSG_CONV_MSG_THREAD_ID_INT, /**< Indicates the thread ID. */
434 MSG_CONV_MSG_TYPE_INT, /**< Indicates the message type. See enum _MSG_MESSAGE_TYPE_E */
435 MSG_CONV_MSG_FOLDER_ID_INT, /**< Indicates the folder ID. see enum _MSG_FOLDER_TYPE_E */
436 MSG_CONV_MSG_STORAGE_ID_INT, /**< Indicates where the message is saved. see enum _MSG_STORAGE_ID_E*/
437 MSG_CONV_MSG_SUBJECT_STR, /**< Indicates the message subject. */
438 MSG_CONV_MSG_DISPLAY_TIME_INT, /**< Indicates the display time related to the specific operation. */
439 MSG_CONV_MSG_SCHEDULED_TIME_INT, /**< Indicates the time to send scheduled message. */
440 MSG_CONV_MSG_NETWORK_STATUS_INT, /**< Indicates the network status of the message. See enum _MSG_NETWORK_STATUS_E */
441 MSG_CONV_MSG_READ_BOOL, /**< Indicates whether the message is read or not. */
442 MSG_CONV_MSG_PROTECTED_BOOL, /**< Indicates whether the message is protected or not. */
443 MSG_CONV_MSG_DIRECTION_INT, /**< Indicates whether the message is MO or MT, affecting address. See enum _MSG_DIRECTION_TYPE_E */
444 MSG_CONV_MSG_PAGE_COUNT_INT, /**< Indicates the count of pages in mms. */
445 MSG_CONV_MSG_ATTACH_COUNT_INT, /**< Indicates the count of attached files in mms. */
446 MSG_CONV_MSG_ATTACH_NAME_STR, /**< Indicates the attached file name of message. */
447 MSG_CONV_MSG_AUDIO_NAME_STR, /**< Indicates the audio file name of message. */
448 MSG_CONV_MSG_IMAGE_THUMB_PATH_STR, /**< Indicates the image thumbnail path of message. */
449 MSG_CONV_MSG_VIDEO_THUMB_PATH_STR, /**< Indicates the video thumbnail path of message. */
450 MSG_CONV_MSG_TEXT_SIZE_INT, /**< Indicates the data size. The unit is byte. */
451 MSG_CONV_MSG_TEXT_STR /**< Indicates the message payload information as a body. default character encoding is UTF-8*/
454 enum _MSG_STRUCT_SETTING_SMSC_OPT_E {
455 MSG_SMSC_SELECTED_ID_INT = MSG_STRUCT_SETTING_SMSC_OPT+1,
459 enum _MSG_STRUCT_SETTING_SMSC_INFO_E {
460 MSG_SMSC_ADDR_TON_INT = MSG_STRUCT_SETTING_SMSC_INFO+1, /**< Type of number. See enum _MSG_SMS_TON_E */
461 MSG_SMSC_ADDR_NPI_INT, /**< Numbering plan ID. See enum _MSG_SMS_NPI_E */
462 MSG_SMSC_ADDR_STR, /**< SMSC address */
463 MSG_SMSC_NAME_STR, /**< SMSC name */
464 MSG_SMSC_PID_INT, /**< Protocol idendifier See enum _MSG_SMS_PID_E */
465 MSG_SMSC_VAL_PERIOD_INT /**< Validity period value. See enum _MSG_VAL_PERIOD_E*/
468 enum _MSG_STRUCT_CB_OPT_E {
469 MSG_CB_RECEIVE_BOOL = MSG_STRUCT_SETTING_CB_OPT+1, /**< Indicates whether the CB message is received or not. */
470 MSG_CB_MAX_SIM_COUNT_INT, /**< Indicates the number of channels which can be stored in SIM. */
471 MSG_CB_CHANNEL_LIST_STRUCT, /**< Indicates the cell broadcasting channel information. */
472 MSG_CB_LANGUAGE_TYPE_ALL_BOOL,
473 MSG_CB_LANGUAGE_TYPE_ENG_BOOL, /**< CB message English */
474 MSG_CB_LANGUAGE_TYPE_GER_BOOL, /**< CB message Germany */
475 MSG_CB_LANGUAGE_TYPE_FRE_BOOL, /**< CB message France */
476 MSG_CB_LANGUAGE_TYPE_ITA_BOOL, /**< CB message Italy */
477 MSG_CB_LANGUAGE_TYPE_NED_BOOL, /**< CB message Netherland */
478 MSG_CB_LANGUAGE_TYPE_SPA_BOOL, /**< CB message Spain */
479 MSG_CB_LANGUAGE_TYPE_POR_BOOL, /**< CB message Portugal */
480 MSG_CB_LANGUAGE_TYPE_SWE_BOOL, /**< CB message Sweden */
481 MSG_CB_LANGUAGE_TYPE_TUR_BOOL, /**< CB message Turkey */
484 enum _MSG_STRUCT_CB_CHANNEL_INFO_E {
485 MSG_CB_CHANNEL_ACTIVATE_BOOL = MSG_STRUCT_SETTING_CB_CHANNEL_INFO+1, /**< Indicates whether the CB channel is activate or passive. */
486 MSG_CB_CHANNEL_ID_FROM_INT, /**< Indicates the ID of a CB channel. */
487 MSG_CB_CHANNEL_ID_TO_INT, /**< Indicates the ID of a CB channel. */
488 MSG_CB_CHANNEL_NAME_STR /**< Indicates the name of a CB channel. */
491 enum _MSG_STRUCT_SMS_SEND_OPT_E {
492 MSG_SMS_SENDOPT_ENCODE_TYPE_INT = MSG_STRUCT_SETTING_SMS_SEND_OPT+1, /**< Indicates the string encoding type. See enum _MSG_ENCODE_TYPE_E*/
493 MSG_SMS_SENDOPT_NETWORK_MODE_INT, /**< Indicates the network mode (CS/PS) to send SMS. See enum _MSG_SMS_NETWORK_MODE_E*/
494 MSG_SMS_SENDOPT_REPLY_PATH_BOOL, /**< Indicates whether the SMS reply path is set or not. */
495 MSG_SMS_SENDOPT_DELIVERY_REPORT_BOOL, /**< Indicates whether the SMS delivery report will be sent or not. */
496 MSG_SMS_SENDOPT_SAVE_STORAGE_INT /**< Indicates the default storage to save SMS. See enum _MSG_SMS_SAVE_STORAGE_E */
499 enum _MSG_STRUCT_MMS_SEND_OPT_E {
500 MSG_MMS_SENDOPT_CLASS_TYPE_INT = MSG_STRUCT_SETTING_MMS_SEND_OPT+1, /**< Indicates the class type of message. See enum _MSG_MMS_MSG_CLASS_TYPE_E */
501 MSG_MMS_SENDOPT_PRIORITY_TYPE_INT, /**< Indicates the priority of the message. See enum _MSG_PRIORITY_TYPE_E */
502 MSG_MMS_SENDOPT_EXPIRY_TIME_INT, /**< Indicates the time when the message is to be removed from the MMSC. See enum _MSG_MMS_EXPIRY_TIME_E */
503 MSG_MMS_SENDOPT_DELIVERY_TIME_INT, /**< Indicates the message transmission time which is set in the MMSC. See enum _MSG_MMS_DELIVERY_TIME_E */
504 MSG_MMS_SENDOPT_CUSTOM_DELIVERY_TIME_INT, /**< Indicates the message transmission time which is set in the MMSC. */
505 MSG_MMS_SENDOPT_SENDER_VISIBILITY_BOOL, /**< Indicates whether the address is hidden or not. */
506 MSG_MMS_SENDOPT_DELIVERY_REPORT_BOOL, /**< Indicates whether the delivery report will be sent or not. */
507 MSG_MMS_SENDOPT_READ_REPLY_BOOL, /**< Indicates whether the read report will be sent or not. */
508 MSG_MMS_SENDOPT_KEEP_COPY_BOOL, /**< Indicates whether the message copy is kept or not. */
509 MSG_MMS_SENDOPT_BODY_REPLYING_BOOL, /**< Indicates whether the body is included when replying or not. */
510 MSG_MMS_SENDOPT_HIDE_RECIPIENTS_BOOL, /**< Indicates whether the recipients are hidden or not. */
511 MSG_MMS_SENDOPT_REPLY_CHARGING_INT, /**< Indicates the reply charging type of message. See enum _MSG_MMS_REPLY_CHARGING_TYPE_E */
512 MSG_MMS_SENDOPT_REPLY_CHARGING_DEADLINE_INT, /**< Indicates the deadline for replying charging. is set in the MMSC. */
513 MSG_MMS_SENDOPT_REPLY_CHARGING_SIZE_INT, /**< Indicates the reply charging size. */
514 MSG_MMS_SENDOPT_CREATION_MODE_INT /**< Indicates the creation mode of MMS. See enum _MSG_MMS_CREATION_MODE_E */
517 enum _MSG_STRUCT_MMS_RECV_OPT_E {
518 MSG_MMS_RECVOPT_HOME_RETRIEVE_TYPE_INT = MSG_STRUCT_SETTING_MMS_RECV_OPT+1, /**< Indicates the retrieve type for MMS home network. See enum _MSG_MMS_HOME_RETRIEVE_TYPE_E */
519 MSG_MMS_RECVOPT_ABROAD_RETRIEVE_TYPE_INT, /**< Indicates the retrieve type for MMS abroad network. See enum _MSG_MMS_ABROAD_RETRIEVE_TYPE_E */
520 MSG_MMS_RECVOPT_READ_REPORT_BOOL, /**< Indicates whether the read report will be sent or not. */
521 MSG_MMS_RECVOPT_DELIVERY_REPORT_BOOL, /**< Indicates whether the delivery report will be sent or not. */
522 MSG_MMS_RECVOPT_REJECT_UNKNOWN_BOOL, /**< Indicates whether unknown addresses are rejected or not. */
523 MSG_MMS_RECVOPT_REJECT_ADVERTISEMENT_BOOL /**< Indicates whether advertisement is rejected or not. */
526 enum _MSG_STRUCT_GENERAL_OPT_E {
527 MSG_GENERAL_KEEP_COPY_BOOL = MSG_STRUCT_SETTING_GENERAL_OPT+1, /**< Indicates whether the SMS message copy is kept or not. */
528 MSG_GENERAL_ALERT_TONE_INT, /**< Indicates the period of playing alert tone. See enum _MSG_ALERT_TONE_E */
529 MSG_GENERAL_AUTO_ERASE_BOOL /**< Indicates whether the auto-erase option is enabled or not. */
532 enum _MSG_STRUCT_PUSH_MSG_OPT_E {
533 MSG_PUSHMSG_RECEIVE_BOOL = MSG_STRUCT_SETTING_PUSH_MSG_OPT+1, /**< Indicates whether the push message is received or not. */
534 MSG_PUSHMSG_SERVICE_TYPE_INT /**< Indicates the service type of a push message. See enum _MSG_PUSH_SERVICE_TYPE_E */
537 enum _MSG_STRUCT_VOICE_MSG_OPT_E {
538 MSG_VOICEMSG_ADDRESS_STR = MSG_STRUCT_SETTING_VOICE_MSG_OPT+1, /**< Indicates the address for voice message. */
541 enum _MSG_STRUCT_MSGSISE_OPT_E {
542 MSG_MESSAGE_SIZE_INT = MSG_STRUCT_SETTING_MSGSIZE_OPT+1, /**< Indicates the message size */
546 enum MSG_MMS_INFO_E {
547 MSG_MMS_PAGE_LIST_HND = MSG_STRUCT_MMS+1, /**< The pointer to SMIL pages list */
548 MSG_MMS_REGION_LIST_HND, /**< The pointer to SMIL regions list */
549 MSG_MMS_ATTACH_LIST_HND, /**< The pointer to attachment list */
550 MSG_MMS_TRANSITION_LIST_HND, /**< The pointer to SMIL transitions list */
551 MSG_MMS_META_LIST_HND, /**< The pointer to SMIL meta list */
552 MSG_MMS_ROOTLAYOUT_WIDTH_INT, /**< Indicates the width of the root layout */
553 MSG_MMS_ROOTLAYOUT_WIDTH_PERCENT_BOOL, /**< Indicates the length is in percentage(%) or not */
554 MSG_MMS_ROOTLAYOUT_HEIGHT_INT, /**< Indicates the height of the root layout */
555 MSG_MMS_ROOTLAYOUT_HEIGHT_PERCENT_BOOL, /**< Indicates the length is in percentage(%) or not */
556 MSG_MMS_ROOTLAYOUT_BGCOLOR_INT, /**< Indicates the background color of the root layout */
557 MSG_MMS_ROOTLAYOUT_BGCOLOR_BOOL, /**< Indicates the background color is set in the root layout */
561 enum MSG_MMS_PAGE_INFO_E {
562 MSG_MMS_PAGE_MEDIA_LIST_HND = MSG_STRUCT_MMS_PAGE+1, /**< The pointer to media list */
563 MSG_MMS_PAGE_PAGE_DURATION_INT, /**< Indicates the duration of the page */
564 MSG_MMS_PAGE_BEGIN_TIME_INT, /**< Indicates the begin time of the page */
565 MSG_MMS_PAGE_END_TIME_INT, /**< Indicates the end time of the page */
566 MSG_MMS_PAGE_MIN_INT, /**< Indicates the min attribute of the page */
567 MSG_MMS_PAGE_MAX_INT, /**< Indicates the max attribute of the page */
568 MSG_MMS_PAGE_REPEAT_INT, /**< Indicates the page needs to be displayed repeatedly */
571 enum MSG_MMS_MEDIA_INFO {
572 MSG_MMS_MEDIA_TYPE_INT = MSG_STRUCT_MMS_MEDIA+1, /**< Indicates the SMIL media type. see enum MmsSmilMediaType */
573 MSG_MMS_MEDIA_SRC_STR, /**< Indicates the media source name */
574 MSG_MMS_MEDIA_FILENAME_STR, /**< Indicates the file name */
575 MSG_MMS_MEDIA_FILEPATH_STR, /**< Indicates the file path */
576 MSG_MMS_MEDIA_CONTENT_ID_STR, /**< Indicates the content id */
577 MSG_MMS_MEDIA_REGION_ID_STR, /**< Indicates the region id */
578 MSG_MMS_MEDIA_ALTERNATIVE_STR, /**< Indicates the alternative text to be displayed in failure case */
579 MSG_MMS_MEDIA_DRM_TYPE_INT, /**< Indicates the drm type. see enum MsgDrmType */
580 MSG_MMS_MEDIA_DRM_FULLPATH_STR, /**< Indicates the fullpath of the DRM */
581 MSG_MMS_MEDIA_SMIL_TEXT_HND, /**< Indicates the text attributes */
582 MSG_MMS_MEDIA_SMIL_AVI_HND, /**< Indicates the video attributes */
586 enum MSG_MMS_ATTACH_INFO_E {
587 MSG_MMS_ATTACH_MIME_TYPE_INT = MSG_STRUCT_MMS_ATTACH+1, /**< Indicates the file mime type. see enum MimeType */
588 MSG_MMS_ATTACH_FILENAME_STR, /**< Indicates the file name */
589 MSG_MMS_ATTACH_FILEPATH_STR, /**< Indicates the file path */
590 MSG_MMS_ATTACH_FILESIZE_INT, /**< Indicates the size of the file */
591 MSG_MMS_ATTACH_DRM_TYPE_INT, /**< Indicates the drm type. see enum MsgDrmType */
592 MSG_MMS_ATTACH_DRM_FULLPATH_STR, /**< Indicates the fullpath of the DRM */
595 enum MSG_MMS_REGION_INFO_E {
596 MSG_MMS_REGION_ID_STR = MSG_STRUCT_MMS_REGION+1, /**< Indicates the ID of region information */
597 MSG_MMS_REGION_LENGTH_LEFT_INT, /**< Indicates the left co-ordinate of the region */
598 MSG_MMS_REGION_LENGTH_LEFT_PERCENT_BOOL, /**< Indicates the length is in percentage(%) or not */
599 MSG_MMS_REGION_LENGTH_TOP_INT, /**< Indicates the top co-ordinate of the region */
600 MSG_MMS_REGION_LENGTH_TOP_PERCENT_BOOL, /**< Indicates the length is in percentage(%) or not */
601 MSG_MMS_REGION_LENGTH_WIDTH_INT, /**< Indicates the width of the region */
602 MSG_MMS_REGION_LENGTH_WIDTH_PERCENT_BOOL, /**< Indicates the length is in percentage(%) or not */
603 MSG_MMS_REGION_LENGTH_HEIGHT_INT, /**< Indicates the width of the region */
604 MSG_MMS_REGION_LENGTH_HEIGHT_PERCENT_BOOL, /**< Indicates the length is in percentage(%) or not */
605 MSG_MMS_REGION_BGCOLOR_INT, /**< Indicates the background color of the region */
606 MSG_MMS_REGION_FIT_TYPE_INT, /**< Indicates the fit type. see enum REGION_FIT_TYPE_T */
607 MSG_MMS_REGION_BGCOLOR_BOOL, /**< Indicates the background color is set in the region */
610 enum MSG_MMS_META_INFO_E {
611 MSG_MMS_META_ID_STR = MSG_STRUCT_MMS_META+1, /**< Indicates the ID of meta information */
612 MSG_MMS_META_NAME_STR, /**< Indicates the Name */
613 MSG_MMS_META_CONTENT_STR, /**< Indicates the content */
616 enum MSG_MMS_TRANSION_INFO_E {
617 MSG_MMS_TRANSITION_ID_STR = MSG_STRUCT_MMS_TRANSITION+1, /**< Indicates the ID of transition information */
618 MSG_MMS_TRANSITION_TYPE_INT, /**< Indicates the transition type. see enum MmsSmilTransType */
619 MSG_MMS_TRANSITION_SUBTYPE_INT, /**< Indicates the transition sub type. see enum MmsSmilTransSubType */
620 MSG_MMS_TRANSITION_DURATION_INT, /**< Indicates the transition duration */
623 enum MSG_MMS_SMIL_TEXT_INFO_E {
624 MSG_MMS_SMIL_TEXT_TRANSITION_IN_ID_STR = MSG_STRUCT_MMS_SMIL_TEXT+1, /**< Indicates the In SMIL transition id */
625 MSG_MMS_SMIL_TEXT_TRANSITION_OUT_ID_STR, /**< Indicates the Out SMIL transition id */
626 MSG_MMS_SMIL_TEXT_REPEAT_INT, /**< Indicates the text needs to be displayed repeatedly */
627 MSG_MMS_SMIL_TEXT_BEGIN_INT, /**< Indicates the begin time */
628 MSG_MMS_SMIL_TEXT_END_INT, /**< Indicates the end time */
629 MSG_MMS_SMIL_TEXT_DURTIME_INT, /**< Indicates the duration */
630 MSG_MMS_SMIL_TEXT_BGCOLOR_INT, /**< Indicates the background color of the text */
631 MSG_MMS_SMIL_TEXT_BOLD_BOOL, /**< Indicates whether the text is bold */
632 MSG_MMS_SMIL_TEXT_UNDERLINE_BOOL, /**< Indicates whether the text is underlined */
633 MSG_MMS_SMIL_TEXT_ITALIC_BOOL, /**< Indicates whether the text is Italic */
634 MSG_MMS_SMIL_TEXT_REVERSE_BOOL, /**< Indicates whether the text is reversed */
635 MSG_MMS_SMIL_TEXT_DIRECTION_TYPE_INT, /**< Indicates the text direction type. see enum MmsTextDirection */
636 MSG_MMS_SMIL_TEXT_SIZE_INT, /**< Indicates the font size */
637 MSG_MMS_SMIL_TEXT_COLOR_INT, /**< Indicates the font color */
640 enum MSG_MMS_SMIL_AVI_INFO_E {
641 MSG_MMS_SMIL_AVI_TRANSITION_IN_ID_STR = MSG_STRUCT_MMS_SMIL_AVI+1, /**< Indicates the In SMIL transition id */
642 MSG_MMS_SMIL_AVI_TRANSITION_OUT_ID_STR, /**< Indicates the Out SMIL transition id */
643 MSG_MMS_SMIL_AVI_REPEAT_INT, /**< Indicates the video needs to be displayed repeatedly */
644 MSG_MMS_SMIL_AVI_BEGIN_INT, /**< Indicates the begin time */
645 MSG_MMS_SMIL_AVI_END_INT, /**< Indicates the end time */
646 MSG_MMS_SMIL_AVI_DURTIME_INT, /**< Indicates the duration */
647 MSG_MMS_SMIL_AVI_BGCOLOR_INT, /**< Indicates the background color of the text */
650 enum MSG_SEND_OPT_E {
651 MSG_SEND_OPT_SETTING_BOOL = MSG_STRUCT_SENDOPT+1, /**< Indicates whether the sending option is set ot not for a message */
652 MSG_SEND_OPT_DELIVER_REQ_BOOL, /**< Indicates whether the delivey custom time is used or not */
653 MSG_SEND_OPT_KEEPCOPY_BOOL, /**< Indicates whether the message copy is kept or not */
654 MSG_SEND_OPT_MMS_OPT_HND, /**< The handle of MMS sending option for a message */
655 MSG_SEND_OPT_SMS_OPT_HND, /**< The handle of SMS sending option for a message */
658 enum MSG_SYNCML_INFO_E {
659 MSG_SYNCML_INFO_EXTID_INT = MSG_STRUCT_SYNCML_INFO+1, /**< Indicates the ext ID */
660 MSG_SYNCML_INFO_PINCODE_INT, /**< Indicates the PIN code */
661 MSG_SYNCML_INFO_MESSAGE_HND, /**< Indicate the handle of a message */
664 enum MSG_COUNT_INFO_E {
665 MSG_COUNT_INFO_READ_INT = MSG_STRUCT_COUNT_INFO+1, /**< The count of read messages */
666 MSG_COUNT_INFO_UNREAD_INT, /**< The count of unread messages */
667 MSG_COUNT_INFO_SMS_INT, /**< The count of sms type messages */
668 MSG_COUNT_INFO_MMS_INT, /**< The count of mms type messages */
671 enum MSG_THREAD_COUNT_INFO_E {
672 MSG_THREAD_COUNT_TOTAL_INT = MSG_STRUCT_THREAD_COUNT_INFO+1, /**< Indicates the total number of messages from the Peer. */
673 MSG_THREAD_COUNT_UNREAD_INT, /**< Indicates the unread messages from the Peer. */
674 MSG_THREAD_COUNT_SMS_INT, /**< Indicates the SMS messages from the Peer. */
675 MSG_THREAD_COUNT_MMS_INT, /**< Indicates the MMS messages from the Peer. */
678 enum MSG_THREAD_LIST_INDEX_E {
679 MSG_THREAD_LIST_INDEX_CONTACTID_INT = MSG_STRUCT_THREAD_LIST_INDEX+1, /**< The contact id of message common informatioin */
680 MSG_THREAD_LIST_INDEX_ADDR_INFO_HND, /**< The pointer to message common informatioin */
683 enum MSG_SORT_RULE_E {
684 MSG_SORT_RULE_SORT_TYPE_INT = MSG_STRUCT_SORT_RULE+1, /**< Indicates the sort type. See enum _MSG_SORT_TYPE_E */
685 MSG_SORT_RULE_ACSCEND_BOOL, /**< Indicates the sort order which is ascending or descending */
688 enum MSG_FOLDER_INFO_E {
689 MSG_FOLDER_INFO_ID_INT = MSG_STRUCT_FOLDER_INFO+1, /**< Indicates the unique folder ID. */
690 MSG_FOLDER_INFO_NAME_STR, /**< Indicates the name of the folder. */
691 MSG_FOLDER_INFO_TYPE_INT, /**< Indicates the folder type. */
694 enum MSG_SEARCH_CONDITION_E {
695 MSG_SEARCH_CONDITION_FOLDERID_INT = MSG_STRUCT_SEARCH_CONDITION+1, /**< Indicates the folder ID for searching messages. See enum _MSG_FOLDER_ID_E */
696 MSG_SEARCH_CONDITION_MSGTYPE_INT, /**< Indicates the message type for searching messages. See enum _MSG_MESSAGE_TYPE_E */
697 MSG_SEARCH_CONDITION_ADDRESS_VALUE_STR, /**< The address value for searching messages. */
698 MSG_SEARCH_CONDITION_SEARCH_VALUE_STR, /**< The string to search */
699 MSG_SEARCH_CONDITION_RESERVED_INT,
703 MSG_REPORT_ADDRESS_STR = MSG_STRUCT_REPORT_STATUS_INFO+1, /**< Indicates Report address */
704 MSG_REPORT_TYPE_INT, /**< Indicates Report type. See the msg_report_type_t type*/
705 MSG_REPORT_STATUS_INT, /**< Indicates Report status. See the msg_delivery_report_status_t or msg_read_report_status_t type*/
706 MSG_REPORT_TIME_INT, /**< Indicates Report time */
709 enum MSG_ADDRESS_INFO_E {
710 MSG_ADDRESS_INFO_ADDRESS_TYPE_INT = MSG_STRUCT_ADDRESS_INFO+1, /**< The type of an address in case of an Email or a mobile phone. See enum _MSG_ADDRESS_TYPE_E */
711 MSG_ADDRESS_INFO_RECIPIENT_TYPE_INT, /**< The type of recipient address in case of To, Cc, and Bcc. See enum _MSG_RECIPIENT_TYPE_E */
712 MSG_ADDRESS_INFO_CONTACT_ID_INT, /**< The contact ID of address */
713 MSG_ADDRESS_INFO_ADDRESS_VALUE_STR, /**< The actual value of an address */
714 MSG_ADDRESS_INFO_DISPLAYNAME_STR, /**< The display name of an address */
717 enum MSG_MMS_SENDOPT_E {
718 MSG_MMS_SENDOPTION_READ_REQUEST_BOOL = MSG_STRUCT_MMS_SENDOPT+1, /**< Indicates whether it requests read report or not */
719 MSG_MMS_SENDOPTION_EXPIRY_TIME_INT, /**< Indicates MMS expiry time */
720 MSG_MMS_SENDOPTION_DELIVERY_CUSTOMTIME_BOOL, /**< Indicates whether is use MMS delivery custom time */
721 MSG_MMS_SENDOPTION_DELIVERY_TIME_INT, /**< Indicates MMS delivery time */
722 MSG_MMS_SENDOPTION_PRIORITY_INT, /**< Indicates MMS priority. See enum _MSG_PRIORITY_TYPE_E */
725 enum MSG_SMS_SENDOPT_E {
726 MSG_SMS_SENDOPT_REPLYPATH_BOOL = MSG_STRUCT_SMS_SENDOPT+1, /**< Indicates whether reply path is set */
729 enum MSG_REJECT_MESSAGE_E {
730 MSG_REJECT_MESSAGE_MSGID_INT = MSG_STRUCT_REJECT_MSG_INFO+1, /**< Indicates the font type none */
731 MSG_REJECT_MESSAGE_MSGTEXT_STR, /**< Indicates the font type none */
732 MSG_REJECT_MESSAGE_DISPLAY_TIME_INT, /**< Indicates the font type none */
735 enum MSG_REQUEST_INFO_E {
736 MSG_REQUEST_REQUESTID_INT = MSG_STRUCT_REQUEST_INFO+1, /**< Indicates the request ID, which is unique. When applications submit a request to the framework, this value will be set by the framework. */
737 MSG_REQUEST_MESSAGE_HND, /**< Indicates the message structure to be sent by applications. */
738 MSG_REQUEST_SENDOPT_HND,
741 enum MSG_SENT_STATUS_INFO_E {
742 MSG_SENT_STATUS_REQUESTID_INT = MSG_STRUCT_SENT_STATUS_INFO+1, /**< Indicates the corresponding request Id. */
743 MSG_SENT_STATUS_NETWORK_STATUS_INT, /**< Indicates the status of the corresponding request. Refer to enum _MSG_NETWORK_STATUS_E*/
746 enum MSG_PUSH_CONFIG_INFO_E {
747 MSG_PUSH_CONFIG_CONTENT_TYPE_STR = MSG_STRUCT_PUSH_CONFIG_INFO+1,
748 MSG_PUSH_CONFIG_APPLICATON_ID_STR,
749 MSG_PUSH_CONFIG_PACKAGE_NAME_STR,
750 MSG_PUSH_CONFIG_LAUNCH_BOOL,
754 MSG_CB_MSG_TYPE_INT = MSG_STRUCT_CB_MSG+1, /**< MSG_TYPE_SMS_CB/ETWS_PRIMARY/ETWS_SECONDARY (see _MSG_MESSAGE_TYPE_E) */
755 MSG_CB_MSG_RECV_TIME_INT,
756 MSG_CB_MSG_SERIAL_NUM_INT, /**< serial number of CB/ETWS Primary Noti. : 2 bytes binary data */
757 MSG_CB_MSG_MSG_ID_INT, /**< message identifier of CB/ETWS Primary Noti. */
758 MSG_CB_MSG_DCS_INT, /**< Data coding scheme of CB MSG. */
759 MSG_CB_MSG_CB_TEXT_LEN_INT, /**< length of CB text (except NULL) */
760 MSG_CB_MSG_CB_TEXT_STR, /**< CB text */
761 MSG_CB_MSG_ETWS_WARNING_TYPE_INT, /**< warning type of ETWS Primary Noti. : 2 bytes binary data */
762 MSG_CB_MSG_ETWS_WARNING_SECU_INFO_STR, /**< warning security information of ETWS Primary Noti. : 50 bytes binary data */
763 MSG_CB_MSG_LANGUAGE_TYPE_STR, /**< Language type of CB message data */
767 * @brief Represents the values of a message class type. \n
768 * This enum is used as the value of MSG_CLASS_TYPE_T.
770 enum _MSG_CLASS_TYPE_E
772 MSG_CLASS_0 = 0, /**< Immediately presented on the recipient device display */
773 MSG_CLASS_1, /**< Stored in the mobile equipment or SIM (depending on memory availability) */
774 MSG_CLASS_2, /**< Stored in SIM */
775 MSG_CLASS_3, /**< Transferred to the terminal equipment (such as PDA or PC) which is connected to the mobile equipment */
780 * @brief Represents the type of Message. More members maybe added if needed \n
781 * This enum is used as the value of msg_message_type_t.
783 enum _MSG_MESSAGE_TYPE_E
785 MSG_TYPE_INVALID = 0, /** < Invalid Type Message */
787 MSG_TYPE_SMS, /** < Normal SMS Message */
788 MSG_TYPE_SMS_CB, /** < Cell Broadcasting SMS Message */
789 MSG_TYPE_SMS_JAVACB, /** < JAVA Cell Broadcasting SMS Message */
790 MSG_TYPE_SMS_WAPPUSH, /** < WAP Push SMS Message */
791 MSG_TYPE_SMS_MWI, /** < MWI SMS Message */
792 MSG_TYPE_SMS_SYNCML, /** < SyncML CP SMS Message */
793 MSG_TYPE_SMS_REJECT, /** < Reject Message */
795 MSG_TYPE_MMS, /** < Normal MMS Message */
796 MSG_TYPE_MMS_JAVA, /** < JAVA MMS Message */
797 MSG_TYPE_MMS_NOTI, /** < MMS Notification Message */
799 MSG_TYPE_SMS_ETWS_PRIMARY, /** < CB - ETWS Primary Notification */
800 MSG_TYPE_SMS_ETWS_SECONDARY, /** < CB - ETWS Secondary Notification */
804 * @brief Represents the backup type of Message. More members maybe added if needed \n
805 * This enum is used as the value of msg_message_backup_type_t.
807 enum _MSG_MESSAGE_BACKUP_TYPE_E
809 MSG_BACKUP_TYPE_ALL = 0,
815 * @brief Represents the values of an error code. \n
816 * Success code is zero, but all error codes SHOULD be negative and smaller than MSG_ERROR_BEGIN. \n
817 * This enum is used as the value of msg_error_t.
821 MSG_SUCCESS = 0, /**< Successful */
823 MSG_ERR_NULL_MSGHANDLE = -1, /**< Message handle is NULL */
824 MSG_ERR_NULL_POINTER = -2, /**< Pointer is NULL */
825 MSG_ERR_NULL_MESSAGE = -3, /**< Message is NULL */
826 MSG_ERR_INVALID_STORAGE_ID = -4, /**< Storage ID is invalid */
827 MSG_ERR_INVALID_MSG_TYPE = -5, /**< Message type is invalid */
829 MSG_ERR_INVALID_STORAGE_REG= -6, /**< Storage registry is invalid */
830 MSG_ERR_INVALID_MESSAGE_ID = -7, /**< Message ID is invalid */
831 MSG_ERR_INVALID_MSGHANDLE = -8, /**< Message handle is invalid */
832 MSG_ERR_INVALID_PARAMETER = -9, /**< Parameter is invalid */
833 MSG_ERR_INVALID_MESSAGE = -10, /**< Message is invalid */
835 MSG_ERR_INVALID_PLUGIN_HANDLE = -11, /**< Plugin handle is invalid */
836 MSG_ERR_MEMORY_ERROR = -12, /**< Memory is error */
837 MSG_ERR_COMMUNICATION_ERROR = -13, /**< Communication between client and server is error */
838 MSG_ERR_SIM_STORAGE_FULL = -14, /**< SIM Storage is full */
839 MSG_ERR_TRANSPORT_ERROR = -15, /**< Transport event error */
841 MSG_ERR_CALLBACK_ERROR = -16, /**< Callback event error */
842 MSG_ERR_STORAGE_ERROR = -17, /**< Storage event error */
843 MSG_ERR_FILTER_ERROR = -18, /**< Filter event error */
844 MSG_ERR_MMS_ERROR = -19, /**< MMS event error */
845 MSG_ERR_MMPLAYER_CREATE = -20, /**< Multimedia Error*/
847 MSG_ERR_MMPLAYER_SET_ATTRS = -21, /**< Multimedia Error*/
848 MSG_ERR_MMPLAYER_REALIZE = -22, /**< Multimedia Error*/
849 MSG_ERR_MMPLAYER_PLAY = -23, /**< Multimedia Error*/
850 MSG_ERR_MMPLAYER_STOP = -24, /**< Multimedia Error*/
851 MSG_ERR_MMPLAYER_DESTROY = -25, /**< Multimedia Error*/
853 MSG_ERR_UNKNOWN = -26, /**< Unknown errors */
855 /* Start Database Errors */
856 MSG_ERR_DB_CONNECT = -27,
857 MSG_ERR_DB_DISCONNECT = -28,
858 MSG_ERR_DB_EXEC = -29,
859 MSG_ERR_DB_GETTABLE = -30,
861 MSG_ERR_DB_PREPARE = -31,
862 MSG_ERR_DB_STEP = -32,
863 MSG_ERR_DB_NORECORD= -33,
864 MSG_ERR_DB_STORAGE_INIT = -34,
865 MSG_ERR_DB_MAKE_DIR = -35,
867 MSG_ERR_DB_ROW = -36,
868 MSG_ERR_DB_DONE = -37,
869 MSG_ERR_DB_GENERIC= -38,
870 MSG_ERR_DB_END = -39,
871 /* End Database Errors */
873 /* Start Setting Errors */
874 MSG_ERR_SET_SETTING = -40,
875 MSG_ERR_SET_SIM_SET = -41,
876 MSG_ERR_SET_READ_ERROR = -42,
877 MSG_ERR_SET_WRITE_ERROR = -43,
878 MSG_ERR_SET_DELETE_ERROR = -44,
879 /* End Setting Errors */
881 /* Start Plugin Errors */
882 MSG_ERR_PLUGIN_TAPIINIT = -45,
883 MSG_ERR_PLUGIN_REGEVENT = -46,
884 MSG_ERR_PLUGIN_TRANSPORT = -47,
885 MSG_ERR_PLUGIN_STORAGE = -48,
886 MSG_ERR_PLUGIN_SETTING = -49,
888 MSG_ERR_PLUGIN_WAPDECODE = -50,
889 MSG_ERR_PLUGIN_TAPI_FAILED = -51,
890 MSG_ERR_PLUGIN_SIM_MSG_FULL = -52,
891 /* End Plugin Errors */
893 MSG_ERR_MESSAGE_COUNT_FULL = -53,
894 MSG_ERR_READREPORT_NOT_REQUESTED = -54,
895 MSG_ERR_READREPORT_ALEADY_SENT = -55,
897 MSG_ERR_FILTER_DUPLICATED = -56, /**< Filter duplicate error */
898 MSG_ERR_SECURITY_ERROR = -57,
899 MSG_ERR_NO_SIM = -58,
900 MSG_ERR_SERVER_NOT_READY= -59,
905 * @brief Represents the values of a message priority. \n
906 * This enum is used as the value of msg_priority_type_t.
908 enum _MSG_PRIORITY_TYPE_E
910 MSG_MESSAGE_PRIORITY_LOW, /**< Low priority */
911 MSG_MESSAGE_PRIORITY_NORMAL, /**< Normal priority */
912 MSG_MESSAGE_PRIORITY_HIGH, /**< High priority */
917 * @brief Represents the values of a network status. \n
918 * This enum is used as the value of msg_network_status_t.
920 enum _MSG_NETWORK_STATUS_E
922 MSG_NETWORK_NOT_SEND = 0, /**< Message is not sending */
923 MSG_NETWORK_SENDING, /**< Message is sending */
924 MSG_NETWORK_SEND_SUCCESS, /**< Message is sent successfully */
925 MSG_NETWORK_SEND_FAIL, /**< Message is failed to send */
926 MSG_NETWORK_DELIVER_SUCCESS, /**< Message is delivered */
927 MSG_NETWORK_DELIVER_FAIL, /**< Message is failed to deliver */
928 MSG_NETWORK_RECEIVED, /**< Message is received */
929 MSG_NETWORK_REQ_CANCELLED, /**< Request is cancelled */
930 MSG_NETWORK_RETRIEVING, /**< Message is retrieving */
931 MSG_NETWORK_RETRIEVE_SUCCESS, /**< Message is retrieved successfully */
932 MSG_NETWORK_RETRIEVE_FAIL, /**< Message is failed to retrieve */
933 MSG_NETWORK_SEND_TIMEOUT, /**< Message is failed to send by timeout */
938 * @brief Represents the values of an address type. \n
939 * This enum is used as the value of msg_address_type_t.
941 enum _MSG_ADDRESS_TYPE_E
943 MSG_ADDRESS_TYPE_UNKNOWN = 0, /**< The address type is unknown. */
944 MSG_ADDRESS_TYPE_PLMN, /**< The address type is for a phone number like +1012345678. */
945 MSG_ADDRESS_TYPE_EMAIL, /**< The address type is for an email address like abc@example.email. */
950 * @brief Represents the values of a recipient type. \n
951 * This enum is used as the value of msg_recipient_type_t.
953 enum _MSG_RECIPIENT_TYPE_E
955 MSG_RECIPIENTS_TYPE_UNKNOWN = 0, /**< The recipient type is unknown. */
956 MSG_RECIPIENTS_TYPE_TO, /**< The recipient type is for "To". */
957 MSG_RECIPIENTS_TYPE_CC, /**< The recipient type is for "Cc". */
958 MSG_RECIPIENTS_TYPE_BCC, /**< The recipient type is for "Bcc". */
963 * @brief Represents the values of a direction type. \n
964 * This enum is used as the value of msg_direction_type_t.
966 enum _MSG_DIRECTION_TYPE_E
968 MSG_DIRECTION_TYPE_MO = 0, /**< The direction type is for mobile originated */
969 MSG_DIRECTION_TYPE_MT, /**< The direction type is for mobile terminated */
974 * @brief Represents the values of a string encoding type. \n
975 * This enum is used as the value of msg_encode_type_t.
977 enum _MSG_ENCODE_TYPE_E
979 MSG_ENCODE_GSM7BIT = 0, /**< The string encoding type is GSM7BIT */
980 MSG_ENCODE_8BIT, /**< The string encoding type is 8 BIT */
981 MSG_ENCODE_UCS2, /**< The string encoding type is UCS2 */
982 MSG_ENCODE_AUTO, /**< The string encoding type is AUTO */
984 MSG_ENCODE_GSM7BIT_ABNORMAL, /**< The string encoding type is GSM7BIT, but abnormal character included */
989 * @brief Represents the action type of Push Message. \n
990 * This enum is used as the value of msg_push_action_t.
992 enum _MSG_PUSH_ACTION_E
995 MSG_PUSH_SI_ACTION_SIGNAL_NONE = 0x00,
996 MSG_PUSH_SI_ACTION_SIGNAL_LOW,
997 MSG_PUSH_SI_ACTION_SIGNAL_MEDIUM,
998 MSG_PUSH_SI_ACTION_SIGNAL_HIGH,
999 MSG_PUSH_SI_ACTION_DELETE,
1002 MSG_PUSH_SL_ACTION_EXECUTE_LOW,
1003 MSG_PUSH_SL_ACTION_EXECUTE_HIGH,
1004 MSG_PUSH_SL_ACTION_CACHE,
1009 * @brief Represents the type of SyncML Message. \n
1010 * This enum is used as the value of msg_syncml_message_type_t.
1012 enum _MSG_SYNCML_MESSAGE_TYPE_E
1014 DM_WBXML, /** < DM WBXML SyncML Message */
1015 DM_XML, /** < DM XML SyncML Message */
1016 DM_NOTIFICATION, /** < DM Notification SyncML Message */
1018 DS_NOTIFICATION, /** < DS Notification SyncML Message */
1019 DS_WBXML, /** < DS WBXML SyncML Message */
1021 CP_XML, /** < CP XML SyncML Message */
1022 CP_WBXML, /** < CP WBXML SyncML Message */
1024 OTHERS, /** < Unknown SyncML Message */
1029 * @brief Represents the values of a Delivery Report Status. \n
1030 * This enum is used as the value of msg_delivery_report_status_t.
1032 enum _MSG_DELIVERY_REPORT_STATUS_E
1034 MSG_DELIVERY_REPORT_NONE = -1, /**< Indicates the status unavailable */
1035 MSG_DELIVERY_REPORT_EXPIRED = 0, /**< Indicates the expired status of message */
1036 MSG_DELIVERY_REPORT_SUCCESS = 1, /**< Indicates the success status of message */
1037 MSG_DELIVERY_REPORT_REJECTED = 2, /**< Indicates the rejected status of message */
1038 MSG_DELIVERY_REPORT_DEFERRED = 3, /**< Indicates the deferred status of message */
1039 MSG_DELIVERY_REPORT_UNRECOGNISED = 4, /**< Indicates the unrecongnised status of message */
1040 MSG_DELIVERY_REPORT_INDETERMINATE = 5, /**< Indicates the unrecongnised status of message */
1041 MSG_DELIVERY_REPORT_FORWARDED = 6, /**< Indicates the forwarded status of message */
1042 MSG_DELIVERY_REPORT_UNREACHABLE = 7, /**< Indicates the unreachable status of message */
1043 MSG_DELIVERY_REPORT_ERROR = 8, /**< Indicates the error status of message */
1048 * @brief Represents the values of a Read Report Status. \n
1049 * This enum is used as the value of msg_read_report_status_t.
1051 enum _MSG_READ_REPORT_STATUS_E
1053 MSG_READ_REPORT_NONE = -1, /**< Indicates the status unavailable */
1054 MSG_READ_REPORT_IS_READ = 0, /**< Indicates the message is read */
1055 MSG_READ_REPORT_IS_DELETED = 1 /**< Indicates the message is deleted */
1059 * @brief Represents the values of a Report Type. \n
1060 * This enum is used as the value of msg_read_report_status_t.
1062 enum _MSG_REPORT_TYPE_E
1064 MSG_REPORT_TYPE_DELIVERY = 0, /**< Indicates the type is delivery report*/
1065 MSG_REPORT_TYPE_READ = 1, /**< Indicates the type is read report */
1071 * @brief Represents the values of a filter type. \n
1072 * This enum is used as the value of msg_filter_type_t.
1074 enum _MSG_FILTER_TYPE_E
1076 MSG_FILTER_BY_WORD = 0, /**< Filtered by sub string in the text */
1077 MSG_FILTER_BY_ADDRESS_SAME, /**< Filtered by address exactly same as */
1078 MSG_FILTER_BY_ADDRESS_START, /**< Filtered by address start with */
1079 MSG_FILTER_BY_ADDRESS_INCLUDE, /**< Filtered by address include */
1086 * @brief Represents the values of a mime type.
1088 typedef enum _MimeType
1091 MIME_ASTERISK = 0x0000, /**< Indicates the valid default mime type */
1094 MIME_APPLICATION_XML = 0x1000, /**< Indicates the application xml type */
1095 MIME_APPLICATION_WML_XML = 0x1001, /**< Indicates the application wml xml type */
1096 MIME_APPLICATION_XHTML_XML = 0x1002, /**< Indicates the application xhtml xml type */
1097 MIME_APPLICATION_JAVA_VM = 0x1003, /**< Indicates the application java vm type */
1098 MIME_APPLICATION_SMIL = 0x1004, /**< Indicates the application smil type */
1099 MIME_APPLICATION_JAVA_ARCHIVE = 0x1005, /**< Indicates the application java archive type */
1100 MIME_APPLICATION_JAVA = 0x1006, /**< Indicates the application java type */
1101 MIME_APPLICATION_OCTET_STREAM = 0x1007, /**< Indicates the application octect stream type */
1102 MIME_APPLICATION_STUDIOM = 0x1008, /**< Indicates the application studiom type */
1103 MIME_APPLICATION_FUNMEDIA = 0x1009, /**< Indicates the application fun media type */
1104 MIME_APPLICATION_MSWORD = 0x100a, /**< Indicates the application ms word type */
1105 MIME_APPLICATION_PDF = 0x100b, /**< Indicates the application pdf type */
1106 MIME_APPLICATION_SDP = 0x100c, /**< Indicates the application sdp type */
1107 MIME_APPLICATION_RAM = 0x100d, /**< Indicates the application ram type */
1108 MIME_APPLICATION_ASTERIC = 0x100e, /**< Indicates the application as main type and generic sub type */
1111 MIME_APPLICATION_VND_WAP_XHTMLXML = 0x1100, /**< Indicates the application wap xhtml xml type */
1112 MIME_APPLICATION_VND_WAP_WMLC = 0x1101, /**< Indicates the application wap wmlc type */
1113 MIME_APPLICATION_VND_WAP_WMLSCRIPTC = 0x1102, /**< Indicates the application wap wmlscrpitc type */
1114 MIME_APPLICATION_VND_WAP_WTA_EVENTC = 0x1103, /**< Indicates the application wap wta event type */
1115 MIME_APPLICATION_VND_WAP_UAPROF = 0x1104, /**< Indicates the application wap uaprof type */
1116 MIME_APPLICATION_VND_WAP_SIC = 0x1105, /**< Indicates the application wap sic type */
1117 MIME_APPLICATION_VND_WAP_SLC = 0x1106, /**< Indicates the application wap slc type */
1118 MIME_APPLICATION_VND_WAP_COC = 0x1107, /**< Indicates the application wap coc type */
1119 MIME_APPLICATION_VND_WAP_SIA = 0x1108, /**< Indicates the application wap sia type */
1120 MIME_APPLICATION_VND_WAP_CONNECTIVITY_WBXML = 0x1109, /**< Indicates the application wap connectivity wbxml type */
1121 MIME_APPLICATION_VND_WAP_MULTIPART_FORM_DATA = 0x110a, /**< Indicates the application wap multipart data type */
1122 MIME_APPLICATION_VND_WAP_MULTIPART_BYTERANGES = 0x110b, /**< Indicates the application wap multipart byte type */
1123 MIME_APPLICATION_VND_WAP_MULTIPART_MIXED = 0x110c, /**< Indicates the application wap multipart mixed type */
1124 MIME_APPLICATION_VND_WAP_MULTIPART_RELATED = 0x110d, /**< Indicates the application wap multipart related type */
1125 MIME_APPLICATION_VND_WAP_MULTIPART_ALTERNATIVE = 0x110e, /**< Indicates the application wap multipart alternative type */
1126 MIME_APPLICATION_VND_WAP_MULTIPART_ASTERIC = 0x110f, /**< Indicates the application wap mulitpart as main type and generic sub type */
1127 MIME_APPLICATION_VND_WAP_WBXML = 0x1110, /**< Indicates the application wap wbxml type */
1128 MIME_APPLICATION_VND_OMA_DD_XML = 0x1111, /**< Indicates the application oma dd xml type */
1129 MIME_APPLICATION_VND_OMA_DRM_MESSAGE = 0x1112, /**< Indicates the application oma drm message type */
1130 MIME_APPLICATION_VND_OMA_DRM_CONTENT = 0x1113, /**< Indicates the application oma drm content type */
1131 MIME_APPLICATION_VND_OMA_DRM_RIGHTS_XML = 0x1114, /**< Indicates the application oma drm rights xml type */
1132 MIME_APPLICATION_VND_OMA_DRM_RIGHTS_WBXML = 0x1115, /**< Indicates the application oma drm rights wbxml type */
1133 MIME_APPLICATION_VND_OMA_DRM_RO_XML = 0x1116, /**< Indicates the application oma drm ro xml type */
1134 MIME_APPLICATION_VND_OMA_DRM_DCF = 0x1117, /**< Indicates the application oma drm dcf type */
1135 MIME_APPLICATION_VND_OMA_ROAPPDU_XML = 0x1118, /**< Indicates the application oma roap pdu xml type */
1136 MIME_APPLICATION_VND_OMA_ROAPTRIGGER_XML = 0x1119, /**< Indicates the application oma roap trigger xml type */
1137 MIME_APPLICATION_VND_SMAF = 0x111a, /**< Indicates the application smaf type */
1138 MIME_APPLICATION_VND_RN_REALMEDIA = 0x111b, /**< Indicates the application rn real media type */
1139 MIME_APPLICATION_VND_SUN_J2ME_JAVA_ARCHIVE = 0x111c, /**< Indicates the application j2me java archive type */
1140 MIME_APPLICATION_VND_SAMSUNG_THEME = 0x111d, /**< Indicates the application samsung theme type */
1141 MIME_APPLICATION_VND_EXCEL = 0x111e, /**< Indicates the application excel type */
1142 MIME_APPLICATION_VND_POWERPOINT = 0x111f, /**< Indicates the application power point type */
1143 MIME_APPLICATION_VND_MSWORD = 0x1120, /**< Indicates the application ms word type */
1146 MIME_APPLICATION_X_HDMLC = 0x1200, /**< Indicates the application x hdmlc type */
1147 MIME_APPLICATION_X_X968_USERCERT = 0x1201, /**< Indicates the application x x968 user certified type */
1148 MIME_APPLICATION_X_WWW_FORM_URLENCODED = 0x1202, /**< Indicates the application x www form url encoded type */
1149 MIME_APPLICATION_X_SMAF = 0x1203, /**< Indicates the application x smaf type */
1150 MIME_APPLICATION_X_FLASH = 0x1204, /**< Indicates the application x flash type */
1151 MIME_APPLICATION_X_EXCEL = 0x1205, /**< Indicates the application x excel type */
1152 MIME_APPLICATION_X_POWERPOINT = 0x1206, /**< Indicates the application x power point type */
1155 MIME_AUDIO_BASIC = 0x2000, /**< Indicates the audio basic type */
1156 MIME_AUDIO_MPEG = 0x2001, /**< Indicates the audio mpeg type */
1157 MIME_AUDIO_MP3 = 0x2002, /**< Indicates the audio mp3 type */
1158 MIME_AUDIO_MPG3 = 0x2003, /**< Indicates the audio mpg3 type */
1159 MIME_AUDIO_MPEG3 = 0x2004, /**< Indicates the audio mpeg3 type */
1160 MIME_AUDIO_MPG = 0x2005, /**< Indicates the audio mpg type */
1161 MIME_AUDIO_AAC = 0x2006, /**< Indicates the audio aac type */
1162 MIME_AUDIO_G72 = 0x2007, /**< Indicates the audio g72 type */
1163 MIME_AUDIO_AMR = 0x2008, /**< Indicates the audio amr type */
1164 MIME_AUDIO_AMR_WB = 0x2009, /**< Indicates the audio amr wb type */
1165 MIME_AUDIO_MMF = 0x200a, /**< Indicates the audio mmf type */
1166 MIME_AUDIO_SMAF = 0x200b, /**< Indicates the audio smaf type */
1167 MIME_AUDIO_IMELODY = 0x200c, /**< Indicates the audio imelody type */
1168 MIME_AUDIO_IMELODY2 = 0x200d, /**< Indicates the audio imelody2 type */
1169 MIME_AUDIO_MELODY = 0x200e, /**< Indicates the audio melody type */
1170 MIME_AUDIO_MID = 0x200f, /**< Indicates the audio mid type */
1171 MIME_AUDIO_MIDI = 0x2010, /**< Indicates the audio midi type */
1172 MIME_AUDIO_SP_MIDI = 0x2011, /**< Indicates the audio sp midi type */
1173 MIME_AUDIO_WAVE = 0x2012, /**< Indicates the audio wave type */
1174 MIME_AUDIO_WAV = 0x2013, /**< Indicates the audio wav type */
1175 MIME_AUDIO_3GPP = 0x2014, /**< Indicates the audio 3gpp type */
1176 MIME_AUDIO_MP4 = 0x2015, /**< Indicates the audio mp4 type */
1177 MIME_AUDIO_MP4A_LATM = 0x2016, /**< Indicates the audio mp4 latm type */
1178 MIME_AUDIO_M4A = 0x2017, /**< Indicates the audio m4a type */
1179 MIME_AUDIO_MPEG4 = 0x2018, /**< Indicates the audio mpeg4 type */
1180 MIME_AUDIO_WMA = 0x2019, /**< Indicates the audio wma type */
1181 MIME_AUDIO_XMF = 0x201a, /**< Indicates the audio xmf type */
1182 MIME_AUDIO_IMY = 0x201b, /**< Indicates the audio imy type */
1183 MIME_AUDIO_MOBILE_XMF = 0x201c, /**< Indicates the audio mobile xmf type */
1186 MIME_AUDIO_VND_RN_REALAUDIO = 0x2100, /**< Indicates the audio rn real audio type */
1189 MIME_AUDIO_X_MPEG = 0x2200, /**< Indicates the audio x mpeg type */
1190 MIME_AUDIO_X_MP3 = 0x2201, /**< Indicates the audio x mp3 type */
1191 MIME_AUDIO_X_MPEG3 = 0x2202, /**< Indicates the audio x mpeg3 type */
1192 MIME_AUDIO_X_MPG = 0x2203, /**< Indicates the audio x mpg type */
1193 MIME_AUDIO_X_AMR = 0x2204, /**< Indicates the audio x amr type */
1194 MIME_AUDIO_X_MMF = 0x2205, /**< Indicates the audio x mmf type */
1195 MIME_AUDIO_X_SMAF = 0x2206, /**< Indicates the audio x smaf type */
1196 MIME_AUDIO_X_IMELODY = 0x2207, /**< Indicates the audio x imelody type */
1197 MIME_AUDIO_X_MIDI = 0x2208, /**< Indicates the audio x midi type */
1198 MIME_AUDIO_X_MPEGAUDIO = 0x2209, /**< Indicates the audio x mpeg type */
1199 MIME_AUDIO_X_PN_REALAUDIO = 0x220a, /**< Indicates the audio x pn real audio type */
1200 MIME_AUDIO_X_PN_MULTIRATE_REALAUDIO = 0x220b, /**< Indicates the audio x pn multirate real audio type */
1201 MIME_AUDIO_X_PN_MULTIRATE_REALAUDIO_LIVE = 0x220c, /**< Indicates the audio x pn multirate real audio live type */
1202 MIME_AUDIO_X_WAVE = 0x220d, /**< Indicates the audio x wave type */
1203 MIME_AUDIO_X_WAV = 0x220e, /**< Indicates the audio x wav type */
1204 MIME_AUDIO_X_MS_WMA = 0x220f, /**< Indicates the audio ms wma type */
1205 MIME_AUDIO_X_MID = 0x2210, /**< Indicates the audio mid type */
1206 MIME_AUDIO_X_MS_ASF = 0x2211, /**< Indicates the audio ms asf type */
1207 MIME_AUDIO_X_XMF = 0x2212, /**< Indicates the audio x xmf type */
1210 MIME_IMAGE_GIF = 0x3000, /**< Indicates the image gif type */
1211 MIME_IMAGE_JPEG = 0x3001, /**< Indicates the image jpeg type */
1212 MIME_IMAGE_JPG = 0x3002, /**< Indicates the image jpg type */
1213 MIME_IMAGE_TIFF = 0x3003, /**< Indicates the image tiff type */
1214 MIME_IMAGE_TIF = 0x3004, /**< Indicates the image tif type */
1215 MIME_IMAGE_PNG = 0x3005, /**< Indicates the image png type */
1216 MIME_IMAGE_WBMP = 0x3006, /**< Indicates the image wbmp type */
1217 MIME_IMAGE_PJPEG = 0x3007, /**< Indicates the image pjpeg type */
1218 MIME_IMAGE_BMP = 0x3008, /**< Indicates the image bmp type */
1219 MIME_IMAGE_SVG = 0x3009, /**< Indicates the image svg type */
1220 MIME_IMAGE_SVG1 = 0x300a, /**< Indicates the image svg1 type */
1223 MIME_IMAGE_VND_WAP_WBMP = 0x3100, /**< Indicates the image vnd wap wbmp type */
1224 MIME_IMAGE_VND_TMO_GIF = 0x3101, /**< Indicates the image vnd tmo gif type */
1225 MIME_IMAGE_VND_TMO_JPG = 0x3102, /**< Indicates the image vnd tmo jpg type */
1228 MIME_IMAGE_X_BMP = 0x3200, /**< Indicates the image x bmp type */
1231 MIME_MESSAGE_RFC822 = 0x4000, /**< Indicates the message rfc822 type */
1234 MIME_MULTIPART_MIXED = 0x5000, /**< Indicates the multipart mixed type */
1235 MIME_MULTIPART_RELATED = 0x5001, /**< Indicates the multipart related type */
1236 MIME_MULTIPART_ALTERNATIVE = 0x5002, /**< Indicates the multipart alternative type */
1237 MIME_MULTIPART_FORM_DATA = 0x5003, /**< Indicates the multipart form data type */
1238 MIME_MULTIPART_BYTERANGE = 0x5004, /**< Indicates the multipart byte range type */
1239 MIME_MULTIPART_REPORT = 0x5005, /**< Indicates the multipart report type */
1240 MIME_MULTIPART_VOICE_MESSAGE = 0x5006, /**< Indicates the multipart voice message type */
1243 MIME_TEXT_TXT = 0x6000, /**< Indicates the text txt type */
1244 MIME_TEXT_HTML = 0x6001, /**< Indicates the text html type */
1245 MIME_TEXT_PLAIN = 0x6002, /**< Indicates the text plain type */
1246 MIME_TEXT_CSS = 0x6003, /**< Indicates the text css type */
1247 MIME_TEXT_XML = 0x6004, /**< Indicates the text xml type */
1248 MIME_TEXT_IMELODY = 0x6005, /**< Indicates the text imelody type */
1251 MIME_TEXT_VND_WAP_WMLSCRIPT = 0x6100, /**< Indicates the text wap wmlscript type */
1252 MIME_TEXT_VND_WAP_WML = 0x6101, /**< Indicates the text wap wml type */
1253 MIME_TEXT_VND_WAP_WTA_EVENT = 0x6102, /**< Indicates the text wap wta event type */
1254 MIME_TEXT_VND_WAP_CONNECTIVITY_XML = 0x6103, /**< Indicates the text wap connectivity xml type */
1255 MIME_TEXT_VND_WAP_SI = 0x6104, /**< Indicates the text wap si type */
1256 MIME_TEXT_VND_WAP_SL = 0x6105, /**< Indicates the text wap sl type */
1257 MIME_TEXT_VND_WAP_CO = 0x6106, /**< Indicates the text wap co type */
1258 MIME_TEXT_VND_SUN_J2ME_APP_DESCRIPTOR = 0x6107, /**< Indicates the text sun j2me type */
1261 MIME_TEXT_X_HDML = 0x6200, /**< Indicates the x html type */
1262 MIME_TEXT_X_VCALENDAR = 0x6201, /**< Indicates the x calendar type */
1263 MIME_TEXT_X_VCARD = 0x6202, /**< Indicates the x vcard type */
1264 MIME_TEXT_X_IMELODY = 0x6203, /**< Indicates the x imelody type */
1265 MIME_TEXT_X_IMELODY2 = 0x6204, /**< Indicates the x imelody2 type */
1266 MIME_TEXT_X_VNOTE = 0x6205, /**< Indicates the x vnote type */
1269 MIME_VIDEO_MPEG4 = 0x7000, /**< Indicates the mpeg4 type */
1270 MIME_VIDEO_MP4 = 0x7001, /**< Indicates the mp4 type */
1271 MIME_VIDEO_H263 = 0x7002, /**< Indicates the h263 type */
1272 MIME_VIDEO_3GPP = 0x7003, /**< Indicates the 3gpp type */
1273 MIME_VIDEO_3GP = 0x7004, /**< Indicates the 3gp type */
1274 MIME_VIDEO_AVI = 0x7005, /**< Indicates the avi type */
1275 MIME_VIDEO_SDP = 0x7006, /**< Indicates the sdp type */
1276 MIME_VIDEO_MP4_ES = 0x7007, /**< Indicates the mp4 es type */
1277 MIME_VIDEO_MPEG = 0x7008, /**< Indicates the mpeg type */
1280 MIME_VIDEO_VND_RN_REALVIDEO = 0x7100, /**< Indicates the pn real video type */
1281 MIME_VIDEO_VND_RN_REALMEDIA = 0x7101, /**< Indicates the pn multi rate real media type */
1284 MIME_VIDEO_X_MP4 = 0x7200, /**< Indicates the video x mp4 type */
1285 MIME_VIDEO_X_PV_MP4 = 0x7201, /**< Indicates the video x pv mp4 type */
1286 MIME_VIDEO_X_PN_REALVIDEO = 0x7202, /**< Indicates the x pn real video type */
1287 MIME_VIDEO_X_PN_MULTIRATE_REALVIDEO = 0x7203, /**< Indicates the x pn multi rate real video type */
1288 MIME_VIDEO_X_MS_WMV = 0x7204, /**< Indicates the x ms wmv type */
1289 MIME_VIDEO_X_MS_ASF = 0x7205, /**< Indicates the x ms asf type */
1290 MIME_VIDEO_X_PV_PVX = 0x7206, /**< Indicates the x pv pvx type */
1292 MIME_TYPE_VALUE_MAX = 0x7207, /**< Indicates the maximum mime type */
1293 MIME_UNKNOWN = 0xffff /**< Indicates the unknown mime type */
1298 * @brief Represents the values of a DRM type.
1300 //#ifdef __SUPPORT_DRM__
1303 MSG_DRM_TYPE_NONE = 0, /**< Indicates the drm type none */
1304 MSG_DRM_TYPE_FL = 1, /**< Indicates the forward lock */ /* 2004-07-09: forwardLock type */
1305 MSG_DRM_TYPE_CD = 2, /**< Indicates the combined delivery */ /* 2004-07-09: combined delivery type */
1306 MSG_DRM_TYPE_SD = 3, /**< Indicates the separate delivery */ /* 2004-07-09: seperate delivery type */
1307 MSG_DRM_TYPE_SSD = 4 /**< Indicates the special separate delivery */ // 2005-02-28: add Special Sperate Delivery
1312 * @brief Represents the values of a SMIL region type.
1314 typedef enum _REGION_FIT_TYPE_T
1316 MMSUI_IMAGE_REGION_FIT_HIDDEN, /**< Indicates the hidden fit type */
1317 MMSUI_IMAGE_REGION_FIT_MEET, /**< Indicates the meet fit type */
1322 * @brief Represents the values of a SMIL media type.
1326 MMS_SMIL_MEDIA_INVALID = 0, /**< Indicates the invalid media type */
1327 MMS_SMIL_MEDIA_IMG, /**< Indicates the image media */
1328 MMS_SMIL_MEDIA_AUDIO, /**< Indicates the audio media */
1329 MMS_SMIL_MEDIA_VIDEO, /**< Indicates the video media */
1330 MMS_SMIL_MEDIA_TEXT, /**< Indicates the text media */
1331 MMS_SMIL_MEDIA_ANIMATE, /**< Indicates the animation media */
1332 MMS_SMIL_MEDIA_IMG_OR_VIDEO , /**< Indicates the image or video media */
1333 MMS_SMIL_MEDIA_MAX = 0xffffffff, /**< Indicates the maximum media type */
1337 * @brief Represents the values of a SMIL transition type.
1341 MMS_SMIL_TRANS_NONE = 0, /**< Indicates the transition type none */ /* default */
1342 MMS_SMIL_TRANS_SLIDEWIPE = 1, /**< Indicates the slide wipe transition */
1343 MMS_SMIL_TRANS_BARWIPE = 2, /**< Indicates the bar wipe transition */
1344 MMS_SMIL_TRANS_BARNDOORWIPE = 3, /**< Indicates the bar and door wipe transition */
1345 MMS_SMIL_TRANS_FADE = 4, /**< Indicates the fade transition */
1346 MMS_SMIL_TRANS_RANDOMBLOCK = 5, /**< Indicates the random block transition */
1347 MMS_SMIL_TRANS_ZOOMIN = 6, /**< Indicates the zoom in transition */
1348 MMS_SMIL_TRANS_IRISWIPE = 7, /**< Indicates the iris wipe transition */
1349 MMS_SMIL_TRANS_BOXWIPE = 8, /**< Indicates the box wipe transition */
1350 MMS_SMIL_TRANS_FOURBOXWIPE = 9, /**< Indicates the four box wipe transition */
1351 MMS_SMIL_TRANS_PUSHWIPE =10, /**< Indicates the push wipe transition */
1352 MMS_SMIL_TRANS_ELLIPSEWIPE = 11 /**< Indicates the ellipse wipe transition */
1356 * @brief Represents the values of a SMIL transition sub type.
1360 MMS_SMIL_TRANS_SUB_NONE = 0, /**< Indicates the transition sub type none */
1361 MMS_SMIL_TRANS_SUB_FROM_LEFT = 1, /**< Indicates the from left transition */ /* slideWipe's default */
1362 MMS_SMIL_TRANS_SUB_FROM_TOP = 2, /**< Indicates the from top transition */
1363 MMS_SMIL_TRANS_SUB_FROM_BOTTOM = 3, /**< Indicates the from bottom transition */
1364 MMS_SMIL_TRANS_SUB_TOP_TO_BOTTOM = 4, /**< Indicates the from top to bottom transition */ /* barWipe's default */
1365 MMS_SMIL_TRANS_SUB_BOTTOM_TO_TOP = 5, /**< Indicates the from bottom to top transition */
1366 MMS_SMIL_TRANS_SUB_HORIZONTAL = 6, /**< Indicates the horizontal transition */ /* barDoorWipe's default */
1367 MMS_SMIL_TRANS_SUB_FROM_RIGHT = 7, /**< Indicates the from right transition */
1368 MMS_SMIL_TRANS_SUB_VERTICAL = 8 /**< Indicates the vertical transition */
1369 }MmsSmilTransSubType;
1372 * @brief Represents the values of a text font type.
1376 MMS_SMIL_FONT_TYPE_NONE = 0, /**< Indicates the font type none */
1377 MMS_SMIL_FONT_TYPE_NORMAL = 1, /**< Indicates the font type normal */
1378 MMS_SMIL_FONT_TYPE_ITALIC = 2, /**< Indicates the font type italic */
1379 MMS_SMIL_FONT_TYPE_BOLD = 3, /**< Indicates the font type bold */
1380 MMS_SMIL_FONT_TYPE_UNDERLINE = 4 /**< Indicates the font type underline */
1384 * @brief Represents the values of a MMS text direction.
1386 typedef enum _MmsTextDir{
1387 MMS_TEXT_DIRECTION_INVALID = -1, /**< Indicates the invalid direction */
1388 MMS_TEXT_DIRECTION_RIGHT = 0, /**< Indicates the right direction */
1389 MMS_TEXT_DIRECTION_DOWN, /**< Indicates the down direction */ // supported to GC
1393 * @brief Represents the values of MMS Read Report Sent Status.
1397 MMS_RECEIVE_READ_REPORT_NO_SEND, // didn't send yet
1398 MMS_RECEIVE_READ_REPORT_MUST_SEND, // didn't send yet but will send
1399 MMS_RECEIVE_READ_REPORT_SENT, // sent
1400 MMS_RECEIVE_READ_REPORT_NO_SENT, // required but, didn't send by user's choice
1401 } MmsRecvReadReportSendStatus ;
1407 * @brief Represents the values of an option type. \n
1408 * This enum is used as the value of MSG_OPTION_TYPE_T.
1410 enum _MSG_OPTION_TYPE_E
1412 MSG_GENERAL_OPT, /**< General option */
1413 MSG_SMS_SENDOPT, /**< SMS send option */
1414 MSG_SMSC_LIST, /**< SMSC list option */
1415 MSG_MMS_SENDOPT, /**< MMS send option */
1416 MSG_MMS_RECVOPT, /**< MMS receive option */
1417 MSG_MMS_CLASSOPT, /**< MMS class option such as personal, advertisement, and informational */
1418 MSG_MMS_STYLEOPT, /**< MMS style option */
1419 MSG_PUSHMSG_OPT, /**< Push message option */
1420 MSG_CBMSG_OPT, /**< Cell broadcasting message option */
1421 MSG_VOICEMAIL_OPT, /**< Voice mail option */
1422 MSG_MSGSIZE_OPT, /**< Message size option */
1427 * @brief Represents the values of an SMS network mode. \n
1428 * This enum is used as the value of MSG_SMS_NETWORK_MODE_T.
1430 enum _MSG_SMS_NETWORK_MODE_E
1432 MSG_SMS_NETWORK_PS_ONLY = 0x01, /**< Packet switched */
1433 MSG_SMS_NETWORK_CS_ONLY = 0x02, /**< Circuit switched */
1434 MSG_SMS_NETWORK_PS_FIRST = 0x03, /**< Packet switching preferred */
1439 * @brief Represents the value of period of playing alert tone. \n
1440 * The values for this type SHOULD be in MSG_ALERT_TONE_T.
1442 enum _MSG_ALERT_TONE_E
1444 MSG_ALERT_TONE_ONCE,
1445 MSG_ALERT_TONE_2MINS,
1446 MSG_ALERT_TONE_5MINS,
1447 MSG_ALERT_TONE_10MINS,
1452 * @brief Represents the value of a default storage to save SMS. \n
1453 * The values for this type SHOULD be in MSG_SMS_SAVE_STORAGE_T.
1455 enum _MSG_SMS_SAVE_STORAGE_E
1457 MSG_SMS_SAVE_STORAGE_SIM,
1458 MSG_SMS_SAVE_STORAGE_PHONE,
1463 * @brief Represents the values of the type of number for SMS center address. \n
1464 * This enum is used as the value of MSG_SMS_TON_T.
1468 MSG_TON_UNKNOWN = 0, /**< Unknown */
1469 MSG_TON_INTERNATIONAL, /**< International */
1470 MSG_TON_NATIONAL, /**< National */
1471 MSG_TON_NETWORK, /**< Network */
1472 MSG_TON_SUBSCRIBER, /**< Subscriber */
1473 MSG_TON_ALPHANUMERIC, /**< Alpha numeric */
1474 MSG_TON_ABBREVIATED, /**< Abbreviated */
1475 MSG_TON_RESERVE, /**< Reserve */
1480 * @brief Represents the values of the numbering plan ID for SMS center address. \n
1481 * This enum is used as the value of MSG_SMS_NPI_T.
1485 MSG_NPI_UNKNOWN = 0, /**< Unknown */
1486 MSG_NPI_ISDN = 1, /**< ISDN */
1487 MSG_NPI_DATA = 3, /**< Data */
1488 MSG_NPI_TELEX = 4, /**< Telex */
1489 MSG_NPI_SMSC = 5, /**< SMSC */
1490 MSG_NPI_NATIONAL = 8, /**< National */
1491 MSG_NPI_PRIVATE = 9, /**< Private */
1492 MSG_NPI_IDENTIFICATION_ERMES = 10, /**< Identification ermes */
1493 MSG_NPI_IDENTIFICATION_RESERVED = 0xF /**< Identification reserved */
1498 * @brief Represents the values of the protocol ID for SMS center address. \n
1499 * This enum is used as the value of MSG_SMS_PID_T.
1503 MSG_PID_NONE, /**< None */
1504 MSG_PID_TEXT, /**< Text */
1505 MSG_PID_VOICE, /**< Voice */
1506 MSG_PID_FAX, /**< Fax */
1507 MSG_PID_X400, /**< X400 */
1508 MSG_PID_ERMES, /**< Ermes */
1509 MSG_PID_EMAIL, /**< Email */
1510 MSG_PID_MAX /**< Default */
1515 * @brief Represents the values of the Validity Period for SMS center. \n
1516 * This enum is used as the value of MSG_VAL_PERIOD_T.
1518 enum _MSG_VAL_PERIOD_E
1521 MSG_VAL_2DAYS = 168,
1522 MSG_VAL_1WEEK = 173,
1523 MSG_VAL_2WEEKS = 180,
1524 MSG_VAL_MAXIMUM = 255,
1528 enum _MSG_MMS_EXPIRY_TIME_E
1530 MSG_EXPIRY_TIME_MAXIMUM = 0,
1531 MSG_EXPIRY_TIME_1DAY = 86400,
1532 MSG_EXPIRY_TIME_2DAYS = 2*86400,
1533 MSG_EXPIRY_TIME_1WEEK = 604800,
1534 MSG_EXPIRY_TIME_2WEEKS = 2*604800,
1538 enum _MSG_MMS_DELIVERY_TIME_E
1540 MSG_DELIVERY_TIME_IMMEDIATLY = 0,
1541 MSG_DELIVERY_TIME_1HOUR = 3600,
1542 MSG_DELIVERY_TIME_1DAY = 86400,
1543 MSG_DELIVERY_TIME_1WEEK = 604800,
1544 MSG_DELIVERY_TIME_CUSTOM
1548 enum _MSG_MMS_MSG_CLASS_TYPE_E
1550 MSG_CLASS_PERSONAL, /**<Personal message class*/
1551 MSG_CLASS_ADVERTISEMENT, /**<Advertisement message class*/
1552 MSG_CLASS_INFORMATIONAL, /**<Informational message class */
1553 MSG_CLASS_AUTO, /**<Automatic */
1554 MSG_CLASS_MAX /**< */
1558 enum _MSG_MMS_REPLY_CHARGING_TYPE_E
1560 MSG_REPLY_CHARGING_NONE, /**<Reply-Charging none */
1561 MSG_REPLY_CHARGING_REQUESTED, /**<Reply-Charging requested */
1562 MSG_REPLY_CHARGING_REQUESTED_TEXT_ONLY, /**<Reply-Charging requested text-only */
1563 MSG_REPLY_CHARGING_ACCEPTED, /**<Reply-Charging accepted */
1564 MSG_REPLY_CHARGING_ACCEPTED_TEXT_ONLY, /**<Reply-Charging accepted text-only */
1565 MSG_REPLY_CHARGING_MAX
1569 enum _MSG_MMS_CREATION_MODE_E
1571 MSG_CREATION_MODE_RESTRICTED,
1572 MSG_CREATION_MODE_WARNING,
1573 MSG_CREATION_MODE_FREE
1578 * @brief Represents the values of the retrieve type for MMS home network. \n
1579 * This enum is used as the value of MSG_MMS_HOME_RETRIEVE_TYPE_T.
1581 enum _MSG_MMS_HOME_RETRIEVE_TYPE_E
1583 MSG_HOME_AUTO_DOWNLOAD, /**< Home auto download */
1584 MSG_HOME_MANUAL, /**< Home manual */
1585 MSG_HOME_RESTRICTED, /**< Home restricted */
1586 MSG_HOME_REJECT, /**< Home reject */
1587 MSG_HOME_MAX /**< Default */
1592 * @brief Represents the values of the retrieve type for MMS abroad network. \n
1593 * This enum is used as the value of MSG_MMS_ABROAD_RETRIEVE_TYPE_T.
1595 enum _MSG_MMS_ABROAD_RETRIEVE_TYPE_E
1597 MSG_ABROAD_AUTO_DOWNLOAD, /**< Abroad auto download */
1598 MSG_ABROAD_MANUAL, /**< Abroad manual */
1599 MSG_ABROAD_RESTRICTED, /**< Abroad restricted */
1600 MSG_ABROAD_REJECT, /**< Abroad reject */
1601 MSG_ABROAD_MAX /**< Default */
1606 * @brief Represents the values of the frequency of sending MMS read report. \n
1607 * This enum is used as the value of MSG_MMS_SEND_READ_REPORT_T.
1609 enum _MSG_MMS_SEND_READ_REPORT_E
1611 MSG_SEND_READ_REPORT_ALWAYS, /**< Read report always */
1612 MSG_SEND_READ_REPORT_NEVER, /**< Read report never */
1613 MSG_SEND_READ_REPORT_REQUEST, /**< Read report request */
1614 MSG_SEND_READ_REPORT_MAX /**< Default */
1619 * @brief Represents the values of the service type for a push message. \n
1620 * This enum is used as the value of MSG_PUSH_SERVICE_TYPE_T.
1622 enum _MSG_PUSH_SERVICE_TYPE_E
1624 MSG_PUSH_SERVICE_ALWAYS, /**< Push message service always */
1625 MSG_PUSH_SERVICE_PROMPT, /**< Push message service prompt */
1626 MSG_PUSH_SERVICE_NEVER, /**< Push message service never */
1631 * @brief Represents the values of the language type for a cell broadcasting message. \n
1632 * This enum is used as the value of MSG_CB_LANGUAGE_TYPE_T.
1634 enum _MSG_CB_LANGUAGE_TYPE_E
1636 MSG_CBLANG_TYPE_ALL, /**< CB check all */
1637 MSG_CBLANG_TYPE_ENG, /**< CB message English */
1638 MSG_CBLANG_TYPE_GER, /**< CB message Germany */
1639 MSG_CBLANG_TYPE_FRE, /**< CB message France */
1640 MSG_CBLANG_TYPE_ITA, /**< CB message Italy */
1641 MSG_CBLANG_TYPE_NED, /**< CB message Netherland */
1642 MSG_CBLANG_TYPE_SPA, /**< CB message Spain */
1643 MSG_CBLANG_TYPE_POR, /**< CB message Portugal */
1644 MSG_CBLANG_TYPE_SWE, /**< CB message Sweden */
1645 MSG_CBLANG_TYPE_TUR, /**< CB message Turkey */
1646 MSG_CBLANG_TYPE_MAX /**< Default */
1651 * @brief Represents the values of SIM status. \n
1652 * This enum is used as the value of MSG_SIM_STATUS_T.
1654 enum _MSG_SIM_STATUS_E
1656 MSG_SIM_STATUS_NORMAL = 0,
1657 MSG_SIM_STATUS_CHANGED,
1658 MSG_SIM_STATUS_NOT_FOUND,
1662 #endif /* MSG_TYPES_H_ */