CallLogAdpPbapc.h
6.72 KB
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
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* CallLogAdpPbapc.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* PBAPC
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*
*
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef MMI_CALL_LOG_ADP_PBAPC_H
#define MMI_CALL_LOG_ADP_PBAPC_H
/*----------------------------------------------------------------------------*/
/* Include */
/*----------------------------------------------------------------------------*/
#include "MMI_features.h"
#if defined(__MMI_BT_PBAP_CLIENT__)
#include "PhbpbapSrvGprot.h"
#include "app_datetime.h"
#include "vcard_lib.h"
#define __MMI_CLOG_PBAPC_ADM_SUPPORT__
//#define __MMI_CLOG_PBAPC_CLOG_TYPE_DETAIL_SHOW__
#define MMI_CLOG_PBAPC_ENTRIES 30
#define MMI_CLOG_PBAPC_MISSED_CALL_ENTRIES MMI_CLOG_PBAPC_ENTRIES
#define MMI_CLOG_PBAPC_DIALED_CALL_ENTRIES MMI_CLOG_PBAPC_ENTRIES
#define MMI_CLOG_PBAPC_RECVED_CALL_ENTRIES MMI_CLOG_PBAPC_ENTRIES
#define MMI_CLOG_PBAPC_TIME_DETAIL_MAX_NUM 1
#define MMI_CLOG_PBAPC_NAME_MAX_LEN ((MAX_PHB_NAME_LENGTH + 1) / 2)
#define MMI_CLOG_PBAPC_CID_MAX_LEN 40
#define MMI_CLOG_PBAPC_TRC_INFO MMI_COMMON_TRC_G4_CLOG
typedef void (*mmi_clog_pbap_async_op_callback_type)(S32 result);
typedef enum
{
MMI_CLOG_PBAPC_CLT_DEFAULT = 0x00, /* Default value, just discard it if act as a filter */
MMI_CLOG_PBAPC_CLT_DIALED = 0x01, /* Dialed call log type */
MMI_CLOG_PBAPC_CLT_MISSED = 0x02, /* Missed call log type */
MMI_CLOG_PBAPC_CLT_RECVED = 0x04, /* Received call log type */
MMI_CLOG_PBAPC_CLT_ALL = 0x0F, /* All call log type */
MMI_CLOG_PBAPC_CLT_MAX_ITEM /* Max item */
} mmi_clog_pbapc_clt_enum;
typedef enum
{
MMI_CLOG_PBAPC_OP_TYPE_LT_LIST,
MMI_CLOG_PBAPC_OP_TYPE_LIST_VIEWER,
MMI_CLOG_PBAPC_OP_TYPE_MAX_ITEM
} mmi_clog_pbapc_op_type_enum;
typedef struct
{
MMI_BOOL is_canceled;
MMI_BOOL is_stoped;
srv_phb_pbap_storage_enum path;
MMI_BOOL is_read;
SRV_PHB_PBAPC_HANDLE phapc_op_handle;
mmi_clog_pbap_async_op_callback_type cb;
#ifdef __MULTI_VCARD_SUPPORT__
VP_HANDLE p_handle;
#endif /*__MULTI_VCARD_SUPPORT__*/
U8 flag;
MMI_ID parent_id;
MMI_MENU_ID menu_id;
MMI_BOOL is_only_update;
U32 is_from_close_pop;
} mmi_clog_pbapc_cntx_struct;
typedef struct
{
MMI_ID parent_gid;
MMI_ID self_scr_id;
mmi_clog_pbapc_op_type_enum type;
srv_phb_pbap_storage_enum sel_lt_storage;
MMI_MENU_ID sel_menu_id;
} mmi_clog_pbapc_processing_inst_struct;
typedef struct
{
mmi_clog_pbapc_clt_enum call_type;
WCHAR name[MMI_CLOG_PBAPC_NAME_MAX_LEN + 1]; /* Name */
U8 cid[MMI_CLOG_PBAPC_CID_MAX_LEN + 1]; /* Caller id (CID), phone number or voip address, in ASCII encode */
applib_time_struct timestamp[MMI_CLOG_PBAPC_TIME_DETAIL_MAX_NUM]; /* Timestamp, it is order sequence, and timestamp[0] is the lastest */
} mmi_clog_pbap_info_struct;
typedef struct
{
#ifdef __MMI_CLOG_PBAPC_ADM_SUPPORT__
mmi_clog_pbap_info_struct *clog_info;
#else /*__MMI_CLOG_PBAPC_ADM_SUPPORT__*/
mmi_clog_pbap_info_struct clog_info;
#endif /*__MMI_CLOG_PBAPC_ADM_SUPPORT__*/
} mmi_clog_pbap_clog_info_cache_struct;
typedef struct
{
MMI_BOOL is_need_save_idx;
mmi_clog_pbap_info_struct *call_info;
mmi_clog_pbap_info_struct save_info;
}mmi_clog_reslove_hlt_item_struct;
extern void mmi_clog_pbapc_init(void);
extern void mmi_clog_pbapc_deinit(void);
extern void mmi_clog_pbapc_read_folder(srv_phb_pbap_storage_enum path);
extern void mmi_clog_pbapc_free_op_handle(void);
extern mmi_clog_pbapc_cntx_struct* mmi_clog_get_pbapc_cntx();
#endif /* __MMI_BT_PBAP_CLIENT__ */
#endif /* MMI_CALL_LOG_ADP_PBAPC_H */