accesssec_plat/eap_qt_configuration_api/inc/eapqtcertificateinfo.h
changeset 26 9abfd4f00d37
child 27 9660a5eb236f
equal deleted inserted replaced
25:e03a3db4489e 26:9abfd4f00d37
       
     1 /*
       
     2  * Copyright (c) 2010 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 the License "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  *   Certificate information data structure for EAP QT
       
    16  *   configuration interface
       
    17  *
       
    18  */
       
    19 
       
    20 /*
       
    21  * %version: 1 %
       
    22  */
       
    23 
       
    24 #ifndef EAPQTCERTIFICATEINFO_H
       
    25 #define EAPQTCERTIFICATEINFO_H
       
    26 
       
    27 #include <QMetaType>
       
    28 #include <QVariant>
       
    29 
       
    30 #ifdef BUILD_EAP_QT_CONFIG_INTERFACE_DLL
       
    31 #define EAP_QT_CERTIFICATE_INFO_EXPORT Q_DECL_EXPORT
       
    32 #else
       
    33 #define EAP_QT_CERTIFICATE_INFO_EXPORT Q_DECL_IMPORT
       
    34 #endif
       
    35 
       
    36 class EapQtCertificateInfoPrivate;
       
    37 
       
    38 class EAP_QT_CERTIFICATE_INFO_EXPORT EapQtCertificateInfo
       
    39 {
       
    40 public:
       
    41 
       
    42     enum ItemId
       
    43     {
       
    44         /*! QString */
       
    45         SubjectName,
       
    46         /*! QString */
       
    47         IssuerName,
       
    48         /*! QString */
       
    49         SerialNumber,
       
    50         /*! QByteArray */
       
    51         SubjectKeyId,
       
    52         /*! QString */
       
    53         ThumbPrint,
       
    54         /*! QString */
       
    55         CertificateLabel,
       
    56         /*! marker for the last item */
       
    57         ItemIdLast
       
    58     };
       
    59 
       
    60 public:
       
    61 
       
    62     EapQtCertificateInfo();
       
    63     ~EapQtCertificateInfo();
       
    64 
       
    65     EapQtCertificateInfo(const EapQtCertificateInfo &certInfo);
       
    66     EapQtCertificateInfo &operator=(const EapQtCertificateInfo &certInfo);
       
    67 
       
    68     QVariant value(ItemId id) const;
       
    69     void setValue(ItemId id, QVariant newValue);
       
    70 
       
    71 private:
       
    72 
       
    73     QScopedPointer<EapQtCertificateInfoPrivate> d_ptr;
       
    74 };
       
    75 
       
    76 // Make the class known to QMetaType to support using QVariant
       
    77 Q_DECLARE_METATYPE(EapQtCertificateInfo)
       
    78 
       
    79 #endif /* EAPQTCERTIFICATEINFO_H */