16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <aknmessagequerydialog.h> |
21 //#include <aknmessagequerydialog.h> |
22 #include <StringLoader.h> |
22 //#include <StringLoader.h> |
23 #include <SWInstCommonUI.rsg> |
23 #include <SWInstCommonUI.rsg> |
24 #include <AknUtils.h> |
24 //#include <AknUtils.h> |
25 #include <hash.h> |
25 #include <hash.h> |
26 |
26 |
27 #include "CUICertificateDetailsDialog.h" |
27 #include "CUICertificateDetailsDialog.h" |
28 #include "CUIDetailsDialog.h" |
28 #include "CUIDetailsDialog.h" |
29 |
29 |
86 // |
86 // |
87 void CCUICertificateDetailsDialog::AddFieldLC( HBufC*& aMessage, |
87 void CCUICertificateDetailsDialog::AddFieldLC( HBufC*& aMessage, |
88 TInt aHeaderResourceId, |
88 TInt aHeaderResourceId, |
89 const TDesC& aValue ) |
89 const TDesC& aValue ) |
90 { |
90 { |
|
91 /* |
91 HBufC* headerString = StringLoader::LoadLC( aHeaderResourceId ); |
92 HBufC* headerString = StringLoader::LoadLC( aHeaderResourceId ); |
92 HBufC* newMessage; |
93 HBufC* newMessage; |
93 |
94 |
94 if ( aMessage->Length() > 0 ) |
95 if ( aMessage->Length() > 0 ) |
95 { |
96 { |
117 |
118 |
118 CleanupStack::PopAndDestroy( headerString ); |
119 CleanupStack::PopAndDestroy( headerString ); |
119 CleanupStack::PopAndDestroy( aMessage ); |
120 CleanupStack::PopAndDestroy( aMessage ); |
120 |
121 |
121 aMessage = newMessage; |
122 aMessage = newMessage; |
122 CleanupStack::PushL( aMessage ); |
123 CleanupStack::PushL( aMessage ); |
|
124 */ |
123 } |
125 } |
124 |
126 |
125 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
126 // CCUICertificateDetailsDialog::ExecuteLD |
128 // CCUICertificateDetailsDialog::ExecuteLD |
127 // Executes the dialog. |
129 // Executes the dialog. |
128 // (other items were commented in a header). |
130 // (other items were commented in a header). |
129 // ----------------------------------------------------------------------------- |
131 // ----------------------------------------------------------------------------- |
130 // |
132 // |
131 void CCUICertificateDetailsDialog::ExecuteLD( const CCUICertificateInfo& aCertInfo ) |
133 void CCUICertificateDetailsDialog::ExecuteLD( const CCUICertificateInfo& aCertInfo ) |
132 { |
134 { |
|
135 /* |
133 CleanupStack::PushL( this ); |
136 CleanupStack::PushL( this ); |
134 |
137 |
135 // Valid from |
138 // Valid from |
136 HBufC* validFrom = DateToStringLC( aCertInfo.ValidFromL() ); |
139 HBufC* validFrom = DateToStringLC( aCertInfo.ValidFromL() ); |
137 |
140 |
182 CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL( *message ); |
185 CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL( *message ); |
183 dlg->PrepareLC( R_SWCOMMON_SEC_DETAILS_DIALOG ); |
186 dlg->PrepareLC( R_SWCOMMON_SEC_DETAILS_DIALOG ); |
184 dlg->RunLD(); |
187 dlg->RunLD(); |
185 |
188 |
186 CleanupStack::PopAndDestroy( 7 ); // message, fingerprint_md, fingerprint, serial, validTo, validFrom |
189 CleanupStack::PopAndDestroy( 7 ); // message, fingerprint_md, fingerprint, serial, validTo, validFrom |
|
190 */ |
187 } |
191 } |
188 |
192 |
189 // ----------------------------------------------------------------------------- |
193 // ----------------------------------------------------------------------------- |
190 // CCUICertificateDetailsDialog::DateToString |
194 // CCUICertificateDetailsDialog::DateToString |
191 // Converts date to local format. |
195 // Converts date to local format. |
192 // (other items were commented in a header). |
196 // (other items were commented in a header). |
193 // ----------------------------------------------------------------------------- |
197 // ----------------------------------------------------------------------------- |
194 // |
198 // |
195 HBufC* CCUICertificateDetailsDialog::DateToStringLC( const TDateTime& aDate ) |
199 HBufC* CCUICertificateDetailsDialog::DateToStringLC( const TDateTime& aDate ) |
196 { |
200 { |
|
201 /* |
197 // Create date descriptors. |
202 // Create date descriptors. |
198 // We use Avkon date format string to format the date into correct format. |
203 // We use Avkon date format string to format the date into correct format. |
199 HBufC* dateFormatString = StringLoader::LoadLC( R_QTN_DATE_USUAL_WITH_ZERO ); |
204 HBufC* dateFormatString = StringLoader::LoadLC( R_QTN_DATE_USUAL_WITH_ZERO ); |
200 |
205 |
201 TBuf<30> timeString; |
206 TBuf<30> timeString; |
206 HBufC* tmp = timeString.AllocLC(); |
211 HBufC* tmp = timeString.AllocLC(); |
207 |
212 |
208 TPtr ptr = tmp->Des(); |
213 TPtr ptr = tmp->Des(); |
209 AknTextUtils::DisplayTextLanguageSpecificNumberConversion( ptr ); |
214 AknTextUtils::DisplayTextLanguageSpecificNumberConversion( ptr ); |
210 |
215 |
211 return tmp; |
216 return tmp; |
|
217 */ |
|
218 return NULL; |
212 } |
219 } |
213 |
220 |
214 // ----------------------------------------------------------------------------- |
221 // ----------------------------------------------------------------------------- |
215 // CCUICertificateDetailsDialog::DevideToBlocks |
222 // CCUICertificateDetailsDialog::DevideToBlocks |
216 // Devides input descriptor to blocks. |
223 // Devides input descriptor to blocks. |