comparison src/ui/bmi/mmiBookUtils.h @ 100:609eb8031c17

mmiBook*.h: bogotab fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Nov 2020 22:53:20 +0000
parents c0052fe355d3
children 62480f597962
comparison
equal deleted inserted replaced
99:8142e6773a49 100:609eb8031c17
1 #ifndef _MMIBOOKUTILS_H_ 1 #ifndef _MMIBOOKUTILS_H_
2 #define _MMIBO0KUTILS_H_ 1 2 #define _MMIBO0KUTILS_H_ 1
3 3
4 /******************************************************************************* 4 /*******************************************************************************
5 5
6 CONDAT (UK) 6 CONDAT (UK)
7 7
8 ******************************************************************************** 8 ********************************************************************************
9 9
10 This software product is the property of Condat (UK) Ltd and may not be 10 This software product is the property of Condat (UK) Ltd and may not be
11 disclosed to any third party without the express permission of the owner. 11 disclosed to any third party without the express permission of the owner.
12 12
13 ******************************************************************************** 13 ********************************************************************************
14 14
15 $Project name: Basic MMI 15 $Project name: Basic MMI
16 $Project code: BMI (6349) 16 $Project code: BMI (6349)
17 $Module: PhoneBook 17 $Module: PhoneBook
18 $File: MmiBookUtils.h 18 $File: MmiBookUtils.h
19 $Revision: 1.0 19 $Revision: 1.0
20 20
21 $Author: Condat(UK) 21 $Author: Condat(UK)
22 $Date: 25/10/00 22 $Date: 25/10/00
23 23
24 ******************************************************************************** 24 ********************************************************************************
25 25
26 Description: 26 Description:
27 27
30 30
31 ******************************************************************************** 31 ********************************************************************************
32 32
33 $History: MmiBookUtils.h 33 $History: MmiBookUtils.h
34 34
35 25/10/00 Original Condat(UK) BMI version. 35 25/10/00 Original Condat(UK) BMI version.
36 36
37 $End 37 $End
38 38
39 *******************************************************************************/ 39 *******************************************************************************/
40 40
125 parameters 125 parameters
126 */ 126 */
127 // GW - Changed colour from 8 bits (foreground) to 2x32bits fgd and bgd 127 // GW - Changed colour from 8 bits (foreground) to 2x32bits fgd and bgd
128 void bookSetEditAttributes( 128 void bookSetEditAttributes(
129 int editZone, 129 int editZone,
130 U32 colindex, 130 U32 colindex,
131 U8 font, U8 mode, U8 *controls, 131 U8 font, U8 mode, U8 *controls,
132 char *text, U16 size, 132 char *text, U16 size,
133 MfwEdtAttr* attr); 133 MfwEdtAttr* attr);
134 #endif 134 #endif
135 135
136 /* Memory allocation and freeing functions 136 /* Memory allocation and freeing functions
137 137
138 These routines provided guarded access to the malloc and free 138 These routines provided guarded access to the malloc and free
147 helps protect against reusing the pointer after the memory 147 helps protect against reusing the pointer after the memory
148 has been deallocated. 148 has been deallocated.
149 149
150 Sample usage: 150 Sample usage:
151 151
152 tStructure *ptr; 152 tStructure *ptr;
153 153
154 if ( ( ptr = (tStructure *) bookMemAlloc( sizeof(tStructure) ) ) != NULL ) 154 if ( ( ptr = (tStructure *) bookMemAlloc( sizeof(tStructure) ) ) != NULL )
155 { 155 {
156 // use the allocated memory 156 // use the allocated memory
157 // 157 //
158 ... 158 ...
159 159
160 // free the memory 160 // free the memory
161 // 161 //
162 bookMemFree( &ptr ); 162 bookMemFree( &ptr );
163 } 163 }
164 */ 164 */
165 void *bookMemAlloc( long int NumBytes ); 165 void *bookMemAlloc( long int NumBytes );
166 void bookMemFree( void **Pointer ); 166 void bookMemFree( void **Pointer );
167 167
168 168
181 void storeInFile( T_phbk *phbk ); 181 void storeInFile( T_phbk *phbk );
182 182
183 /* SPR#1112 - SH - Internal phonebook use */ 183 /* SPR#1112 - SH - Internal phonebook use */
184 #ifdef INT_PHONEBOOK 184 #ifdef INT_PHONEBOOK
185 void bookChangePB(T_MFW_HND win, UBYTE identifier, UBYTE reason); 185 void bookChangePB(T_MFW_HND win, UBYTE identifier, UBYTE reason);
186 UBYTE bookCopy( T_MFW_PHB_ENTRY *entry, T_MFW_PHB_STATUS *destStatus, T_MFW_PHB_STATUS *srcStatus, UBYTE move); 186 UBYTE bookCopy( T_MFW_PHB_ENTRY *entry, T_MFW_PHB_STATUS *destStatus, T_MFW_PHB_STATUS *srcStatus, UBYTE move);
187 void bookCopySingle(T_MFW_HND win, UBYTE identifier, UBYTE reason); 187 void bookCopySingle(T_MFW_HND win, UBYTE identifier, UBYTE reason);
188 void bookCopyMultiple(T_MFW_HND win, UBYTE move, UBYTE reason); 188 void bookCopyMultiple(T_MFW_HND win, UBYTE move, UBYTE reason);
189 #endif 189 #endif
190 190
191 UBYTE bookGetCurrentStatus( T_MFW_PHB_STATUS *currentStatus ); 191 UBYTE bookGetCurrentStatus( T_MFW_PHB_STATUS *currentStatus );