63
|
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: Certificate class in advances security settings
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "advsecsettingscertificate.h"
|
|
19 |
|
|
20 |
|
|
21 |
// ======== MEMBER FUNCTIONS ========
|
|
22 |
|
|
23 |
// ---------------------------------------------------------------------------
|
|
24 |
// CpAdvSecSettingsCertificate::CpAdvSecSettingsCertificate()
|
|
25 |
// ---------------------------------------------------------------------------
|
|
26 |
//
|
|
27 |
AdvSecSettingsCertificate::AdvSecSettingsCertificate(QObject *parent)
|
|
28 |
: QObject(parent), mCertType(NotDefined), mLabel(), mModelIndex(0)
|
|
29 |
{
|
|
30 |
}
|
|
31 |
|
|
32 |
// ---------------------------------------------------------------------------
|
|
33 |
// CpAdvSecSettingsCertificate::~CpAdvSecSettingsCertificate()
|
|
34 |
// ---------------------------------------------------------------------------
|
|
35 |
//
|
|
36 |
AdvSecSettingsCertificate::~AdvSecSettingsCertificate()
|
|
37 |
{
|
|
38 |
}
|
|
39 |
|
|
40 |
// ---------------------------------------------------------------------------
|
|
41 |
// CpAdvSecSettingsCertificate::label()
|
|
42 |
// ---------------------------------------------------------------------------
|
|
43 |
//
|
|
44 |
const QString &AdvSecSettingsCertificate::label() const
|
|
45 |
{
|
|
46 |
return mLabel;
|
|
47 |
}
|
|
48 |
|
|
49 |
// ---------------------------------------------------------------------------
|
|
50 |
// CpAdvSecSettingsCertificate::setLabel()
|
|
51 |
// ---------------------------------------------------------------------------
|
|
52 |
//
|
|
53 |
void AdvSecSettingsCertificate::setLabel(const QString &label)
|
|
54 |
{
|
|
55 |
mLabel = label;
|
|
56 |
}
|
|
57 |
|
|
58 |
// ---------------------------------------------------------------------------
|
|
59 |
// CpAdvSecSettingsCertificate::certType()
|
|
60 |
// ---------------------------------------------------------------------------
|
|
61 |
//
|
|
62 |
AdvSecSettingsCertificate::CertificateType
|
|
63 |
AdvSecSettingsCertificate::certType() const
|
|
64 |
{
|
|
65 |
return mCertType;
|
|
66 |
}
|
|
67 |
|
|
68 |
// ---------------------------------------------------------------------------
|
|
69 |
// CpAdvSecSettingsCertificate::setCertType()
|
|
70 |
// ---------------------------------------------------------------------------
|
|
71 |
//
|
|
72 |
void AdvSecSettingsCertificate::setCertType(CertificateType type)
|
|
73 |
{
|
|
74 |
mCertType = type;
|
|
75 |
}
|
|
76 |
|
|
77 |
// ---------------------------------------------------------------------------
|
|
78 |
// CpAdvSecSettingsCertificate::modelIndex()
|
|
79 |
// ---------------------------------------------------------------------------
|
|
80 |
//
|
|
81 |
int AdvSecSettingsCertificate::modelIndex() const
|
|
82 |
{
|
|
83 |
return mModelIndex;
|
|
84 |
}
|
|
85 |
|
|
86 |
// ---------------------------------------------------------------------------
|
|
87 |
// CpAdvSecSettingsCertificate::setModelIndex()
|
|
88 |
// ---------------------------------------------------------------------------
|
|
89 |
//
|
|
90 |
void AdvSecSettingsCertificate::setModelIndex(int index)
|
|
91 |
{
|
|
92 |
mModelIndex = index;
|
|
93 |
}
|
|
94 |
|