|
1 /* |
|
2 * Copyright (c) 2003-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: Includes, classes, constants and strings used by CertManUI |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CERTMANUICOMMON_H |
|
20 #define CERTMANUICOMMON_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikmenub.h> // for menu and cba support |
|
24 #include <aknnavide.h> |
|
25 #include <akntabgrp.h> |
|
26 #include <akntitle.h> |
|
27 #include <aknlists.h> |
|
28 #include <aknViewAppUi.h> |
|
29 #include <barsread.h> // for TResourceReader |
|
30 #include <StringLoader.h> |
|
31 #include <featmgr.h> |
|
32 |
|
33 // _LITS |
|
34 _LIT( KCertManUIInsertDescriptor, "\t" ); |
|
35 _LIT( KCertManUIFormatDescriptorTrustSettings, "\t%S\t\t" ); |
|
36 _LIT( KCertManUIDetailsViewEnter, "\n" ); |
|
37 _LIT( KCertManUIDetailsViewEnterEnter, "\n\n" ); |
|
38 _LIT( KCertManUIDetailsViewEnterHyphenEnter, " - " ); |
|
39 _LIT( KCertManUIDetailsViewHexaFormat, "%02X" ); |
|
40 _LIT( KCertManUICertDataIndexFormat, "%d" ); |
|
41 |
|
42 // FORWARD DECLARATIONS |
|
43 class CCertManUIContainerAuthority; |
|
44 class CCertManUIContainerPersonal; |
|
45 |
|
46 // CONST TINTS |
|
47 |
|
48 const TInt KCertTypeAuthority = 1; |
|
49 const TInt KCertTypeTrustedSite = 2; |
|
50 const TInt KCertTypePersonal = 3; |
|
51 const TInt KCertTypeDevice = 4; |
|
52 |
|
53 // For setting the correct title for CertManUI |
|
54 const TInt KViewTitleCertManUI = 1; |
|
55 const TInt KViewTitleCertManUIAuthority = 2; |
|
56 const TInt KViewTitleCertManUITrustedSite = 3; |
|
57 const TInt KViewTitleCertManUIPersonal = 4; |
|
58 const TInt KViewTitleCertManUIDevice = 5; |
|
59 |
|
60 |
|
61 const TUid KCMFileCertStoreTokenUid = { 0x101F501A }; |
|
62 const TUid KCMTrustedServerTokenUid = { 0x101FB66F }; |
|
63 const TUid KCMDeviceCertStoreTokenUid = { 0x101FB668 }; |
|
64 |
|
65 const TUid KCMFileKeyStoreTokenUid = { 0x101F7333 }; |
|
66 const TUid KCMDeviceKeyStoreTokenUid = { 0x101FB66A }; |
|
67 |
|
68 |
|
69 // Granularity of the created iconarrays |
|
70 LOCAL_D const TInt KGranularity = 4; |
|
71 |
|
72 // "dd/mm/yyyy0" |
|
73 const TInt KMaxLengthTextDateString = 11; |
|
74 // HH0 |
|
75 const TInt KMaxLengthTextSerialNumberFormatting = 3; |
|
76 // CertLabel, Issuer, Owner max length 510 bytes |
|
77 const TInt KMaxLengthTextCertLabel = 510; |
|
78 // CertLabel, Issuer, Owner max visible length |
|
79 const TInt KMaxLengthTextCertLabelVisible = 200; |
|
80 // CertWimLabel, KeyLabel, KeyWimLabel max length 255 bytes |
|
81 const TInt KMaxLengthTextKeyWimLabel = 256; |
|
82 // Maximum length of dynamic strings is 4092, |
|
83 // plus 13 resource strings with average lenght of 50 makes 650 |
|
84 // total 4742 rounded up to 5000 |
|
85 const TInt KMaxLengthTextDetailsBody = 5000; |
|
86 // Max length for ave_list_setting_pane_1 is 52 and |
|
87 // for ave_list_setting_pane_2 51 (formatting 7) , total 103 + end mark |
|
88 const TInt KMaxLengthTextSettListOneTwo = 104; |
|
89 // Max length for ave_list_setting_pane_1 is 52 |
|
90 const TInt KMaxLengthTextSettListOne = 52; |
|
91 // Maximum length of a certificate |
|
92 const TInt KMaxCertificateLength = 5000; |
|
93 const TInt KMaxKeyLength = 10000; |
|
94 |
|
95 const TInt KWIMCertStoreUid ( 0x101F79D9 ); |
|
96 |
|
97 // FEATURE FLAGS |
|
98 |
|
99 #define WIM_ENABLED ( FeatureManager::FeatureSupported( KFeatureIdWim ) ) |
|
100 |
|
101 // DATA TYPES |
|
102 |
|
103 enum TCertmanUiPanics |
|
104 { |
|
105 EBadDialogSelector, |
|
106 EDoubleDialogClose |
|
107 }; |
|
108 |
|
109 enum TCertmanUiDialogs |
|
110 { |
|
111 ECertmanUiDeleteDialog, |
|
112 ECertmanUiWaitDialog |
|
113 }; |
|
114 |
|
115 #endif // CERTMANUICOMMON_H |
|
116 |
|
117 // End of File |