pkiutilities/CTSecurityDialogs/NotifSrc/CTCertificateQuery.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:04:40 +0300
branchRCL_3
changeset 21 09b1ac925e3f
parent 0 164170e6151a
child 22 03674e5abf46
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/



// INCLUDE FILES

#include "CTCertificateQuery.h"
#include "CTSecurityDialogsAO.h"

#include <CTSecDlgs.rsg>
//#include <certmanui.rsg>
#include <aknmessagequerydialog.h>
#include <aknPopupHeadingPane.h>

// ================= MEMBER FUNCTIONS ==========================================

CCTCertificateQuery::CCTCertificateQuery(CCTSecurityDialogsAO& aAO):
    CAknMessageQueryDialog( CAknQueryDialog::ENoTone ),
    iNotifier(aAO)
    {
    }

CCTCertificateQuery* CCTCertificateQuery::NewL(CCTSecurityDialogsAO& aAO)
    {
    CCTCertificateQuery* query =
    new( ELeave ) CCTCertificateQuery(aAO);

    CleanupStack::PushL( query );
    query->ConstructL();
    CleanupStack::Pop();

    return query;
    }

void CCTCertificateQuery::ConstructL()
    {
    // 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()
    {
    delete iHeader;
    delete iMessage;
    }

// -----------------------------------------------------------------------------
// CCTCertificateQuery::OkToExitL()
// -----------------------------------------------------------------------------

TBool CCTCertificateQuery::OkToExitL( TInt /*aButtonId*/ )
    {
    return ETrue;
    }

// end of file