comparison g23m/condat/ms/src/bmi/mmiSmsMenu.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 #ifndef _DEF_MMI_SMSMENU_H_
2 #define _DEF_MMI_SMSMENU_H_
3
4
5 /*******************************************************************************
6
7 CONDAT (UK)
8
9 ********************************************************************************
10
11 This software product is the property of Condat (UK) Ltd and may not be
12 disclosed to any third party without the express permission of the owner.
13
14 ********************************************************************************
15
16 $Project name: Basic MMI
17 $Project code: BMI (6349)
18 $Module: SMS
19 $File: mmiSmsMenu.h
20 $Revision: 1.0
21
22 $Author: Condat(UK)
23 $Date: 25/10/00
24
25 ********************************************************************************
26
27 Description:
28
29 header of template for MMI SMS menu dynamic event handling
30
31
32
33 ********************************************************************************
34
35 $History: mmiSmsMenu.h
36
37 25/10/00 Original Condat(UK) BMI version.
38
39 $End
40
41 *******************************************************************************/
42 #undef GLOBAL_EXT
43 #if defined (MMI_SMSMENU_C)
44 #define GLOBAL_EXT
45 #else
46 #define GLOBAL_EXT extern
47 #endif
48
49
50 #include "mfw_mfw.h"
51
52
53
54
55 #define TIMER_EXIT 0x0BB8 /* Default SMS timer period - 3 secs. */
56 #define SHORT_SECS 0x01F4 /* Information dialogue display times. */
57 #define THREE_SECS 0x0BB8 /* 3000 milliseconds. */
58 #define FIVE_SECS 0x1388 /* 5000 milliseconds. */
59 #define TEN_SECS 0x2710 /* 10000 milliseconds. */
60 #define TWO_MIN 0x1D4C0 /* 2 min */
61 #define FOREVER 0xFFFF /* Infinite time period. */
62
63
64 /* This structure must be used by the different modules to pass parameters for SMS sending */
65 typedef struct
66 {
67 UBYTE TextBuffer[MAX_MSG_LEN_ARRAY];
68 UBYTE NumberBuffer[NUMBER_LENGTH];
69 UBYTE CentreBuffer[NUMBER_LENGTH];
70 /* FTA 34.2.8
71 we have to know from where we are calling the
72 sms sending part. We should use the Service
73 CenterNumber from the Caller in the case of REPLYING
74 */
75 UBYTE called_from_reply_item;
76 } T_SmsUserData;
77
78 // Entry points for the different SMS blocs
79 GLOBAL_EXT int M_exeSendNew(MfwMnu* m, MfwMnuItem* i);
80 GLOBAL_EXT int M_exeRead(MfwMnu* m, MfwMnuItem* i);
81 GLOBAL_EXT int M_exeDelAll(MfwMnu* m, MfwMnuItem* i);
82 GLOBAL_EXT int M_exeSendSaved(MfwMnu* m, MfwMnuItem* i);
83 GLOBAL_EXT int M_exeVoice(MfwMnu* m, MfwMnuItem* i);
84
85 /*SPR 1920 removed obsolete function*/
86
87 // Dialog window callback function
88 GLOBAL_EXT void SmsMenu_loadDialogDefault(T_DISPLAY_DATA * DisplayInfo);
89
90 int voice_mail_init (void);
91
92 /***************************************************
93 **** ****
94 **** DUMMY DECLARATIONS ****
95 **** ****
96 ***************************************************/
97
98 //Dummy defines
99 #define TxtNotReady 1
100 #define TxtNotDeleted 2
101 #define TxtAllDeleted 3
102 #define TxtEnterVoiceNumber 4
103 //Dummy functions (stubs)
104 void SmsRead(void); // RAVI
105 void call_voice(void); // RAVI
106 void sms_send(T_SmsUserData *);
107 int sms_get_ready_state(void); // RAVI
108
109 int newSmsMenu_Start(MfwMnu* m, MfwMnuItem* i);
110 int ExeSms_sendM_SND(MfwMnu *, MfwMnuItem *);
111 int ExeM_SND(MfwMnu *, MfwMnuItem *);
112
113 /* SPR#1428 - SH - New Editor: These functions moved here from MmiEditor.c */
114 #ifdef NEW_EDITOR
115 #ifdef EASY_TEXT_ENABLED
116 int showeZiTextIcon(MfwMnu* m, MfwMnuItem* i);
117 int Easy_Activate(MfwMnu* m, MfwMnuItem* i);
118 int Easy_DeActivate(MfwMnu* m, MfwMnuItem* i);
119 #endif /* EASY_TEXT_ENABLED */
120
121 //API - 01/10/02 - Concatenation Switch Function Definition
122 int Concatenate_DeActivate(MfwMnu* m, MfwMnuItem* i);
123 int Concatenate_Activate(MfwMnu* m, MfwMnuItem* i);
124 int Concatenate_Status(MfwMnu* m, MfwMnuItem* i);
125
126 #endif /* NEW_EDITOR */
127
128 #endif /* _DEF_MMI_SMSMENU_H_ */