wlanutilities/wlanwizard/tsrc/stubs/eapqtcertificateinfo.h
changeset 53 bdc64aa9b954
equal deleted inserted replaced
49:fb81b597edf1 53:bdc64aa9b954
       
     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 "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 * Stub file for eapwizard!!
       
    16 */
       
    17 
       
    18 #ifndef EAPQTCERTIFICATEINFO_H
       
    19 #define EAPQTCERTIFICATEINFO_H
       
    20 
       
    21 // System includes
       
    22 #include <QMetaType>
       
    23 #include <QVariant>
       
    24 
       
    25 // User includes
       
    26 
       
    27 // Forward declarations
       
    28 class EapQtCertificateInfoPrivate;
       
    29 
       
    30 // External data types
       
    31 
       
    32 // Constants
       
    33 
       
    34 // Class declaration
       
    35 class EapQtCertificateInfo
       
    36 {
       
    37 public:
       
    38 
       
    39     // Data types
       
    40 
       
    41     enum ItemId
       
    42     {
       
    43         /*! QString */
       
    44         SubjectName = 0,
       
    45         /*! QString */
       
    46         IssuerName,
       
    47         /*! QString */
       
    48         SerialNumber,
       
    49         /*! QByteArray */
       
    50         SubjectKeyId,
       
    51         /*! QString */
       
    52         ThumbPrint,
       
    53         /*! QString */
       
    54         CertificateLabel,
       
    55         /* marker for the last item */
       
    56         ItemIdLast
       
    57     };
       
    58 
       
    59 public:
       
    60 
       
    61     EapQtCertificateInfo();
       
    62     ~EapQtCertificateInfo();
       
    63 
       
    64     EapQtCertificateInfo(const EapQtCertificateInfo &certInfo);
       
    65     EapQtCertificateInfo &operator=(const EapQtCertificateInfo &certInfo);
       
    66 
       
    67     QVariant value(const ItemId id) const;
       
    68     void setValue(const ItemId id, const QVariant &newValue);
       
    69 
       
    70 public: // FOR TESTING PURPOSE
       
    71     bool operator==(const EapQtCertificateInfo & rhs) const;
       
    72     
       
    73 private:
       
    74     QScopedPointer<EapQtCertificateInfoPrivate> d_ptr;
       
    75 };
       
    76 
       
    77 // Make the class known to QMetaType to support using QVariant
       
    78 Q_DECLARE_METATYPE(EapQtCertificateInfo)
       
    79 
       
    80 #endif // EAPQTCERTIFICATEINFO_H