comparison src/ui3/bmi/mmiTimeDate.h @ 421:6a4d9f47793e

src/ui3/bmi: file renames to make the case consistent
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:28:53 +0000
parents src/ui3/bmi/MmiTimeDate.h@e8ddbb0837ed
children
comparison
equal deleted inserted replaced
420:e8ddbb0837ed 421:6a4d9f47793e
1 #ifndef _DEF_MMI_TIMEDATE_H_
2 #define _DEF_MMI_TIMEDATE_H_
3
4 /*******************************************************************************
5
6 CONDAT (UK)
7
8 ********************************************************************************
9
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.
12
13 ********************************************************************************
14
15 $Project name: Basic MMI
16 $Project code: BMI (6349)
17 $Module: MMI
18 $File: MmiTimeDate.h
19 $Revision: 1.0
20
21 $Author: Condat(UK)
22 $Date: 25/10/00
23
24 ********************************************************************************
25
26 Description:
27
28 This provides the root mofule for the basic MMI
29
30 ********************************************************************************
31 $History: MmiTimeDate.h
32
33 Jan 06,2004 REF: CRR 27859 xkundadu
34 Description: Clock: Alarm does not go off even if timer times out.
35 Solution: If the mfw_td_set_alarm() function fails, display the
36 'Write Failed" message.
37 Added 'TIDA_SAVEFAILED' enum to display 'Write Failed' for set alarm fail case.
38
39
40
41 $End
42
43 *******************************************************************************/
44 #include "mfw_ffs.h"
45
46
47 #define ALLOC_MEMORY mfwAlloc
48 #define FREE_MEMORY mfwFree
49
50 /* SPR#1428 - SH - New Editor changes
51 * New time/date data */
52
53 #ifdef NEW_EDITOR
54
55 typedef enum
56 {
57 TIDA_INIT, /* Initialise */
58 TIDA_DATE, /* Enter date */
59 TIDA_TIME, /* Enter time */
60 TIDA_ALARMDATE, /* Enter alarm date */
61 TIDA_ALARMTIME, /* Enter alarm time */
62 TIDA_SAVE, /* Save data to flash & display "Saved" dialog */
63
64 // Jan 06,2004 REF: CRR 27859 xkundadu
65 // Description: Clock: Alarm does not go off even if timer times out.
66 // Solution: If the mfw_td_set_alarm() function fails, display the
67 // 'Write Failed" message.
68
69 // Added 'TIDA_SAVEFAILED' enum to display 'Write Failed' for set alarm fail case.
70 TIDA_SAVEFAILED //
71 }E_TIMER_EVENTS;
72
73 T_MFW_HND tida_create(T_MFW_HND parent_win);
74 T_MFW_HND tida_destroy(T_MFW_HND win);
75
76 #else /* NEW_EDITOR */
77
78 /* OLD VERSION */
79
80 /* REASONS */
81 typedef enum
82 {
83 DATE_SHOW = TimeDateDummy,
84 TIME_SHOW,
85 DATE_ENTRY,
86 TIME_ENTRY,
87 ENTRY_OK,
88 SAVED,
89 TIDA_ABORT,
90 TIDA_CLEAR,
91 TIDA_TO_IDLE
92 }
93 DAT_TIME_CASE;
94 void time_date_init();
95 void tida_info_cb(T_MFW_HND win, USHORT identifier, UBYTE reasons);
96 void date_time_edt_destroy (T_MFW_HND own_window);
97 T_MFW_HND date_time_edt_create(T_MFW_HND parent_window);
98 void date_time_destroy (T_MFW_HND own_window);
99 T_MFW_HND date_time_create (T_MFW_HND parent_window);
100 void time_date_delete();
101
102 #endif /* NEW_EDITOR */
103
104
105 /* Functions below are common to old and new versions */
106
107 /* PROTOTYPES */
108 //menu handler functions
109 int alarmTimeDate(MfwMnu* m, MfwMnuItem* i);
110 int settingsTimeDate(MfwMnu* m, MfwMnuItem* i);
111 int clear_alarm(MfwMnu* m, MfwMnuItem* i);
112 int twelve_hour_clock(MfwMnu* m, MfwMnuItem* i);
113 int twentyfour_hour_clock(MfwMnu* m, MfwMnuItem* i);
114 void alarm_check(void); // RAVI
115
116 #endif
117