-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmre_io.h
278 lines (255 loc) · 8.58 KB
/
mre_io.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
/*****************************************************************************
*
* Filename:
* ---------
* mre_io.h
*
* Project:
* --------
* UstadMobile
*
* Description:
* ------------
* IO (Filesystem, etc)
*
* Author:
* -------
* Varuna Singh
*
****************************************************************************/
/*****************************************************************************
* FUNCTION
* mre_start_io_menu
* DESCRIPTION
* This function displays menu list on the screen for selection for All tests
* PARAMETERS
* none
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_start_io_menu(void);
/*****************************************************************************
* FUNCTION
* mre_set_fileiocontext
* DESCRIPTION
* This function sets flag for context of fileio test
* PARAMETERS
* val [IN] it is true or false
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_set_fileiocontext(VMINT val);
/*****************************************************************************
* FUNCTION
* mre_get_fileiocontext
* DESCRIPTION
* This function gets flag for context of fileio test
* PARAMETERS
* none
* RETURNS
* g_mre_subcontext [OUT] it is true or false
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
VMINT mre_get_fileiosubcontext(void);
/*****************************************************************************
* FUNCTION
* mre_textbox_handle
* DESCRIPTION
* This function takes text string and saves it global variable
* PARAMETERS
* state [IN] state of input text box
* text [IN] Text string in ASCII or GB2312 format
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_textbox_handle(VMINT state, VMWSTR text);
/*****************************************************************************
* FUNCTION
* mre_io_submenu
* DESCRIPTION
* This function displays sub menu list on the screen for selection
* PARAMETERS
* none
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_io_submenu(void);
/*****************************************************************************
* FUNCTION
* mre_file_result
* DESCRIPTION
* This function decides if error found then displays error
* otherwise remain scilent
* PARAMETERS
* result [IN] result
* RETURNS
* none
DISPlAY
*****************************************************************************/
void mre_file_result(VMINT result);
/*****************************************************************************
* FUNCTION
* mre_set_subcontext
* DESCRIPTION
* This function sets flag for context
* PARAMETERS
* val [IN] it is true or false
* RETURNS
* none
*****************************************************************************/
void mre_set_subcontext(VMINT val);
/*****************************************************************************
* FUNCTION
* mre_get_subcontext
* DESCRIPTION
* This function gets flag for context
* PARAMETERS
* none
* RETURNS
* g_mre_subcontext [OUT] it is true or false
*****************************************************************************/
VMINT mre_get_subcontext(void);
/*****************************************************************************
* FUNCTION
* mre_set_textbox_text
* DESCRIPTION
* This function saves the text of input textbox in a global variable
* PARAMETERS
* text [IN] text from input textbox
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_set_textbox_text(VMWSTR text);
/*****************************************************************************
* FUNCTION
* mre_get_textbox_text
* DESCRIPTION
* This function returns pointer to text of input textbox saved in a global
* variable
* PARAMETERS
* none
* RETURNS
* g_mre_textbox_text [OUT] it is pointer to text stored in global
* vaiable
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
VMWSTR mre_get_textbox_text(void);
/*****************************************************************************
* FUNCTION
* mre_set_textbox_state
* DESCRIPTION
* This function saves the state of input textbox in a global variable
* PARAMETERS
* state [IN] it is ok or cancel
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_set_textbox_state(VMINT state);
/*****************************************************************************
* FUNCTION
* mre_get_textbox_state
* DESCRIPTION
* This function returns the state of input textbox saved in a global variable
* PARAMETERS
* none
* RETURNS
* g_mre_textbox_state [OUT] it is ok or cancel
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
VMINT mre_get_textbox_state(void);
/*****************************************************************************
* FUNCTION
* mre_get_drv
* DESCRIPTION
* This function returns a no corresponding to a drive found
* PARAMETERS
* none
* RETURNS
* g_mre_drv [OUT] drive found on device
*****************************************************************************/
VMINT mre_get_drv(void);
/*****************************************************************************
* FUNCTION
* mre_set_drv
* DESCRIPTION
* This function stores a no corresponding to a drive found
* PARAMETERS
* none
* RETURNS
* none
*****************************************************************************/
void mre_set_drv(void);
/*****************************************************************************
* FUNCTION
* mre_set_global_data
* DESCRIPTION
* This function sets global data variables
* handling actions
* PARAMETERS
* none
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
*****************************************************************************/
void mre_set_global_data (void);
/*****************************************************************************
* FUNCTION
* mre_set_curr_x
* DESCRIPTION
* This function sets current x cordinate to write strings on screen
* PARAMETERS
* x [IN] current x cordinate
* RETURNS
* none
*****************************************************************************/
void mre_set_curr_x (VMINT x);
/*****************************************************************************
* FUNCTION
* mre_get_curr_x
* DESCRIPTION
* This function gets current x cordinate to write strings on screen
* PARAMETERS
* none
* RETURNS
* g_mre_curr_x [OUT] current x cordinate
*****************************************************************************/
VMINT mre_get_curr_x (void);
/*****************************************************************************
* FUNCTION
* mre_set_curr_y
* DESCRIPTION
* This function sets current y cordinate to write strings on screen
* PARAMETERS
* y [IN] current y cordinate
* RETURNS
* none
*****************************************************************************/
void mre_set_curr_y (VMINT y);
/*****************************************************************************
* FUNCTION
* mre_get_curr_y
* DESCRIPTION
* This function gets current y cordinate to write strings on screen
* PARAMETERS
* none
* RETURNS
* g_mre_curr_y [OUT] current y cordinate
*****************************************************************************/
VMINT mre_get_curr_y (void);
/*****************************************************************************
* FUNCTION
* mre_show_input_textbox
* DESCRIPTION
* This function displays input textbox
* PARAMETERS
* input_type [IN] type of input textbox
* RETURNS
* none
*****************************************************************************/
VMINT mre_show_input_textbox(VMINT input_type);