diff src/ui/mfw/mfw_sms.h @ 188:92abb46dc1ba

src/ui/mfw/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 19 Jan 2021 06:10:27 +0000
parents 67bfe9f274f6
children
line wrap: on
line diff
--- a/src/ui/mfw/mfw_sms.h	Tue Jan 19 05:41:26 2021 +0000
+++ b/src/ui/mfw/mfw_sms.h	Tue Jan 19 06:10:27 2021 +0000
@@ -18,20 +18,20 @@
       Solution     : Earlier, index alone was sufficient to identify messages. Now memory should also be taken care of.
 
 	Feb 07, 2006    DR: OMAPS00059261 x0pleela
-   	Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI 
+   	Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI
    	Solution: Renamed "MFW_SMS_STATRPT_PENDG" to MFW_SMS_STATRPT in T_MFW_SMS_STAT
    			Removed T_MFW_SMS_MT_TYPE enumeration added earlier
-   			
+
       	Feb 01, 2006    DR: OMAPS00059261 x0pleela
-   	Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI 
-   	Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type MT, MO or STATUS REPORT. 
+   	Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI
+   	Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type MT, MO or STATUS REPORT.
    			Changed the name from T_MFW_SMS_MSG_TYPE to T_MFW_SMS_MT_TYPE
    			Changed the type of new field  sms_msg_type ( of type T_MFW_SMS_MT_TYPE) in the structure T_MFW_SMS_MT.
    			Added new enumeration type "MFW_SMS_STATRPT_PENDG" into T_MFW_SMS_STAT
-   			
+
       	Jan 30, 2006    DR: OMAPS00059261 x0pleela
-   	Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI 
-   	Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type either TEXT or STATUS REPORT. 
+   	Description: SMS is not forwarding STATUS reports that are read from SIM storage to ACI
+   	Solution: Added new enumeration T_MFW_SMS_MSG_TYPE to suport message type either TEXT or STATUS REPORT.
    			Added new field  sms_msg_type to the structure T_MFW_SMS_MT.
 
    	Jan 20, 2006    REF: DRT OMAPS00053377 xdeepadh
@@ -42,18 +42,18 @@
        Description: OMAPS00045726 / MMI-FIX-30439 Follow-Up : ifdef for FF Home Zone forgotten.
        Solution: Added Feature flag FF_HOMEZONE for the function sms_homezoneCBToggle(U8 Activate_CB)
        in this file as it has got the prototype for this function
-       
+
 	Jun 14, 2005 REF: MMI-FIX-30439 x0018858
    	Description: The homezone/cityzone tags were not being displayed properly.
-   	Solution: Modified to save the tags properly in caches and also made the 
+   	Solution: Modified to save the tags properly in caches and also made the
 	appropriate modifications to update the same properly during mobility.
 
 	x0018858 24 Mar, 2005 MMI-FIX-11321
 	Issue Description :- If the inbox is full and a new message is receivd, no indication is received.
 	Fix: Added support for handling indication when message box is full and
 	there is a pending message.
-	
-      	Feb 16, 2005 REF: CRR MMI-SPR-27900 xnkulkar 
+
+      	Feb 16, 2005 REF: CRR MMI-SPR-27900 xnkulkar
   	Issue description:  BMI: using the tool nowSMS the voicemail indication via sms does not work
   	Solution: Instead of identifying voice using addr[0] and pid, we use dcs. Also, messages belonging
   	              to group "1100" are deleted when voicemail icon is displayed.
@@ -62,31 +62,31 @@
 	Bug:Re-align structure members in MFW
 	Fix:Structure elements have been  realigned to avoid the structure padding
 
-  * *****************  Version 27  ***************** 
-   SPR 2260:  Merged in bugfixes 1833,  and 1830 
+  * *****************  Version 27  *****************
+   SPR 2260:  Merged in bugfixes 1833,  and 1830
    fom the 1.6.3 branch into this file.
- * 
+ *
  * *****************  Version 26  *****************
  * User: Vo           Date: 22.03.00   Time: 17:44
  * Updated in $/GSM/Condat/MS/SRC/MFW
  * check voice mail status
- * 
+ *
  * *****************  Version 24  *****************
  * User: Vo           Date: 14.01.00   Time: 20:15
  * Updated in $/GSM/Condat/MS/SRC/MFW
  * Bug fix: Constant  define:  MAX_CBMSG_LEN
  * New:change parameter "data" to "data + len" in function
