securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtcertificateinfo_p.cpp
equal
deleted
inserted
replaced
|
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 configuration interface |
|
16 * |
|
17 */ |
|
18 |
|
19 /* |
|
20 * %version: 4 % |
|
21 */ |
|
22 |
|
23 #include "eapqtcertificateinfo_p.h" |
|
24 |
|
25 //---------------------------------------------------------------------------- |
|
26 // EapQtCertificateInfoPrivate |
|
27 //---------------------------------------------------------------------------- |
|
28 |
|
29 EapQtCertificateInfoPrivate::EapQtCertificateInfoPrivate() |
|
30 { |
|
31 } |
|
32 |
|
33 EapQtCertificateInfoPrivate::~EapQtCertificateInfoPrivate() |
|
34 { |
|
35 } |
|
36 |
|
37 EapQtCertificateInfoPrivate::EapQtCertificateInfoPrivate( |
|
38 const EapQtCertificateInfoPrivate &certInfo) |
|
39 { |
|
40 mCerts = certInfo.mCerts; |
|
41 } |
|
42 |
|
43 EapQtCertificateInfoPrivate& EapQtCertificateInfoPrivate::operator=( |
|
44 const EapQtCertificateInfoPrivate &certInfo) |
|
45 { |
|
46 // check if assigning to myself |
|
47 if(this != &certInfo) |
|
48 { |
|
49 mCerts = certInfo.mCerts; |
|
50 } |
|
51 return *this; |
|
52 } |
|
53 |
|
54 QVariant EapQtCertificateInfoPrivate::value(int id) |
|
55 { |
|
56 return mCerts[id]; |
|
57 } |
|
58 |
|
59 void EapQtCertificateInfoPrivate::setValue(int id, QVariant newValue) |
|
60 { |
|
61 mCerts[id] = newValue; |
|
62 } |
|
63 |