comparison src/aci2/bmi/MmiWapFfs.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*******************************************************************************
2
3 CONDAT (UK)
4
5 ********************************************************************************
6
7 This software product is the property of Condat (UK) Ltd and may not be
8 disclosed to any third party without the express permission of the owner.
9
10 ********************************************************************************
11
12 $Project name:
13 $Project code:
14 $Module:
15 $File: MmiWapFfs.h
16 $Revision:
17
18 $Author: Condat(UK)
19 $Date:
20
21 ********************************************************************************
22
23 Description:
24 Data structures, constants and function prototypes for WAP flash handling.
25
26 ********************************************************************************
27
28 $History: MmiWapFfs.h
29
30 May 11 2005 REF: MMI-SPR-29887 x0012849
31 To Implement the deferred MMS retrieval.
32 15/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version.
33
34 $End
35
36 *******************************************************************************/
37
38 #ifndef _DEF_MMI_FFS_H_
39 #define _DEF_MMI_FFS_H_
40
41 /* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
42 #ifndef NEPTUNE_BOARD
43 /* END ADD: Sumit : Req ID: : 31-Mar-2005*/
44 #include "ffs/ffs.h"
45 /* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
46 #else
47 #include "ffs.h"
48 #endif
49 /* END ADD: Sumit : Req ID: : 31-Mar-2005*/
50
51 #ifndef ATBDATA
52 #include "ATBData.h"
53 #endif
54
55 /* FlashDataWap - Data structure for WAP Data file */
56
57 typedef struct
58 {
59 UBYTE ProfileId; /* Last profile used */
60 UBYTE Status; /* Stores status flags, inc save history, scale images */
61 UBYTE no_of_profiles; /* Number of profiles stored */
62 UBYTE no_of_history; /* Number of history entries */
63 USHORT History[MAX_HISTORY][CARD_TITLE_MAX_LEN+NUMBER_PADDING+1]; /* History card names */
64 char HistoryURL[MAX_HISTORY][URL_MAX_LEN+1]; /* History URLs */
65 UBYTE no_of_bookmarks; /* Number of bookmarks */
66 USHORT Bookmarks[MAX_BOOKMARKS][CARD_TITLE_MAX_LEN+1]; /* Bookmark card names */
67 char BookmarksURL[MAX_BOOKMARKS][URL_MAX_LEN+1]; /* Bookmark URLs */
68 } FlashDataWap;
69
70 /* FlashDataWapProfiles - Data structure for WAP Profiles file */
71
72 typedef struct
73 {
74 T_WAP_PROFILE Profile[MAX_PROFILES];
75 } FlashDataWapProfiles;
76
77 #ifdef FF_MMI_MMS
78 //TISHMMS Project
79 // May 11 2005 REF: MMI-SPR-29887 x0012849
80 // Structure used to store the MMS retrieval type
81 typedef struct
82 {
83 BOOL retrieval_type; // 0= Immediate 1= Deferred.
84 } FlashDataMmsRetrievalType;
85 typedef struct
86 {
87 T_MMS_PROFILE Profile[MAX_PROFILES];
88 } FlashDataMmsProfiles;
89 #endif
90
91 extern FlashDataWap *WapData;
92 extern FlashDataWapProfiles *WapProfilesData;
93
94 #ifdef FF_MMI_MMS
95 //TISHMMS Project
96 extern FlashDataMmsProfiles *MmsProfilesData;
97 #endif
98
99 /* Flash access routines */
100
101 T_FFS_RET flash_wap_init();
102 T_FFS_RET flash_wap_write();
103 T_FFS_SIZE flash_wap_read();
104
105
106 #ifdef FF_MMI_MMS
107 //TISHMMS Project
108 // May 11 2005 REF: MMI-SPR-29887 x0012849
109 // prototypes of 2 functions
110 T_FFS_SIZE flash_mms_retrieval_type_read(BOOL *RetrievalType);
111 T_FFS_RET flash_mms_retrieval_type_write(BOOL RetrievalType);
112 T_FFS_SIZE flash_mms_read();
113 T_FFS_RET flash_mms_write();
114 #endif
115
116 #endif
117
118
119