view src/aci2/bmi/mmiSmsSend.h @ 600:8f50b202e81f

board preprocessor conditionals: prep for more FC hw in the future This change eliminates the CONFIG_TARGET_FCDEV3B preprocessor symbol and all preprocessor conditionals throughout the code base that tested for it, replacing them with CONFIG_TARGET_FCFAM or CONFIG_TARGET_FCMODEM. These new symbols are specified as follows: CONFIG_TARGET_FCFAM is intended to cover all hardware designs created by Mother Mychaela under the FreeCalypso trademark. This family will include modem products (repackagings of the FCDEV3B, possibly with RFFE or even RF transceiver changes), and also my desired FreeCalypso handset product. CONFIG_TARGET_FCMODEM is intended to cover all FreeCalypso modem products (which will be firmware-compatible with the FCDEV3B if they use TI Rita transceiver, or will require a different fw build if we switch to one of Silabs Aero transceivers), but not the handset product. Right now this CONFIG_TARGET_FCMODEM preprocessor symbol is used to conditionalize everything dealing with MCSI. At the present moment the future of FC hardware evolution is still unknown: it is not known whether we will ever have any beyond-FCDEV3B hardware at all (contingent on uncertain funding), and if we do produce further FC hardware designs, it is not known whether they will retain the same FIC modem core (triband), if we are going to have a quadband design that still retains the classic Rita transceiver, or if we are going to switch to Silabs Aero II or some other transceiver. If we produce a quadband modem that still uses Rita, it will run exactly the same fw as the FCDEV3B thanks to the way we define TSPACT signals for the RF_FAM=12 && CONFIG_TARGET_FCFAM combination, and the current fcdev3b build target will be renamed to fcmodem. OTOH, if that putative quadband modem will be Aero-based, then it will require a different fw build target, the fcdev3b target will stay as it is, and the two targets will both define CONFIG_TARGET_FCFAM and CONFIG_TARGET_FCMODEM, but will have different RF_FAM numbers. But no matter which way we are going to evolve, it is not right to have conditionals on CONFIG_TARGET_FCDEV3B in places like ACI, and the present change clears the way for future evolution.
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 01 Apr 2019 01:05:24 +0000
parents 3c2acfa1a72f
children
line wrap: on
line source

#ifndef _DEF_MMI_SMSSEND_H_
#define _DEF_MMI_SMSSEND_H_

#undef GLOBAL_EXT
#if defined (MMI_SMSREAD_C)
#define GLOBAL_EXT
#else
#define GLOBAL_EXT extern
#endif
/*******************************************************************************

          CONDAT (UK)

********************************************************************************

 This software product is the property of Condat (UK) Ltd and may not be
 disclosed to any third party without the express permission of the owner.

********************************************************************************

 $Project name: Basic MMI
 $Project code: BMI (6349)
 $Module:   SMS
 $File:       mmismssend.h
 $Revision:   1.0

 $Author:   Condat(UK)
 $Date:       25/10/00

********************************************************************************

 Description:

    header of template for MMI yyy dynamic event handling

********************************************************************************
 $History: mmismssend.h

  Feb 02, 2005   REF: CRR 28479   xnkulkar
  Bug: While saving a SMS, if the user presses LSK while the 'Saved' dialog is displayed, the 'Saved' 
  dialog doesn't get dismissed.
  Solution: Only RSK and Hangup keys dismiss the 'Saved' info screen and all other key presses 
  are ignored. 
  
  25/10/00      Original Condat(UK) BMI version.

 $End

*******************************************************************************/

/*******************************************************************************

                                Include Files

*******************************************************************************/

#include "mfw_mfw.h"
/* SPR#1428 - SH - New Editor changes */
#ifndef NEW_EDITOR
#include "MmiEditor.h" //GW Added for T_EDITOR structure
#endif


/*******************************************************************************

                        Shared Structure Definitions

*******************************************************************************/

typedef struct
{
  /* administrative data */

  T_MMI_CONTROL   mmi_control;
  T_MFW_HND       win;
  T_MFW_HND       parent;
  T_MFW_HND       child_dialog;/* to keep the window of dialog          */
  T_MFW_HND       sms_handler;
  SHORT           id;
  T_SmsUserData edt_data; /* pointer of text and number */
  T_MFW_HND   text_editor;
  T_MFW_HND   number_editor;
  T_MFW_HND   sc_number_editor;
  T_MFW_HND   options_win;
} T_SEND;

typedef enum
{
  /* Logical frames */
  SEND_ID,
  SAVE_ID,
  /* Extern windows */
  PHBK_ID,
  /* Editor windows */
  SMSSEND_ID_TEXTEDIT,
  SMSSEND_ID_NBEDIT,
  SMSSEND_ID_CENTREEDIT,
  SMSSEND_ID_CENTREEDIT_CHANGE,
  /* Dialog windows */
  SMSSEND_ID_WAITING,
  SMSSEND_ID_WAIT_SEND,
  SMSSEND_ID_SENT,
  SMSSEND_ID_NOT_SENT,
  SMSSEND_ID_WAIT_SAVE,
  SMSSEND_ID_SAVED,
  SMSSEND_ID_NOT_SAVED,
  SMSSEND_ID_LIST_FULL,
  SMSSEND_ID_SAVE_NOT_READY, //PATCH TB
  SMSSEND_ID_SC_NOT_READY, //PATCH TB
  SMSSEND_ID_NOT_ALLOWED

} sms_send_id;

/*******************************************************************************

                                Function Prototypes

*******************************************************************************/

GLOBAL_EXT T_MFW_HND SmsSend_SEND_start(T_MFW_HND parent_window, T_SmsUserData *UserData);
GLOBAL_EXT T_MFW_HND SmsSend_SAVE_start(T_MFW_HND parent_window, T_SmsUserData *UserData);
GLOBAL_EXT T_MFW_HND V_start(T_MFW_HND parent_window, MfwMnuAttr *menuAttr);
GLOBAL_EXT int M_callVoice(MfwMnu* m, MfwMnuItem* i);
//	Feb 02, 2005   REF: CRR 28479   xnkulkar
//	Prototype  of function mmi_dialog_information_screen_save_sms()
T_MFW_HND mmi_dialog_information_screen_save_sms(T_MFW_HND parent_win, int TxtId, char* text, T_VOID_FUNC call_back, USHORT identifier);
int SmsSend_R_OPTExeCentreEdit(MfwMnu* m, MfwMnuItem* i);

// Used im mmismsread to compare with SMS center number
GLOBAL_EXT UBYTE SmsSend_get_config_data(T_MFW_SMS_INFO *config_data);
GLOBAL_EXT void SmsSend_convert_to_inter(T_MFW_SMS_ADDR *source_number, char *dest_number);
UBYTE SmsSend_set_SrvCntr_number (T_MFW_SMS_INFO *config_data);
/* SPR#1428 - SH - New Editor: no longer required */
#ifndef NEW_EDITOR
//GW 29/11/01 - Added 
void		SmsSend_loadEditDefault(T_EDITOR_DATA * edit_info);
#endif /* NEW_EDITOR */
#endif /* _DEF_MMI_SMSSEND_H_ */