diff -r 3255e7d5bd67 -r 989397f9511c cpsecplugins/cpadvancedsecplugin/inc/advsecsettingscertificatemodel_stub_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cpsecplugins/cpadvancedsecplugin/inc/advsecsettingscertificatemodel_stub_p.h Thu Oct 14 13:56:11 2010 +0300 @@ -0,0 +1,62 @@ +/* +* 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 the License "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: Generic stub for platform specific private certificate handling model +* +*/ + +#ifndef ADVSECSETTINGSCERTIFICATEMODELPRIVATE_STUB_H +#define ADVSECSETTINGSCERTIFICATEMODELPRIVATE_STUB_H + +#include +#include + +class AdvSecSettingsCertificateModel; +class AdvSecSettingsCertificate; + + +/** + * Generic stub for platform specific private certificate handling model. + * This is just a stub. Real functionality is provided in platform specific + * AdvSecSettingsCertificateModelPrivate implementations. + */ +class AdvSecSettingsCertificateModelPrivate : public QObject +{ + Q_OBJECT + +public: + explicit AdvSecSettingsCertificateModelPrivate( + AdvSecSettingsCertificateModel *q); + virtual ~AdvSecSettingsCertificateModelPrivate(); + + void initialize(); + void getCertificates(QList &certList); + void getCertificateDetails(const AdvSecSettingsCertificate &cert, + QMap &details); + bool isDeletable(const AdvSecSettingsCertificate &cert) const; + void deleteCertificate(const AdvSecSettingsCertificate &cert); + void getTrustSettings(const AdvSecSettingsCertificate &cert, + QMap &usageIdAndTrust); + void setTrustSettings(const AdvSecSettingsCertificate &cert, + const QMap &usageIdAndTrust); + void getCertificateUsageNames(QMap &usageIdAndName); + void moveToPersonalCertificates(const AdvSecSettingsCertificate &cert); + void moveToDeviceCertificates(const AdvSecSettingsCertificate &cert); + +private: + Q_DISABLE_COPY(AdvSecSettingsCertificateModelPrivate) + AdvSecSettingsCertificateModel *q_ptr; +}; + +#endif // ADVSECSETTINGSCERTIFICATEMODELPRIVATE_STUB_H +