FreeCalypso > hg > fc-magnetite
comparison src/ui3/bmi/mmiBtipsOppc.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 #ifndef _MMIBTIPS_OPPC_H_ | |
2 #define _MMIBTIPS_OPPC_H_ | |
3 | |
4 /* ========================================================= | |
5 * Texas Instruments OMAP(TM) Platform Software | |
6 * (c) Copyright Texas Instruments, Incorporated. All Rights Reserved. | |
7 * | |
8 * Use of this software is controlled by the terms and conditions found | |
9 * in the license agreement under which this software has been supplied. | |
10 * ========================================================== */ | |
11 /* | |
12 $Project name: Basic Bluetooth OPP Client MMI | |
13 $Project code: | |
14 $Module: Bluetooth OPP Client APPlication | |
15 $File: mmiBtipsOppc.h | |
16 $Revision: 1.0 | |
17 $Author: Texas Instruments | |
18 $Date: 26/06/07 | |
19 | |
20 ******************************************************************************** | |
21 | |
22 Description: | |
23 | |
24 This module provides the BTIPS BMG APPlication functionality. | |
25 | |
26 ******************************************************************************** | |
27 $History: mmiBtipsOppc.h | |
28 | |
29 26/06/07 Sasken original version | |
30 | |
31 $End | |
32 | |
33 *******************************************************************************/ | |
34 | |
35 | |
36 /* ====================================================== */ | |
37 /* | |
38 * List Attribute | |
39 */ | |
40 /* ====================================================== */ | |
41 static const MfwMnuAttr BtipsOppcList_Attrib = | |
42 { | |
43 &menuArea, | |
44 MNU_LEFT| MNU_LIST_ICONS| MNU_CUR_LINE, /* centered page menu */ | |
45 (U8)-1, /* use default font */ | |
46 NULL, /* with these items */ | |
47 0, /* number of items */ | |
48 COLOUR_LIST_XX, | |
49 TxtBtipsOppc, | |
50 NULL, | |
51 MNUATTRSPARE | |
52 }; | |
53 | |
54 | |
55 typedef struct _T_MMI_Btips_Oppc_Win_data | |
56 { | |
57 T_MMI_CONTROL mmi_control; | |
58 T_MFW_HND parent; | |
59 T_MFW_HND win; | |
60 T_MFW_HND kbd; | |
61 T_MFW_HND kbd_long; | |
62 T_MFW_HND oppc_optionsMenu; | |
63 | |
64 | |
65 T_VOID_FUNC func_cb; | |
66 T_VOID_FUNC cancel_cb; | |
67 UBYTE oppc_num_file; | |
68 UBYTE oppc_file_count; | |
69 ListCbFunc oppc_list_cb; | |
70 UBYTE oppc_list_idx; | |
71 UBYTE IsMfwInit; | |
72 ListMenuData * menu_list_data; | |
73 | |
74 }T_MMI_Btips_Oppc_Win_data; | |
75 | |
76 typedef enum { | |
77 BTIPS_OPPC_LIST_INIT=0, | |
78 BTIPS_OPPC_LIST_DEINIT | |
79 }BTIPS_OPPC_WIN_EVENT; | |
80 | |
81 #define OPPC_DEFAULT_PUSH_PULL_DIR "/MfwBtDemo/" | |
82 #define OPPC_DEFAULT_PUSH_CARD "/MfwBtDemo/default/mycard.vcf" | |
83 #define OPPC_VCF_EXT ".vcf" | |
84 | |
85 /*Function Declarations*/ | |
86 int mmi_btips_oppcHandler(MfwMnu* m, MfwMnuItem* i); | |
87 int mmi_btips_oppcPullHandler(MfwMnu* m, MfwMnuItem* i); | |
88 int mmi_btips_oppcExchangeHandler(MfwMnu* m, MfwMnuItem* i); | |
89 static T_MFW_HND mmi_btips_oppcBuildMenu( MfwHnd parent_window); | |
90 static int mmi_btips_oppcListWinCb (MfwEvt e, MfwWin *w) ; | |
91 void mmi_btips_oppcListWinExecCb (T_MFW_HND win, USHORT event, | |
92 SHORT value, void * parameter); | |
93 static void mmi_btips_oppcListMenuCb(T_MFW_HND Parent, ListMenuData * ListData); | |
94 static void mmi_btips_oppcListMenuDestroy(MfwHnd window); | |
95 static MfwHnd mmi_btips_oppcShowInfoDlg(T_MFW_HND parent, int str1, int str2, | |
96 T_VOID_FUNC callback); | |
97 | |
98 int mmi_btips_oppcDeviceSearchWnd(int type); | |
99 #endif | |
100 |