- * sms_submit(), sms_store() and sms_change() 
- * 
+ * sms_submit(), sms_store() and sms_change()
+ *
  * *****************  Version 23  *****************
  * User: Vo           Date: 2.12.99    Time: 13:15
  * Updated in $/GSM/Condat/MS/SRC/MFW
- * 
+ *
  * *****************  Version 22  *****************
  * User: Vo           Date: 17.11.99   Time: 12:17
  * Updated in $/GSM/Condat/MS/SRC/MFW
  * change define NON_STRING_CHARACTER to NO_ASCIIZ
- * 
+ *
  * *****************  Version 21  *****************
  * User: Vo           Date: 17.11.99   Time: 11:00
  * Updated in $/GSM/Condat/MS/SRC/MFW
@@ -96,89 +96,89 @@
  * 4. #ifdef NON_STRING_CHARACTER  - alpha uses data + len
  * 5. Change interface: sms_submit()
  * 6. New interface: sms_change_read_status()
- * 
+ *
  * *****************  Version 20  *****************
  * User: Vo           Date: 21.10.99   Time: 13:35
  * Updated in $/GSM/Condat/MS/SRC/MFW
  * change constant define
- * 
+ *
  * *****************  Version 19  *****************
  * User: Es           Date: 16.09.99   Time: 17:23
  * Updated in $/GSM/DEV/MS/SRC/MFW
  * added TON/NPI fields to T_MFW_SMS_ADDR
- * 
+ *
  * *****************  Version 18  *****************
  * User: Vo           Date: 12.09.99   Time: 12:40
  * Updated in $/GSM/DEV/MS/SRC/MFW
  * change parameter 'dcs' in T_MFW_SMS_CB_INFO (adaptation to ACI)
- * 
+ *
  * *****************  Version 17  *****************
  * User: Vo           Date: 10.09.99   Time: 19:53
  * Updated in $/GSM/DEV/MS/SRC/MFW
  * move sms_save_pref_lang() to sim_save_pref_lang()
- * 
+ *
  * *****************  Version 16  *****************
  * User: Vo           Date: 30.08.99   Time: 15:19
  * Updated in $/GSM/DEV/MS/SRC/MFW
  * new events
- * 
+ *
  * *****************  Version 15  *****************
  * User: Vo           Date: 26.07.99   Time: 14:32
  * Updated in $/GSM/DEV/MS/SRC/MFW
  * Add new definitions
- * 
+ *
  * *****************  Version 14  *****************
  * User: Vo           Date: 16.07.99   Time: 13:50
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 13  *****************
  * User: Vo           Date: 16.07.99   Time: 10:39
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 12  *****************
  * User: Vo           Date: 22.06.99   Time: 8:54
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 11  *****************
  * User: Vo           Date: 1.06.99    Time: 14:47
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 10  *****************
  * User: Vo           Date: 28.05.99   Time: 9:52
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 9  *****************
  * User: Vo           Date: 21.05.99   Time: 13:51
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 8  *****************
  * User: Vo           Date: 18.05.99   Time: 14:35
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 7  *****************
  * User: Vo           Date: 25.03.99   Time: 16:34
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 6  *****************
  * User: Vo           Date: 25.02.99   Time: 16:47
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 5  *****************
  * User: Vo           Date: 17.02.99   Time: 20:00
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 4  *****************
  * User: Vo           Date: 11.02.99   Time: 15:43
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 3  *****************
  * User: Vo           Date: 11.02.99   Time: 12:54
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 2  *****************
  * User: Vo           Date: 7.01.99    Time: 12:38
  * Updated in $/GSM/DEV/MS/SRC/MFW
- * 
+ *
  * *****************  Version 1  *****************
  * User: Vo           Date: 30.12.98   Time: 11:49
  * Created in $/GSM/DEV/MS/SRC/MFW
@@ -208,10 +208,10 @@
 
 #ifdef MMI_LITE
 /*SPR 2350, concat messagse of up to 500 chars should be allowed*/
-#define MAX_MSG_LEN_LITE		(MAX_MSG_LEN_SGL*3)				
+#define MAX_MSG_LEN_LITE		(MAX_MSG_LEN_SGL*3)
 #define MAX_MSG_LEN          MAX_MSG_LEN_LITE
 #else
