1 /* |
|
2 * Copyright (c) 2003-2006 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: VPN notifier definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __VPNNOTIFIERDEFS_H__ |
|
20 #define __VPNNOTIFIERDEFS_H__ |
|
21 |
|
22 /** |
|
23 @file |
|
24 @released |
|
25 @publishedPartner |
|
26 |
|
27 VPN Notifier definitions |
|
28 */ |
|
29 class TNoteDialog |
|
30 { |
|
31 public: |
|
32 enum TDialogId |
|
33 { |
|
34 EInfo = -10, |
|
35 EWarning, |
|
36 EError |
|
37 }; |
|
38 }; |
|
39 |
|
40 class TVpnDialogInfo |
|
41 { |
|
42 public: |
|
43 TVpnDialogInfo() |
|
44 { |
|
45 iDialogId = 0; |
|
46 iNoteDialogId = 0; |
|
47 } |
|
48 |
|
49 TVpnDialogInfo(TInt aDialogId, TInt aNoteDialogId) |
|
50 { |
|
51 iDialogId = aDialogId; |
|
52 iNoteDialogId = aNoteDialogId; |
|
53 } |
|
54 |
|
55 TInt DialogId() {return iDialogId;} |
|
56 TInt NoteDialogId() {return iNoteDialogId;} |
|
57 |
|
58 private: |
|
59 TInt iDialogId; |
|
60 TInt iNoteDialogId; |
|
61 }; |
|
62 |
|
63 class TVpnDialogOutput |
|
64 { |
|
65 public: |
|
66 TVpnDialogOutput() |
|
67 { |
|
68 Clear(); |
|
69 } |
|
70 void Clear() |
|
71 { |
|
72 iOutBuf.SetLength(0); |
|
73 iOutBuf2.SetLength(0); |
|
74 iOutInt = 0; |
|
75 iOutInt2 = 0; |
|
76 } |
|
77 |
|
78 public: |
|
79 TBuf<256> iOutBuf; |
|
80 TBuf<64> iOutBuf2; |
|
81 TInt iOutInt; |
|
82 TInt iOutInt2; |
|
83 }; |
|
84 |
|
85 // typedefs for backward compatibility |
|
86 // typedef new_type old_type |
|
87 typedef TVpnDialogInfo TIPSecDialogInfo; |
|
88 typedef TVpnDialogOutput TIPSecDialogOutput; |
|
89 |
|
90 |
|
91 // |
|
92 // KMD notifier definitions |
|
93 // |
|
94 const TUid KUidKmdDialogNotifier = {0x101F513F}; |
|
95 |
|
96 _LIT(KKmdNotifierResource, "\\resource\\KMDNOTIFIER.RSC"); |
|
97 |
|
98 class TKmdDialog |
|
99 { |
|
100 public: |
|
101 enum TDialogId |
|
102 { |
|
103 EUserPwd = 1, // MUST be greater than the last value in enum TNoteDialog::TDialogId |
|
104 ESecurIdPin, |
|
105 ESecurIdNextPin, |
|
106 EChallengeResponse, |
|
107 EUsername |
|
108 }; |
|
109 //added here for backward compatibility |
|
110 enum TDialogId_OLD_STYLE |
|
111 { |
|
112 //EUserPwd = 1, // MUST be greater than the last value in enum TNoteDialog::TDialogId |
|
113 ESecurIDPIN = 2, |
|
114 ESecurIDNextPIN |
|
115 }; |
|
116 }; |
|
117 |
|
118 class TKmdNoteDialog |
|
119 { |
|
120 public: |
|
121 enum TTextId |
|
122 { |
|
123 ELamTypeNotSupported = 1, |
|
124 EAuthenticationFailed, |
|
125 ECryptoLibraryTooWeak |
|
126 }; |
|
127 //added here for backward compatibility |
|
128 enum TTextId_OLD_STYLE |
|
129 { |
|
130 ELAMTypeNotSupported = 1//, |
|
131 //EAuthenticationFailed, |
|
132 //ECryptoLibraryTooWeak |
|
133 }; |
|
134 }; |
|
135 |
|
136 // typedefs for backward compatibility |
|
137 // typedef existing_type old_type |
|
138 typedef TKmdDialog TKMDDialog; |
|
139 |
|
140 typedef TKmdNoteDialog TKMDNoteDialog; |
|
141 |
|
142 // |
|
143 // PKI notifier definitions |
|
144 // |
|
145 _LIT(KPkiNotifierResource,"\\resource\\PKINOTIFIER.RSC"); |
|
146 |
|
147 const TUid KUidPkiDialogNotifier = {0x101FAE08}; |
|
148 |
|
149 class TPkiDialog |
|
150 { |
|
151 public: |
|
152 enum TDialogId |
|
153 { |
|
154 EEnterPwd = 1, // MUST be greater than the last value in enum TNoteDialog::TDialogId (vpnnotifierdefs.h) |
|
155 EChangeActivePwd, |
|
156 EInstallVpnPwd, |
|
157 ECurrentVpnPwd, |
|
158 EChangePwd, |
|
159 EDefinePwd, |
|
160 EEnterImportPwd |
|
161 }; |
|
162 }; |
|
163 |
|
164 class TPkiNoteDialog |
|
165 { |
|
166 public: |
|
167 enum TTextId |
|
168 { |
|
169 EWrongSecurityPwdNote = 1, |
|
170 EWrongActivatePwdNote, |
|
171 EActivatePwdErrorNote, |
|
172 EPwdConfirmationNote, |
|
173 ECryptoLibraryTooWeak, |
|
174 EPwdTooShort, |
|
175 EPwdEmpty |
|
176 }; |
|
177 }; |
|
178 |
|
179 // typedefs for backward compatibility |
|
180 // typedef new_type old_type |
|
181 typedef TPkiDialog TIPSecDialog; |
|
182 typedef TPkiNoteDialog TIPSecNoteDialog; // this was only used in pkinotifier (ipsecnotifier) |
|
183 |
|
184 #endif // __VPNNOTIFIERDEFS_H__ |
|