diff -r 6b63ca65093a -r aad866c37519 pkiutilities/untrustedcertificatedialog/inc/untrustedcertificateinfo_symbian.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkiutilities/untrustedcertificatedialog/inc/untrustedcertificateinfo_symbian.h Fri Jun 11 14:28:40 2010 +0300 @@ -0,0 +1,49 @@ +/* +* 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: Certificate info class for TLS untrusted certificate dialog. +* +*/ + +#ifndef UNTRUSTEDCERTIFICATEINFOSYMBIAN_H +#define UNTRUSTEDCERTIFICATEINFOSYMBIAN_H + +#include "untrustedcertificateinfobase.h" + +class CX509Certificate; + + +/** + * Certificate info class for secure connections (TLS) untrusted certificate dialog. + * Symbian-specific concrete implementeation for the certificate info class. + */ +class UntrustedCertificateInfoSymbian : public UntrustedCertificateInfoBase +{ +public: // constructor and destructor + UntrustedCertificateInfoSymbian(const CX509Certificate& aCert); + ~UntrustedCertificateInfoSymbian(); + +public: // from UntrustedCertificateInfoBase + bool commonNameMatches(const QString &siteName) const; + bool isPermanentAcceptAllowed() const; + QString certificateDetails() const; + +private: // new functions + void ConstructL(const CX509Certificate& aCert); + bool CommonNameMatchesL(const QString &siteName) const; + +private: // data + CX509Certificate* iCert; +}; + +#endif // UNTRUSTEDCERTIFICATEINFOSYMBIAN_H