-#define MAX_MSG_LEN          1601 //Max size for a SMS	
+#define MAX_MSG_LEN          1601 //Max size for a SMS
 #endif
 
 #define MAX_MSG_LEN_ARRAY   (MAX_MSG_LEN+1) //Array size for SMS
@@ -219,7 +219,7 @@
 
 /*MC, chinese message lengths*/
 #define MAX_MSG_LEN_SGL_CHI	   140 //Max message length for single chinese message
-#define MAX_MSG_LEN_CHI				(MAX_MSG_LEN_SGL_CHI*10)			 
+#define MAX_MSG_LEN_CHI				(MAX_MSG_LEN_SGL_CHI*10)
 
 
 /*
@@ -271,14 +271,14 @@
 #define SMS_REQUESTED_SRR     1
 
 /* SMS management functional return codes */
-typedef enum              
+typedef enum
 {
   MFW_SMS_FAIL = -1,         /* execution of command failed    */
   MFW_SMS_OK                 /* execution of command completed */
 } T_MFW_SMS_RETURN;
 
 /* definition for message type */
-typedef enum              
+typedef enum
 {
   MFW_NO_MESSAGE,
   MFW_SMS_MESSAGE,           /* SMS message            */
@@ -286,7 +286,7 @@
 } T_MFW_SMS_TYPE;
 
 /* definition for submit message type */
-typedef enum              
+typedef enum
 {
   MFW_SMS_SUBMIT,
   MFW_SMS_REPLY,
@@ -331,7 +331,7 @@
 	MFW_SMS_CONC_WHOLE
 }
 T_MFW_SMS_CONC_STAT	;
-	
+
 typedef struct
 {
   UBYTE year     [MAX_SCTP_DIGITS];
@@ -344,7 +344,7 @@
 } T_MFW_SMS_SCTP;
 
 /* SMS command */
