pkiutilities/CTSecurityDialogs/NotifSrc/CTCertificateQuery.cpp
changeset 15 318c4eab2439
parent 0 164170e6151a
child 50 03674e5abf46
--- a/pkiutilities/CTSecurityDialogs/NotifSrc/CTCertificateQuery.cpp	Fri Mar 19 09:41:08 2010 +0200
+++ b/pkiutilities/CTSecurityDialogs/NotifSrc/CTCertificateQuery.cpp	Fri Apr 16 15:53:24 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -11,7 +11,7 @@
 *
 * Contributors:
 *
-* Description:  
+* Description:
 *
 */
 
@@ -23,36 +23,40 @@
 #include "CTSecurityDialogsAO.h"
 
 #include <CTSecDlgs.rsg>
-#include <certmanui.rsg>
+//#include <certmanui.rsg>
 #include <aknmessagequerydialog.h>
 #include <aknPopupHeadingPane.h>
 
 // ================= MEMBER FUNCTIONS ==========================================
 
-CCTCertificateQuery::CCTCertificateQuery(CCTSecurityDialogsAO& aAO):  
-    CAknMessageQueryDialog( CAknQueryDialog::ENoTone ), 
-    iNotifier(aAO)    
+CCTCertificateQuery::CCTCertificateQuery(CCTSecurityDialogsAO& aAO):
+    CAknMessageQueryDialog( CAknQueryDialog::ENoTone ),
+    iNotifier(aAO)
     {
     }
 
 CCTCertificateQuery* CCTCertificateQuery::NewL(CCTSecurityDialogsAO& aAO)
     {
-    CCTCertificateQuery* query = 
+    CCTCertificateQuery* query =
     new( ELeave ) CCTCertificateQuery(aAO);
 
     CleanupStack::PushL( query );
     query->ConstructL();
     CleanupStack::Pop();
-    
+
     return query;
     }
 
 void CCTCertificateQuery::ConstructL()
-    {    
-    iHeader = CEikonEnv::Static()->AllocReadResourceL( R_TEXT_RESOURCE_DETAILS_VIEW_HEADER );    
-    SetHeaderTextL( *iHeader );    
-    iMessage = iNotifier.CreateMessageL();    
-    SetMessageTextL( *iMessage );          
+    {
+    // Temporary fix. Resource file certmanui.rsg is removed.
+    //iHeader = CEikonEnv::Static()->AllocReadResourceL( R_TEXT_RESOURCE_DETAILS_VIEW_HEADER );
+    _LIT( KHeader, "Certificate details" );
+    iHeader = KHeader().AllocL();
+
+    SetHeaderTextL( *iHeader );
+    iMessage = iNotifier.CreateMessageL();
+    SetMessageTextL( *iMessage );
     }
 
 CCTCertificateQuery::~CCTCertificateQuery()