pkiutilities/CTSecurityDialogs/NotifSrc/CTCertificateQuery.cpp
changeset 0 164170e6151a
child 15 318c4eab2439
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "CTCertificateQuery.h"
       
    23 #include "CTSecurityDialogsAO.h"
       
    24 
       
    25 #include <CTSecDlgs.rsg>
       
    26 #include <certmanui.rsg>
       
    27 #include <aknmessagequerydialog.h>
       
    28 #include <aknPopupHeadingPane.h>
       
    29 
       
    30 // ================= MEMBER FUNCTIONS ==========================================
       
    31 
       
    32 CCTCertificateQuery::CCTCertificateQuery(CCTSecurityDialogsAO& aAO):  
       
    33     CAknMessageQueryDialog( CAknQueryDialog::ENoTone ), 
       
    34     iNotifier(aAO)    
       
    35     {
       
    36     }
       
    37 
       
    38 CCTCertificateQuery* CCTCertificateQuery::NewL(CCTSecurityDialogsAO& aAO)
       
    39     {
       
    40     CCTCertificateQuery* query = 
       
    41     new( ELeave ) CCTCertificateQuery(aAO);
       
    42 
       
    43     CleanupStack::PushL( query );
       
    44     query->ConstructL();
       
    45     CleanupStack::Pop();
       
    46     
       
    47     return query;
       
    48     }
       
    49 
       
    50 void CCTCertificateQuery::ConstructL()
       
    51     {    
       
    52     iHeader = CEikonEnv::Static()->AllocReadResourceL( R_TEXT_RESOURCE_DETAILS_VIEW_HEADER );    
       
    53     SetHeaderTextL( *iHeader );    
       
    54     iMessage = iNotifier.CreateMessageL();    
       
    55     SetMessageTextL( *iMessage );          
       
    56     }
       
    57 
       
    58 CCTCertificateQuery::~CCTCertificateQuery()
       
    59     {
       
    60     delete iHeader;
       
    61     delete iMessage;
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CCTCertificateQuery::OkToExitL()
       
    66 // -----------------------------------------------------------------------------
       
    67 
       
    68 TBool CCTCertificateQuery::OkToExitL( TInt /*aButtonId*/ )
       
    69     {
       
    70     return ETrue;
       
    71     }
       
    72 
       
    73 // end of file