-typedef enum              
+typedef enum
 {
   SMS_ENQ_PREV_SMS,         /* Starts an enquiry to previously sended short message */
   SMS_CAN_STAT_REQ,         /* Cancels status report request                        */
@@ -354,15 +354,15 @@
 
 typedef enum
 {
-  MT_IND_IDX,               /* message will be stored to memory and index will 
+  MT_IND_IDX,               /* message will be stored to memory and index will
                                 be indicated (E_SMS_MT_RECEIVED) */
-  MT_IND_NO_IDX,            /* message will be stored to memory and index will 
+  MT_IND_NO_IDX,            /* message will be stored to memory and index will
                                 not be indicated */
   MT_IND_MSG,               /* message will be indicated to mmi (E_SMS_MT)
                                 but not stored to memory */
-  MT_CB_IDX,                /* CB message will be stored to memory and index will 
+  MT_CB_IDX,                /* CB message will be stored to memory and index will
                                 be indicated (E_SMS_CB_RECEIVED) */
-  MT_CB_NO_IDX,             /* CB message will be stored to memory and index will 
+  MT_CB_NO_IDX,             /* CB message will be stored to memory and index will
                                 not be indicated */
    MT_CB_MSG,                /* CB message will be indicated to mmi (E_SMS_CB)
                                 but not stored to memory */
@@ -406,7 +406,7 @@
 } T_MFW_SMS_MEM_INFO;
 
 /* SMS parameters */
-typedef struct	
+typedef struct
 {
   CHAR              sc_addr[MAX_LEN]; /* service centre address   */
   SHORT	            prot_id;	      /* protocol identifier      */
@@ -512,7 +512,7 @@
 {
   SHORT           msg_id;              /* message type           */
   UBYTE           msg_ref;             /* message Reference      */
-  T_MFW_SMS_ADDR  addr;                /* called party address   */  
+  T_MFW_SMS_ADDR  addr;                /* called party address   */
   UBYTE           status;              /* status of sms message  */
   T_MFW_SMS_SCTP  rctp;                /* received sms timestamp */
 } T_MFW_SMS_STATUS;
@@ -521,7 +521,7 @@
 //Structure elements (T_MFW_SMS_MSG)are realigned to avoid the structure padding
 typedef struct
 {
-	T_MFW_SMS_STAT    stat;         
+	T_MFW_SMS_STAT    stat;
 	T_MFW_SMS_STAT    msg_type;      /* voice mail status */
 	T_MFW_SMS_CONC_STAT    concat_status;/*2260*/
 	T_MFW_SMS_ADDR    addr;
@@ -545,7 +545,7 @@
 // PATCH JPS 29.09 END
 
 /*
- * SMS event Parameter 
+ * SMS event Parameter
  */
 typedef union
 {
@@ -559,14 +559,14 @@
   UBYTE               cmd_ind;
 } T_MFW_SMS_PARA;
 
-/*a0393213 OMAPS00109953 - SMS indexes are retrieved during bootup. 
+/*a0393213 OMAPS00109953 - SMS indexes are retrieved during bootup.
    This enum shall be used to maintain the state machine during that process*/
 typedef enum
 {
    MFW_SMS_INDEX_NOT_RETRIEVED=0,
    MFW_SMS_SIM_INDEX_RETRIEVING,
    MFW_SMS_FFS_INDEX_RETRIEVING,
-   MFW_SMS_INDEX_RETRIEVED   
+   MFW_SMS_INDEX_RETRIEVED
 } T_MFW_SMS_INDEX_RETRIEVE_STATE;
 
 /*a0393213 OMAPS00109953 - this function updates the SMS memory details of SIM/ME*/
@@ -574,23 +574,23 @@
 
 EXTERN void      sms_init                    (void);
 EXTERN void      sms_exit                    (void);
-EXTERN T_MFW_HND sms_create                  (T_MFW_HND   hWin, 
-                                              T_MFW_EVENT event, 
+EXTERN T_MFW_HND sms_create                  (T_MFW_HND   hWin,
+                                              T_MFW_EVENT event,
                                               T_MFW_CB cbfunc);
 EXTERN T_MFW_RES sms_delete                  (T_MFW_HND h);
 
 #ifdef NO_ASCIIZ
 
 #if defined (FF_WAP) && defined (FF_GPF_TCPIP)
-EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type, 
+EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type,
                                               CHAR *dest_addr,
-                                              UBYTE *msg, 
+                                              UBYTE *msg,
                                               USHORT msg_len,
                                               CHAR *sca);
 //Dec 14, 2005 REF: MMI-FIX-OMAPS00058684 x0035544
 #ifdef FF_HOMEZONE
 //Jun 14, 2005 REF: MMI-FIX-30439 x0018858
-EXTERN void      sms_homezoneCBToggle(U8 Activate); 
+EXTERN void      sms_homezoneCBToggle(U8 Activate);
 #endif
 EXTERN T_MFW sms_submit_wap_sms(T_MFW_SMS_MO_TYPE type,
                  CHAR *dest_addr,
@@ -601,19 +601,19 @@
                  T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */
 #else
 
-EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type, 
-                                              CHAR *dest_addr, 
-                                              UBYTE *msg, 
+EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type,
+                                              CHAR *dest_addr,
+                                              UBYTE *msg,
                                               USHORT msg_len,
                                               CHAR *sca);
 #endif
 EXTERN T_MFW     sms_store                   (T_MFW_SMS_MO_TYPE type,
-											                        CHAR *addr, 
-                                              UBYTE *msg, 
+											                        CHAR *addr,
+                                              UBYTE *msg,
                                               USHORT msg_len,
                                               CHAR *sca);
-EXTERN T_MFW     sms_change                  (CHAR *addr, 
-                                              UBYTE *msg, 
+EXTERN T_MFW     sms_change                  (CHAR *addr,
+                                              UBYTE *msg,
                                               USHORT msg_len,
                                               UBYTE index,
                                               T_MFW_SMS_MEM sms_memory	/*a0393213 OMAPS00109953 - memory added as parameter*/
@@ -622,7 +622,7 @@
 
 #if defined (FF_WAP) && defined (FF_GPF_TCPIP)
 
-EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type, 
+EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type,
                                               CHAR *dest_addr,
                  T_MFW_PHB_TON addr_type,
                                               UBYTE *msg, USHORT msg_len,
@@ -636,58 +636,58 @@
                  CHAR *sca,
                  T_MFW_PHB_TON sc_type); /* SPR#2086 - SH - Added */
 #else
-EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type, 
-                                              CHAR *dest_addr, 
+EXTERN T_MFW     sms_submit                  (T_MFW_SMS_MO_TYPE type,
+                                              CHAR *dest_addr,
                                               UBYTE *msg, USHORT msg_len,
                                               CHAR *sca); // sbh added length, see function itself
 #endif
 
 EXTERN T_MFW     sms_store                   (T_MFW_SMS_MO_TYPE type,
-											                        CHAR *addr, 
+											                        CHAR *addr,
                                               UBYTE *msg, USHORT msg_len,
 											  CHAR *sca);	// sbh added length, see function itself
-EXTERN T_MFW     sms_change                  (CHAR *addr, 
+EXTERN T_MFW     sms_change                  (CHAR *addr,
                                               UBYTE *msg, USHORT msg_len,
                                               UBYTE index,
                                               T_MFW_SMS_MEM sms_memory	/*a0393213 OMAPS00109953 - memory added as parameter*/
                                               ); // sbh added length, see function itself
 #endif
-EXTERN T_MFW     sms_stored_submit           (CHAR *dest_addr, 
+EXTERN T_MFW     sms_stored_submit           (CHAR *dest_addr,
                                               UBYTE index);
 /*SPR 2260, added concatenated status parameter*/
 EXTERN T_MFW sms_store_new_msg_info(UBYTE index, T_ACI_CMGL_SM* sm, UBYTE update_mem, T_CONC_ASSEMBLY_RETURN conc_stat
 									   	,T_SMS_TYPE received_sms_type, T_MFW_SMS_MEM mem);   /*a0393213 OMAPS00109953 - memory added as parameter*/
-									   	
+
 
 EXTERN T_MFW sms_send_new_msg_ind(T_ACI_CMGL_SM* sm,UBYTE index, UBYTE mem, UBYTE received_sms_type, UBYTE concatenated_status);
 
 EXTERN T_MFW     sms_set_pref_memory         (UBYTE mem);
 EXTERN T_MFW     sms_read                    (UBYTE type, UBYTE index
 											,T_MFW_SMS_MEM mem);  /*a0393213 OMAPS00109953 - memory added as parameter*/
-											
-EXTERN T_MFW     sms_mt_store                (T_MFW_SMS_MT *mt_msg, 
+
+EXTERN T_MFW     sms_mt_store                (T_MFW_SMS_MT *mt_msg,
                                               T_MFW_SMS_STAT stat);
 EXTERN T_MFW     sms_msg_delete      (UBYTE index
 										, T_MFW_SMS_MEM sms_memory); /*a0393213 OMAPS00109953 - memory added as parameter*/
-											
+
 EXTERN T_MFW     sms_get_memset              (void);
-EXTERN T_MFW     sms_command                 (CHAR *dest_addr, 
-                                              UBYTE command, 
+EXTERN T_MFW     sms_command                 (CHAR *dest_addr,
+                                              UBYTE command,
                                               UBYTE msg_ref);
 EXTERN T_MFW     sms_parameter               (T_MFW_SMS_INFO *sms_info, BOOL fGet);
 EXTERN T_MFW	  sms_set_SrvCntr_number	  (T_MFW_SMS_INFO *sms_info);
 EXTERN T_MFW	  sms_set_dcs_number		(T_MFW_SMS_INFO *sms_info);//GW Added
 EXTERN T_MFW	  sms_set_val_period		(T_MFW_SMS_INFO *sms_info);//GW Added
-EXTERN T_MFW     sms_set_cell_broadcast_info (UBYTE mode, 
+EXTERN T_MFW     sms_set_cell_broadcast_info (UBYTE mode,
                                               T_MFW_SMS_CB_INFO *sms_cb_info);
 EXTERN T_MFW     sms_get_cell_broadcast_info (T_MFW_SMS_CB_INFO *sms_cb_info);
 EXTERN void      sms_set_mt_ind              (T_MFW_SMS_MT_IND sms_ind);
 EXTERN SHORT     sms_message_count           (T_MFW_SMS_STAT stat);
-EXTERN SHORT     sms_message_list            (T_MFW_SMS_STAT stat, 
+EXTERN SHORT     sms_message_list            (T_MFW_SMS_STAT stat,
                                               T_MFW_SMS_MSG * msg_list,
                                               int max_entries);
 // PATCH JPS 29.09: add function equivalent of sms_message_list bu more economic
-EXTERN SHORT     sms_index_list            (T_MFW_SMS_STAT stat, 
+EXTERN SHORT     sms_index_list            (T_MFW_SMS_STAT stat,
                                               T_MFW_SMS_IDX * msg_list,
                                               int max_entries);
 // PATCH JPS 29.09 END