|
1 /* |
|
2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Defines the sim store properties |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TVPBKSIMSTOREPROPERTY_H |
|
21 #define TVPBKSIMSTOREPROPERTY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 /// The default value for all signed store propery values |
|
29 const TInt8 KVPbkSimStorePropertyUndefined = -1; |
|
30 |
|
31 // DATA TYPES |
|
32 namespace VPbkSimStoreImpl { |
|
33 enum TVPbkSimStoreCaps |
|
34 { |
|
35 // Same as defined in etelmm.h |
|
36 KReadAccess = 0x20000000, |
|
37 KWriteAccess = 0x10000000, |
|
38 KDeleteAll = 0x08000000, |
|
39 KNotifyEvent = 0x04000000, |
|
40 KRestrictedWriteAccess = 0x00000001, |
|
41 KSecondNameUsed = 0x00000002, |
|
42 KAdditionalNumUsed = 0x00000004, |
|
43 KGroupingUsed = 0x00000008, |
|
44 KEmailAddressUsed = 0x00000020, |
|
45 KEntryControlUsed = 0x00000010, |
|
46 }; |
|
47 } // namespace VPbkSimStoreImpl |
|
48 |
|
49 /** |
|
50 * The basic store properties. |
|
51 * |
|
52 */ |
|
53 struct TVPbkGsmStoreProperty |
|
54 { |
|
55 /// The maximum amount of contacts in the store |
|
56 TInt iTotalEntries; |
|
57 /// The current amount of contacts in the store |
|
58 TInt iUsedEntries; |
|
59 /// The maximum length of the GSM number field. This is a dynamic value |
|
60 /// and can change according to state of EXT1 file in the SIM card. |
|
61 TInt iMaxNumLength; |
|
62 /// The maximum lenght of the name field of the contact. |
|
63 TInt iMaxTextLength; |
|
64 /// A collection of flags in TVPbkSimStoreCaps |
|
65 TUint32 iCaps; |
|
66 }; |
|
67 |
|
68 /** |
|
69 * The 3G ADN properties. |
|
70 * If the field information is not supported then the value is |
|
71 * KVPbkSimStorePropertyUndefined |
|
72 * |
|
73 */ |
|
74 struct TVPbkUSimStoreProperty |
|
75 { |
|
76 /// The maximum lenght of the email address. |
|
77 TInt16 iMaxEmailLength; |
|
78 /// The maximum length of the second name. |
|
79 TInt16 iMaxScndNameLength; |
|
80 /// The maximum length of the additional phone number. This is a dynamic |
|
81 /// value and can change according to state of EXT1 file in the SIM card. |
|
82 TInt16 iMaxAnrLength; |
|
83 /// The maximum length of the group name |
|
84 TInt16 iMaxGroupNameLength; |
|
85 /// The maximum number of email addresses in the contact. The value |
|
86 /// doesn't change if the EMAIL file(s) becomes full in the SIM card |
|
87 TInt8 iMaxNumOfEmails; |
|
88 /// The maximum number of second names in the contact. The value doesn't |
|
89 /// change if the SNE file becomes full in the SIM card |
|
90 TInt8 iMaxNumOfScndNames; |
|
91 /// The maximum number of additional numbers in the contact. The value |
|
92 /// doesn't change if the ANR file becomes full in the SIM card |
|
93 TInt8 iMaxNumOfAnrs; |
|
94 /// The maximum number of group names in the contact. |
|
95 TInt8 iMaxNumOfGroupNames; |
|
96 }; |
|
97 |
|
98 #endif // TVPBKSIMSTOREPROPERTY_H |
|
99 |
|
100 // End of File |