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 |
|
19 #ifndef EAPQTCERTIFICATEINFO_H |
|
20 #define EAPQTCERTIFICATEINFO_H |
|
21 |
|
22 #include <QMetaType> |
|
23 #include <QVariant> |
|
24 #include <eapqtconfigdefs.h> |
|
25 |
|
26 class EapQtCertificateInfoPrivate; |
|
27 |
|
28 class EapQtCertificateInfo |
|
29 { |
|
30 public: |
|
31 |
|
32 enum ItemId |
|
33 { |
|
34 /*! QString */ |
|
35 SubjectName, |
|
36 /*! QString */ |
|
37 IssuerName, |
|
38 /*! QString */ |
|
39 SerialNumber, |
|
40 /*! QByteArray */ |
|
41 SubjectKeyId, |
|
42 /*! QString */ |
|
43 ThumbPrint, |
|
44 /*! QString */ |
|
45 CertificateLabel, |
|
46 /*! marker for the last item */ |
|
47 ItemIdLast |
|
48 }; |
|
49 |
|
50 public: |
|
51 |
|
52 EapQtCertificateInfo(); |
|
53 ~EapQtCertificateInfo(); |
|
54 |
|
55 EapQtCertificateInfo(const EapQtCertificateInfo &certInfo); |
|
56 EapQtCertificateInfo &operator=(const EapQtCertificateInfo &certInfo); |
|
57 |
|
58 QVariant value(ItemId id) const; |
|
59 void setValue(ItemId id, QVariant newValue); |
|
60 |
|
61 public: // FOR TESTING PURPOSE |
|
62 bool operator==(const EapQtCertificateInfo & rhs ) const; |
|
63 |
|
64 private: |
|
65 QScopedPointer<EapQtCertificateInfoPrivate> d_ptr; |
|
66 }; |
|
67 |
|
68 // Make the class known to QMetaType to support using QVariant |
|
69 Q_DECLARE_METATYPE(EapQtCertificateInfo) |
|
70 |
|
71 #endif /* EAPQTCERTIFICATEINFO_H */ |
|