pkiutilities/CTSecurityDialogs/NotifSrc/CTCertificateQuery.cpp
branchRCL_3
changeset 22 03674e5abf46
parent 21 09b1ac925e3f
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
     1 /*
     1 /*
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:  
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
    19 
    21 
    21 
    22 #include "CTCertificateQuery.h"
    22 #include "CTCertificateQuery.h"
    23 #include "CTSecurityDialogsAO.h"
    23 #include "CTSecurityDialogsAO.h"
    24 
    24 
    25 #include <CTSecDlgs.rsg>
    25 #include <CTSecDlgs.rsg>
    26 //#include <certmanui.rsg>
    26 #include <certmanui.rsg>
    27 #include <aknmessagequerydialog.h>
    27 #include <aknmessagequerydialog.h>
    28 #include <aknPopupHeadingPane.h>
    28 #include <aknPopupHeadingPane.h>
    29 
    29 
    30 // ================= MEMBER FUNCTIONS ==========================================
    30 // ================= MEMBER FUNCTIONS ==========================================
    31 
    31 
    32 CCTCertificateQuery::CCTCertificateQuery(CCTSecurityDialogsAO& aAO):
    32 CCTCertificateQuery::CCTCertificateQuery(CCTSecurityDialogsAO& aAO):  
    33     CAknMessageQueryDialog( CAknQueryDialog::ENoTone ),
    33     CAknMessageQueryDialog( CAknQueryDialog::ENoTone ), 
    34     iNotifier(aAO)
    34     iNotifier(aAO)    
    35     {
    35     {
    36     }
    36     }
    37 
    37 
    38 CCTCertificateQuery* CCTCertificateQuery::NewL(CCTSecurityDialogsAO& aAO)
    38 CCTCertificateQuery* CCTCertificateQuery::NewL(CCTSecurityDialogsAO& aAO)
    39     {
    39     {
    40     CCTCertificateQuery* query =
    40     CCTCertificateQuery* query = 
    41     new( ELeave ) CCTCertificateQuery(aAO);
    41     new( ELeave ) CCTCertificateQuery(aAO);
    42 
    42 
    43     CleanupStack::PushL( query );
    43     CleanupStack::PushL( query );
    44     query->ConstructL();
    44     query->ConstructL();
    45     CleanupStack::Pop();
    45     CleanupStack::Pop();
    46 
    46     
    47     return query;
    47     return query;
    48     }
    48     }
    49 
    49 
    50 void CCTCertificateQuery::ConstructL()
    50 void CCTCertificateQuery::ConstructL()
    51     {
    51     {    
    52     // Temporary fix. Resource file certmanui.rsg is removed.
    52     iHeader = CEikonEnv::Static()->AllocReadResourceL( R_TEXT_RESOURCE_DETAILS_VIEW_HEADER );    
    53     //iHeader = CEikonEnv::Static()->AllocReadResourceL( R_TEXT_RESOURCE_DETAILS_VIEW_HEADER );
    53     SetHeaderTextL( *iHeader );    
    54     _LIT( KHeader, "Certificate details" );
    54     iMessage = iNotifier.CreateMessageL();    
    55     iHeader = KHeader().AllocL();
    55     SetMessageTextL( *iMessage );          
    56 
       
    57     SetHeaderTextL( *iHeader );
       
    58     iMessage = iNotifier.CreateMessageL();
       
    59     SetMessageTextL( *iMessage );
       
    60     }
    56     }
    61 
    57 
    62 CCTCertificateQuery::~CCTCertificateQuery()
    58 CCTCertificateQuery::~CCTCertificateQuery()
    63     {
    59     {
    64     delete iHeader;
    60     delete iHeader;