diff -r 09b1ac925e3f -r 03674e5abf46 pkiutilities/CTSecurityDialogs/NotifInc/CTUntrustedCertQuery.h --- a/pkiutilities/CTSecurityDialogs/NotifInc/CTUntrustedCertQuery.h Tue Aug 31 16:04:40 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -/* -* Copyright (c) 2010 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: Displays untrusted certificate dialog. -* -*/ - -#ifndef CTUNTRUSTEDCERTQUERY_H -#define CTUNTRUSTEDCERTQUERY_H - -#include // CActive -#include // MHbDeviceDialogObserver -#include // TValidationError - -class CHbDeviceDialogSymbian; -class CHbSymbianVariantMap; - - -/** -* Displays untrusted certificate query. -* Untrusted certificate query dialog is displayed for secure connection -* (SSL/TLS) server authentication failure errors. CCTUntrustedCertQuery -* class uses UntrustedCertificateDialog device dialog to show the query. -*/ -NONSHARABLE_CLASS( CCTUntrustedCertQuery ) : public CActive, public MHbDeviceDialogObserver - { - public: // constructors and destructor - static CCTUntrustedCertQuery* NewLC( TValidationError aValidationError, - const TDesC8& aCertificate, const TDesC& aServerName, - TBool aCanHandlePermanentAccept ); - ~CCTUntrustedCertQuery(); - - public: // new functions - enum TResponse { - EQueryRejected, - EQueryAccepted, - EQueryAcceptedPermanently - }; - void ShowQueryAndWaitForResponseL( TResponse& aResponse ); - - protected: // from CActive - void DoCancel(); - void RunL(); - - private: // from MHbDeviceDialogObserver - void DataReceived( CHbSymbianVariantMap& aData ); - void DeviceDialogClosed( TInt aCompletionCode ); - - private: // new functions - CCTUntrustedCertQuery( TValidationError aValidationError, - const TDesC8& aCertificate, const TDesC& aServerName, - TBool aCanHandlePermanentAccept ); - void ConstructL(); - - private: // data - TValidationError iValidationError; - const TDesC8& iCertificate; - const TDesC& iServerName; - TBool iCanHandlePermanentAccept; - CActiveSchedulerWait *iWait; - TInt iWaitCompletionCode; - CHbDeviceDialogSymbian* iDeviceDialog; - CHbSymbianVariantMap* iVariantMap; - TResponse iResponse; - }; - -#endif // CTUNTRUSTEDCERTQUERY_H -