|
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 */ |