securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtcertificateinfo_p.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
15 * Certificate information data structure for EAP QT configuration interface |
15 * Certificate information data structure for EAP QT configuration interface |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 5 % |
20 * %version: 6 % |
21 */ |
21 */ |
22 |
22 |
|
23 // System includes |
|
24 |
|
25 // User includes |
23 #include "eapqtcertificateinfo_p.h" |
26 #include "eapqtcertificateinfo_p.h" |
24 |
27 |
25 //---------------------------------------------------------------------------- |
28 /*! |
26 // EapQtCertificateInfoPrivate |
29 * \class EapQtCertificateInfoPrivate |
27 //---------------------------------------------------------------------------- |
30 * \brief Private implementation of certificate information data |
|
31 * structure for EAP QT configuration interface |
|
32 */ |
|
33 |
|
34 // External function prototypes |
|
35 |
|
36 // Local constants |
|
37 |
|
38 // ======== LOCAL FUNCTIONS ======== |
|
39 |
|
40 // ======== MEMBER FUNCTIONS ======== |
28 |
41 |
29 EapQtCertificateInfoPrivate::EapQtCertificateInfoPrivate() |
42 EapQtCertificateInfoPrivate::EapQtCertificateInfoPrivate() |
30 { |
43 { |
31 } |
44 } |
32 |
45 |
38 const EapQtCertificateInfoPrivate &certInfo) |
51 const EapQtCertificateInfoPrivate &certInfo) |
39 { |
52 { |
40 mCerts = certInfo.mCerts; |
53 mCerts = certInfo.mCerts; |
41 } |
54 } |
42 |
55 |
43 QVariant EapQtCertificateInfoPrivate::value(int id) |
56 QVariant EapQtCertificateInfoPrivate::value(const int id) |
44 { |
57 { |
45 return mCerts[id]; |
58 return mCerts[id]; |
46 } |
59 } |
47 |
60 |
48 void EapQtCertificateInfoPrivate::setValue(int id, QVariant newValue) |
61 void EapQtCertificateInfoPrivate::setValue(const int id, const QVariant &newValue) |
49 { |
62 { |
50 mCerts[id] = newValue; |
63 mCerts[id] = newValue; |
51 } |
64 } |
52 |
65 |
|
66 void EapQtCertificateInfoPrivate::clear() |
|
67 { |
|
68 mCerts.clear(); |
|
69 } |