comparison src/ui3/mfw/mfw_lng.h @ 420:e8ddbb0837ed

src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:09:00 +0000
parents
children
comparison
equal deleted inserted replaced
419:59143cd42ec7 420:e8ddbb0837ed
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_lng.h $|
4 | $Author:: Kk $ CONDAT GmbH $Revision:: 2 $|
5 | CREATED: 27.08.99 $Modtime:: 10.03.00 11:38 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_LNG
10
11 PURPOSE : Language Handler types & constants
12
13 EXPORT :
14
15 TO DO :
16
17 $History:: mfw_lng.h $
18 *
19 * ***************** Version 2 *****************
20 * User: Kk Date: 14.03.00 Time: 15:48
21 * Updated in $/GSM/Condat/MS/SRC/MFW
22 * added handling of various texts
23 *
24 * ***************** Version 1 *****************
25 * User: Le Date: 4.01.00 Time: 13:09
26 * Created in $/GSM/Condat/MS/SRC/MFW
27 *
28 * ***************** Version 2 *****************
29 * User: Es Date: 22.11.99 Time: 10:29
30 * Updated in $/GSM/Condat/SND-MMI/MFW
31 *
32 * ***************** Version 1 *****************
33 * User: Es Date: 18.11.99 Time: 16:35
34 * Created in $/GSM/Condat/SND-MMI/MFW
35 * Initial
36
37 Nov 07, 2006 ER:OMAPS00070661 R.Prabakar(a0393213)
38 R99 network compliancy : Implemented Language Notification and Provide Local Information (Language setting)
39 SAT proactive commands and Language Selection SAT event
40 */
41
42 #ifndef _DEF_MFW_LNG_H_
43 #define _DEF_MFW_LNG_H_
44
45 #include "mfw_mfw.h"
46 #ifdef FF_MMI_R99_SAT_LANG
47 /*OMAPS00070661 (SAT-lang notification, local info and lang setting) a0393213(R.Prabakar) macros related to language
48 moved from MmiBlkLangDB.h*/
49
50 //#define LANG_CHANGE_TEST
51
52 /*MC SPR 1150, moved language macros from MmiResources.h*/
53 /*There should be language definitions for each number from 1 to NO_OF_LANGUAGES*/
54 #define ENGLISH_LANGUAGE 1
55 #ifdef CHINESE_MMI
56 #define CHINESE_LANGUAGE 2
57 #define GERMAN_LANGUAGE 3
58 #else
59 #define GERMAN_LANGUAGE 2
60 #define CHINESE_LANGUAGE 3
61 #endif
62
63
64 #ifdef LANG_CHANGE_TEST /*MC test code*/
65 #define MARTIAN_LANGUAGE 2
66 #define CHINESE_LANGUAGE 3
67 #endif
68
69 /*MC, SPR 1150, allows easier addition of languages, just increment macro*/
70 #ifndef CHINESE_MMI
71 #define NO_OF_LANGUAGES 2
72 #else
73 #define NO_OF_LANGUAGES 2
74 #endif
75
76 #endif /*FF_MMI_R99_SAT_LANG*/
77
78 typedef struct LngInfoTag /* Language information */
79 {
80 int language; /* selected language */
81 unsigned int nPrompts; /* number of prompts & text */
82 const char* const* const* prompts; /* prompts and menu texts */
83 } LngInfo;
84
85 typedef struct MfwLngTag /* LANGUAGE CONTROL BLOCK */
86 {
87 MfwEvt map; /* selection of events */
88 MfwEvt evt; /* current event */
89 MfwCb handler; /* event handler */
90 LngInfo *lng; /* language info block */
91 } MfwLng;
92
93 /* EVENTS */
94
95 /* PROTOTYPES */
96 MfwRes lngInit (void);
97 MfwRes lngExit (void);
98 MfwHnd lngCreate (MfwHnd w, MfwEvt e, LngInfo *lng, MfwCb f);
99 MfwRes lngDelete (MfwHnd h);
100 char * lngText (MfwHnd h, unsigned int t);
101 void lngSignal (void/*char make, char key*/);
102
103 #endif
104